Questions tagged [decoder]

A device or a software which purpose is to decode an encoded signal or stream.

A device or a software which purpose is to decode an encoded signal or stream.

538 questions
50
votes
6 answers

Base64 encoder and decoder

Is there a base-64 decoder and encoder for a String in Android?
xydev
  • 3,409
  • 5
  • 34
  • 54
38
votes
1 answer

Implementing a custom Decoder in Swift 4

I'd like to decode an XML document using the new Decodable protocol introduced in Swift 4, however, there doesn't seem to be an existing implementation for an XML decoder that conforms to the Decoder protocol. My plan was to use the SWXMLHash…
Toni Sučić
  • 1,329
  • 1
  • 13
  • 20
29
votes
3 answers

How to write a custom JSON decoder for a complex object?

Like the title says, I'm trying to write a custom decoder for an object whose class I've defined which contains other objects whose class I've defined. The "outer" class is an Edge, defined like so: class Edge: def __init__(self, actor, movie): …
lmotl3
  • 537
  • 1
  • 8
  • 20
24
votes
3 answers

QR decoder that works on mac?

Anyone know a QR decoder that works on mac or that might be online? I just need to decode one single image.
fmsf
  • 36,317
  • 49
  • 147
  • 195
21
votes
5 answers

Decode HTML encoded text in Dart

It seems that Dart does not provide a default mechanism (or at least I could not find it) to decode HTML escaped entities. What I'd like to do is convert eg. Q&A to Q&A. (This is just an example) As of version 1.11.1, Dart converts encodes these…
Daniel V.
  • 1,138
  • 1
  • 9
  • 15
19
votes
3 answers

H264 with multiple PPS and SPS

I have a card that produces a H264 stream with a SPS (Sequence Parameter Set) and a PPS (Picture Parameter Set), in that order, directly before each I-Frame. I see that most H264 streams contain a PPS and SPS at the first I-Frame. Is this…
Paul Knopf
  • 9,568
  • 23
  • 77
  • 142
18
votes
4 answers

How do I decode a DER encoded string in Java?

I'm trying to read a custom extension from a digital certificate. I know the value is a GeneralString encoded in DER. Is there an easy way to correctly decode it and get a Java String? I tried the following, but 's' includes some of the encoding…
Ragesh
  • 2,800
  • 2
  • 25
  • 36
13
votes
1 answer

ffmpeg commands to concatenate different type and resolution videos into 1 video and can be played in android

I want to concatinate 4 different videos of 4 different resolution and type into 1 video which can be played in android. I am using ffmpeg ported on android using https://github.com/guardianproject/android-ffmpeg So I have these 4 different types of…
Aalap
  • 2,847
  • 2
  • 26
  • 24
13
votes
1 answer

Hierarchical JPEG Encoder/Decoder

Does anyone knows of any implementation of the hierarchical JPEG mode (ITU T.81) ? I am not talking about progressive mode (or sequential), I really mean the hierarchical mode.
malat
  • 12,152
  • 13
  • 89
  • 158
12
votes
4 answers

Encode Base64 cannot find symbol error

It gives me a error when I try to compile it in terminal. It prints out this error: -bash-4.1$ javac CPS3498/HW_Ch2/encrypt.java CPS3498/HW_Ch2/encrypt.java:9: cannot find symbol symbol : class Base64 location: package java.util import…
Shiv Patel
  • 131
  • 1
  • 2
  • 11
10
votes
1 answer

Jpeg restart markers

I made jpeg decoder, but I didn't implement restart markers logic. That is reason why my program don't work on some images (for example images saved with Photoshop: File->Save As->jpeg). I want to implement restart marker logic, but there is no…
MrD
  • 2,423
  • 3
  • 33
  • 57
10
votes
4 answers

Looping for every character in a string in Python decoder ring

I'm trying to make a simple decoder ring in Python. Example: a=b, `b=c, c=d, etc. I want the script to take an encoded message and output the decoded message. For instance, I would input "ifmmp" and it would output "hello". I've been thinking I…
user1063543
  • 103
  • 1
  • 1
  • 4
10
votes
4 answers

Save java.awt.Image to disk

I have a 3rd-party lib that produces java.awt.Image object from a video stream. (In fact, it's originally used to decode .h264 file and then, display images decoded in a JFrame). Now, I want use that lib to capture several images of the stream and…
Hoa Nguyen
  • 13,452
  • 11
  • 45
  • 44
9
votes
1 answer

Trouble understanding tf.contrib.seq2seq.TrainingHelper

I managed to build a sequence to sequence model in tensorflow using the tf.contrib.seq2seq classes in 1.1 version. For know I use the TrainingHelper for training my model. But does this helper feed previously decoded values in the decoder for…
9
votes
0 answers

Android App wants Access to "/Data" Folder

I want to stream AAC encoded audio Data from my Raspberry to my Android Phone. The part of receiving the data works well but there are some problems with decoding it. I use Media Extractor and Media Codec to decode the audio data. Here is the…
1
2 3
35 36