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

Android Media Codec: How long does it take to decode and display one video frame

I couldn't find any information on this topic. Maybe someone of you may help. I'm using the Android MediaCodec to decode H264-frames. The MediaCodec is used in synchronous mode. I want to measure the time from queueing one single frame to the…
Christoph
  • 606
  • 7
  • 21
0
votes
1 answer

how to decode EAN-13 barcode image in iPhone?

In my application , i need to decode EAN-13 barcode image.The image captured from a iphone camera.after capturing barcode image i have to decode .i am new to iphone. please refer me some solution or tutorial? Thanks in advance,
nayagi
  • 73
  • 1
  • 1
  • 7
0
votes
1 answer

scraping chinese characters python

I learnt how to scrap website from https://automatetheboringstuff.com. I wanted to scrap http://www.piaotian.net/html/3/3028/1473227.html in which the contents is in chinese and write its contents into a .txt file. However, the .txt file contains…
idkla
  • 3
  • 1
  • 2
0
votes
1 answer

encode & decode URL params in rails api pagination

In my rails-api app, a user can request for products index by pagination. So I want to provide next and previous url via paging hash as result = @products.paginate(:page => params[:page] || 1, :per_page => params[:per_page] || 5) paging { …
rAzOr
  • 300
  • 6
  • 19
0
votes
4 answers

Encoding and decoding implicit tagging

I have a question about explicit and implicit tagging, in the following example X ::= [APPLICATION 5] IMPLICIT INTEGER for X, since the implicit tag will replace the existing tag on INTEGER with [APPLICATION 5], so the encoding in BER of the value…
ibrahim
  • 37
  • 8
0
votes
1 answer

Decoding methods for Huffman Encoded Text

Please help me and explain the algorithm to decode Huffman encoded Text. (Explain it in just English) Thanks and Regards, Larry
0
votes
0 answers

Arithmetic coding - min. number of bits

Is it possible to somehow calculate minimum number of bits that are needed to represent integers in arithmetic coding? Let's say i have 100characters-length string. How many bits do i need to encode and decode that sequence?
peter Schiza
  • 387
  • 7
  • 23
0
votes
1 answer

Media Foundation AMR decode

I have a file with .amr extension, and I want to get it's sample rate and number of channels using Microsoft Media Foundation. Further, I want to decode and get the uncompressed data. I can successfully get those from .aac .mp4 and other file types…
mbaros
  • 825
  • 8
  • 31
0
votes
1 answer

(MP3) How To Calculate Byte Position In Java

How does one calculate the amount of bytes to skip with the InputStream.skip() method if you want to start the InputStream of a .mp3 file at a certain position in time? I have access to the following data: The point that you want to start at in…
ImJustACowLol
  • 826
  • 2
  • 9
  • 27
0
votes
1 answer

Downloading video file by streaming a certain part of the video

An online link gives me back a video in my browser, that is then streamed. In my browser, I don't need to download the whole video to visualize it - I can skip to a certain part, visualize that part, and even stop watching before the end. How can I,…
user2065501
  • 99
  • 2
  • 9
0
votes
0 answers

Unpickling a log file(Decoding)

I have been trying to unpickle it or at least decode it but I don't understand how to do and I need help! I don't know python but I am trying to learn! And can someone tell me what the encoding is?This is the file and also the info is in the log, I…
0
votes
1 answer

TinyMCE html encoding and decoding - Angular Typescript

I'm having problems with encoding and decode the text in the tinyMCE directive. I've created an own directive using the tinyMCE. I have an onRender function and onModelChange function. This is the code of my onRender function: onRender(): void { …
0
votes
1 answer

UTF-8 in decimal

Is representing UTF-8 encoding in decimals even possible? I think only values till 255 would be correct, am I right? As far as I know, we can only represent UTF-8 in hex or binary form.
user5654873
0
votes
1 answer

Javascript - sending encoding binary (zip) file data and decoding it in c#

I have zip file that I want to encode and send it as string and decode and save it in server side: This the code of the encoding in client (JS): var fileAsText = '' var reader = new FileReader() reader.onload = function (event) { fileAsText =…
cheziHoyzer
  • 4,803
  • 12
  • 54
  • 81
0
votes
0 answers

TypeError: a bytes-like object is required, not str but my str-object is bytes

I am receiving the TypeError: a bytes-like object is required, not str but my str-object is bytes and have searched for an answer. This is where the decoding happens without error: for line in tmpFile: sl = codecs.decode(bytes(line,…
LMP
  • 79
  • 1
  • 1
  • 9