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

Convert a String, which is already malformed

I have a class, which uses another class which reads a Textfile. The Textfile is written in Ascii or to be clear CP1525. Background info: The Textfile is generated in Axapta and uses the ASCIIio class which writes the text by using the writeRaw…
Bongo
  • 2,933
  • 5
  • 36
  • 67
0
votes
1 answer

Removing encoded text from strings read from txt file

Here's the problem: I copied and pasted this entire list to a txt file from https://www.cboe.org/mdx/mdi/mdiproducts.aspx Sample of text lines: BFLY - The CBOE S&P 500 Iron Butterfly Index BPVIX - CBOE/CME FX British Pound Volatility Index BPVIX1 -…
Dr.Tautology
  • 416
  • 1
  • 8
  • 19
0
votes
1 answer

Relation between size and video quality of I, B and P frames

Could one make some general assumptions about size and perceived quality with regards to I, B and P frames. My first presumption would be something like: Quality(I) > Quality(B) > Quality(P) and Size(I) > Size(B) > Size(P) By Size I mean the frame…
holzkohlengrill
  • 1,044
  • 19
  • 29
0
votes
1 answer

What is the first sign at that Lempel-Ziv-Codierung

I know what the second and the third sign mean at <0|0|A> but what means the first?? Why is the first sigh 7 at the last group(<7|1|#>)?? With frindly wishes sniffi
sniffi
  • 125
  • 2
  • 15
0
votes
1 answer

Audio MP2 encoding and decoding producing half data C++ and FFMPEG

I have 16 bit PCM data with stereo setup which I grab from a microphone. Once I get the data I encode it using the following encoder settings AVCodec* audio_codec = avcodec_find_encoder(AV_CODEC_ID_MP2); AVCodecContext* audio_codec_ctx =…
0
votes
0 answers

How to check if my video is decodable using OpenImaj?

I'm using the OpenImaj library in Java for my project and i would like to know if there is a way to check if a video is decodable when opened with XuggleVideo ? Because i need to create my own exception class in my project and to do that i need to…
0
votes
1 answer

How to extract pdf text from BT and ET section line by line and how to decode Tj block to unicode in pdfbox

As the title, I have the special requirement to extract text line by line or block by block of BT and ET. below is the pdf content, I tried PDFTextstripper class, but it is not what I want, so any one has the solution to resolve the problem? I wanna…
陳駿豪
  • 9
  • 3
0
votes
1 answer

encrypting / shortening a long string in JS

I need to shorten a long string with a variable length and "decode" it back later on. The string will be built up like this 0011010011 ........ etc. My problem right now is that the string will be over a thousand characters long which is far far too…
0
votes
1 answer

Tornado JSON output new line each data instead of each character

I cant get to output the json data accordingly. Instead it outputs each character new line. Code: import tornado.web import tornado.ioloop import tornado.httpserver from tornado.escape import json_encode class Handler(tornado.web.RequestHandler): …
Mezzan
  • 329
  • 1
  • 5
  • 18
0
votes
1 answer

Base64 encoding and decoding apache commons

I am note sure what is wrong with the below code. I am trying to encode an JPG file with base64 encoding. After encoding i am checking is it base64 encoded, it returns false. I am unable to find what is that I am missing. public String …
AKV
  • 183
  • 4
  • 24
0
votes
2 answers

Java Base64 Decoding/Encoding rountrip doesn't come up with same result

import org.junit.Test; import java.util.Base64; import org.junit.Assert.*; import java.util.Random; ... @Test public void testEncoding(){ byte[] data = new byte[32]; new Random().nextBytes(data); String base64 =…
theTobias
  • 39
  • 7
0
votes
1 answer

base64 decode/encode inconsistency

I'm attempting to reverse engineer an application of base64 encoding which is utilised by a third party project, so I can create a custom UI. My method has been successful with one example but appears to not quite be hitting the mark in other…
user4807122
0
votes
1 answer

How to write java code for To_bytes function of Teradata

I cam across a situation where, I have to write a java code for the teradata function called To_Bytes. I have to write the function which will works exactly same as To_Bytes in tera data. From teradata doc. To_Bytes Decodes a sequence of characters…
subodh
  • 6,136
  • 12
  • 51
  • 73
0
votes
1 answer

Decode HTML from XML with NewLine

First I parse XML and retrieve this: <p><strong>Berns Salonger - the City's The I decode it with MWFeedParser (stringByDecodingHTMLEntities) and retrieve this:

Berns Salonger - the City's Ideal Meeting Place…

Fernando Redondo
  • 1,557
  • 3
  • 20
  • 38
0
votes
3 answers

JSON decode string in PHP (array of arrays) Special characters

So I have this issue when converting a JSON string to a PHP array. The data is sent via HTTP POST so I'm aware there may be some decoding needed. Could anyone lay an insight on how I would use json_decode() in PHP to convert this string to an…
Lewis Smallwood
  • 84
  • 1
  • 11