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
3
votes
2 answers

How to make a decoder with an optional element?

I’m stuck with a decoder that should decode an array [ 9.34958, 48.87733, 1000 ] to a Point, where index 2 (elevation) is optional. type alias Point = { elev : Maybe Float , at : Float , lng : Float } Therefore I created following…
benbro00002
  • 151
  • 4
3
votes
1 answer

opus_decode returning corrupted stream

I am decoding ogg opus data which is streaming live from icecast server. I am using libopus to decode. Data gets decoded sometimes but most of the times op_decode() returns -4 which indicates corrupted stream. This is the callback function used to…
3
votes
1 answer

How to find the upper limit of hardware decoder instances for Google Pixel 2 phone

Can anyone please tell me how to check how many hardware decoder instances (OMX.qcom.video.decoder.avc)can be created in my android phone (i.e. Google Pixel 2) for decoding H.264 video stream? How to check this configuration?
MSD Paul
  • 1,648
  • 3
  • 13
  • 31
3
votes
0 answers

Android - Decoding h264 raw stream manually

So I am trying to decode a stream of raw h264 data and render it to a surface on Android. Here are the steps: Receive a packet of h264 stream Accumulate it and try to extract NAL units (byte sequences starting with 00 00 00 01 (NAL header) and up…
Vladimir Gazbarov
  • 860
  • 1
  • 10
  • 25
3
votes
1 answer

JPEG hardware Decode support in Android application

My Android app needs to decode large resolution based JPEG images on Android 2.2 phones(and above), currently I am using BitmapFactory.decodeStream API, i.e. SKIA library to decode the stream. 1) As per my knowledge SKIA uses software decoding, i.e.…
Rohit
  • 6,941
  • 17
  • 58
  • 102
3
votes
1 answer

JSON Decoder in Elm 0.18

In Elm 0.18, I would like to build a JSON decoder for the following examples: case 1: {"metadata": {"signatures":[{"metadata": {"code": "1234"}}, {"metadata": {"code": "5678"}}]}} -> { code = Just "1234" } case 2:…
Francisco Dibar
  • 353
  • 1
  • 5
3
votes
1 answer

Error in decoding: The data couldn't be read. Alamofire

I was trying to parse JSON through JSONDecoder and using Alamofire to fetch the data. However, when I run the app, it shows that the data couldn't be read because of the incorrect format. I have tried many things but still did not work. Any help…
Joe Hart
  • 57
  • 8
3
votes
1 answer

How get an RGB Bitmap by using ByteBuffer (no color correction)?

I have an mp4 video in my sd card MediaFormat = { repeat-previous-frame-after=66666, mime=video/avc, frame-rate=15, color-format=2130708361, height=720, …
3
votes
2 answers

Elm: Decode a JSON array with a single element into a string

had a look for something like this, but can't find the exact issue. I have a JSON back from server side validation that looks like: { "field": ["field-name"], "messages":["message","message"] } What I would like to do is decode it into an elm…
m4v15
  • 73
  • 7
3
votes
0 answers

Caesar cypher decoder in python

My task is to create a program that will decode a caesar cypher. I have done most of the work for this and it works fine going through each possible key and finding the new word. The problem appears when I am trying to check the words that are…
aidan
  • 85
  • 1
  • 2
  • 8
3
votes
1 answer

Autoencoder: Is the decoder the mirrored version of the encoder?

I am new with deep learning and I would like to implement autoencoders for anomaly detection. I have two questions: Are the decoder layers always the mirrored version of the encoder layers? Since the weights of hidden layer Code (h) represent the…
Emanuela Liaci
  • 165
  • 1
  • 12
3
votes
1 answer

Keras Seq2Seq Introduction

A Keras introduction to Seq2Seq model have been published a few weeks ago that can be found here. I do not really understand one part of this code: decoder_lstm = LSTM(latent_dim, return_sequences=True, return_state=True) decoder_outputs, _, _=…
BenDes
  • 917
  • 8
  • 14
3
votes
0 answers

Decoding H.264 NALU Stream C#

1- Live Bosch IP camera Stream 2- Stream format is H.264 AVC 3- The NALUs are packed in the stream item as described in "ISO/IEC 14496-15 Advanced Video Coding (AVC) file format", i.e. single NALUs are separated by a 4 byte length field in network…
Moha med
  • 89
  • 8
3
votes
0 answers

Decoding I-Frame H264 bytes to JPEG format

I have an array of bytes that represents an I-Frame from h264 camera stream. How can I convert these bytes to jpeg or other picture format. With or without using decoders? Notice: I know ffmpeg can decode I-Frame from video, but my problem is that…
Omid Saadat
  • 111
  • 2
  • 7
3
votes
1 answer

How does MPlayer recognize an MJPEG stream?

Since MJPEG over http consists basically on the transmission of a series of JPEG images seperated by a defined seperator, how does MPlayer recognize that it is an MJPEG stream? Thank you
Emy
  • 45
  • 7