Questions tagged [decoding]

Decoding is the reverse of encoding.

Decoding is the reverse of , which is the process of transforming information from one format into another understandable by a receiver. In communication theory and coding theory, decoding is the process of translating received messages into codewords of a given code. Like encoding, decoding applies to information of various forms:

1741 questions
0
votes
1 answer

Converting byte array into readable string

I have recently been trying out websockets as a way to make a simple login system for a website but i have ran into a big problem. whenever I send a message from the websocket, it shows up as a random set of numbers and letters (mostly comes up as…
0
votes
1 answer

What is the fastest way to decode an MP3 file then encode to AAC on Android?

I have a working solution using MediaCodec and MediaExtractor, but the decoding of a 6mb MP3 takes 15 sec + encoding of 15 sec to AAC. Total of > 30 sec. I need something really fast <10 sec. Anyone know a faster solution? EDIT My bottleneck is from…
Rami Kuret
  • 3,581
  • 2
  • 15
  • 17
0
votes
1 answer

Seaborn install error

I'm trying to install seaborn on Ubuntu, and I have all the necessary dependencies already available: Python 2.7, numpy, scipy, matplotlib, and pandas. When I run pip install seaborn I get the following error: error: command 'gcc' failed with exit…
istewart
  • 437
  • 5
  • 18
0
votes
1 answer

Base64 encode - decode issue

I read that Base64 is deterministic algorithm, and produce unique results. Consider these two encoded base64…
0
votes
1 answer

How to allow semi-colons in input field and then do a indexof(";") JS call?

I don't have to HTML encode the string. I was trying various solutions, but the problem is still, how do you handle the semicolon entered by the user if you need to do a JS str.indexOf(";"); later on. I’m using…
ConfusedDeer
  • 3,335
  • 8
  • 44
  • 72
0
votes
0 answers

How to decode a NCR to unicode character in C++

I want to decode a NCR value something like &# 35686; to its equivalent chinese character. Example:test direct(&# 35686;&# 23519;) should be converted to test direct(警察) . I have tried the below algorithm similar to java find the decimal value…
0
votes
1 answer

TCP/IP Sockets in c# argument null while decoding

I thought the most easiest thing to help with my problem would be to simply post the project here. But that isn't going to work. So here are the parts where I think it is going wrong: public class ItemQuoteDecoderText : ItemQuoteDecoder { …
Farcrada
  • 75
  • 1
  • 6
0
votes
1 answer

Python JSON decoding shows JSON objects still

I'm trying to play around with the Telegram bot API. I wanted to decode the JSON objects into an array but it doesn't matter what I try I get JSON format anyway... import urllib.request import json #Your Authentication token here token =…
Naomi
  • 271
  • 1
  • 3
  • 15
0
votes
1 answer

Encoding, Decoding by secret key

If I have this cookie: $my_cookie = "value"; And i would like to encode this value by secret key like this: $encode_cookie = encoding($my_cookie, "key"); setcookie('my_cookie',$encode_cookie); Then, I use way like this way to get the value of…
Mazin
  • 143
  • 1
  • 9
0
votes
1 answer

What should be done when MediaCodec.dequeueOutputBuffer signaled INFO_OUTPUT_FORMAT_CHANGED?

What should be done when MediaCodec.dequeueOutputBuffer signaled INFO_OUTPUT_FORMAT_CHANGED? Just call getOutputFormat to and print out the new format?
skipper
  • 245
  • 5
  • 15
0
votes
1 answer

Encoding/Decoding integers from long

I have following structs: struct ID { UINT id; // range from 0 to 10 000 000 UINT residentNb; // range same as for id (above). }; struct FullID { ID myID; ID systemID; }; Now, UINT id in above struct ID have specified range in…
DannyX
  • 395
  • 1
  • 5
  • 11
0
votes
4 answers

How to code number in string and later decode it?

I'm looking for encrypt/decrypt functions that will encode numbers (0, 1, 2, ...) into strings, such that these strings will look random, and later the number could be decodes back from the string. For example: 3 will be encrypted to ABFQWEMasdEE,…
Misha Moroshko
  • 166,356
  • 226
  • 505
  • 746
0
votes
1 answer

How to stop automatic url decode in Firefox & Safari?

in my web application i want to transmit some values through the url between pages. Because i have some special characters i decided to encode my values in order not to break my urls. in IE and Opera when i load my urls in a browser they stay…
Sorin Antohi
  • 6,145
  • 9
  • 45
  • 71
0
votes
2 answers

Encoding and Decoding bin file

I have seen so many examples online but they are not exactly what Im looking for. I have a .bin file that I'd like to POST to a server, so I am encoding and storing it as a string. However, decoding it doesn't give the same result. import…
MosesA
  • 925
  • 5
  • 27
  • 53
0
votes
0 answers

decoding mp3: lame vs mpg123 performance on android

I'm looking for the fastest MP3 decoding library for android (NDK). Does anyone know which one of them will give me a result (PCM raw samples) the fastest? LAME or mpg123? Thanks!
Forepick
  • 919
  • 2
  • 11
  • 31