Encoder is a software program, device or algorithm that converts information from one format or code to another, for the purposes of standardization, speed, secrecy, security or compressions.
Questions tagged [encoder]
612 questions
6
votes
1 answer
short way to write VHDL priority encoder
Could you tell me if there is a better way to write a priority encoder in VHDL than just using if-else statements? I mean, I have got this code and it works, but could it be written shorter? Switch is an std_logic_vector.
Thanks for your…

petajamaja
- 520
- 2
- 9
- 26
5
votes
2 answers
How to encode optional fields in spark dataset with java?
I would like to not use null value for field of a class used in dataset. I try to use scala Option and java Optional but it failed:
@AllArgsConstructor // lombok
@NoArgsConstructor // mutable type is required in java :(
@Data …

Juh_
- 14,628
- 8
- 59
- 92
5
votes
3 answers
Send sound to different audio devices
Is it possible to play a sound on a playback device that is not set as default playback device?
I need to play multiple files simultaniously trough multiple output devices.
Does anyone knows a solution for .net? (C#)
Thanks!

herman
- 71
- 2
- 4
5
votes
1 answer
LabelEncoder - reverse and use categorical data on model
I am working on a prediction project (for fun) and basically I pulled male and female names from nltk, label names as 'male' or 'female', then get the last letter of each name, and in the end use different machine learning algorithms to train and…

DanZimmerman
- 1,626
- 6
- 23
- 45
5
votes
1 answer
How to marshal array to binary and unmarshal binary to array in golang?
I want to use gob to encode and decode object, I do it like this:
type transProp struct {
a []int
b []float64
}
func (p transProp) MarshalBinary() ([]byte, error) {
// A simple encoding: plain text.
var b bytes.Buffer
…

roger
- 9,063
- 20
- 72
- 119
5
votes
3 answers
Java: Universal BaseN encoder/decoder working with large data sizes
I'm looking for a decent BaseN encoder (with custom charset) in Java, that is not limited by input data size (array of bytes).
Something like this:
https://github.com/mklemm/base-n-codec-java
But for "unlimited" data length without any unnecessary…

Jolinar
- 866
- 8
- 16
5
votes
3 answers
default() method in Python
I am making an Encoder for converting python objects to json and when researching I see a lot of solutions that include a default method. I'm not an expert in Python, but definitely not a novice either, and I'm wondering if I somehow missed that…

AmericanMade
- 453
- 1
- 9
- 22
5
votes
1 answer
ffmpeg avcodec_encode_video2 hangs when using Quick Sync h264_qsv encoder
When I use the mpeg4 or h264 encoders, I am able to successfully encode images to make a valid AVI file using the API for ffmpeg 3.1.0. However, when I use the Quick Sync encoder (h264_qsv), avcodec_encode_video2 will hang some of the time. I found…

Mike Simpson
- 59
- 3
5
votes
2 answers
How to determine WCF message size at the encoder level
I am building a custom encoder that compresses WCF responses. It is based on the Gzip encoder in Microsoft's WCF samples and this blog post:
http://frenk.wordpress.com/2009/12/04/gzip-compression-wcfsilverlight/
I've got it all working, but now I…

user250837
- 81
- 5
5
votes
5 answers
Using a rotary encoder with AVR Micro controller
I'm having trouble getting a rotary encoder to work properly with AVR micro controllers. The encoder is a mechanical ALPS encoder, and I'm using Atmega168.
Clarification
I have tried using an External Interrupt to listen to the pins, but it seems…

Marius
- 57,995
- 32
- 132
- 151
4
votes
1 answer
How to use unlimited Frame-Sizes in JBoss-Netty without wasting Memory?
I explore netty to communicate Objects between VMs. I use ObjectEncoder & ObjectDecoder respectively to serialize these.
I quickly found out that this solution is limited to max 1MB-sized objects. As I intend to communicate larger objects and given…

javadoc
- 86
- 4
4
votes
1 answer
sklearn serialize label encoder to disk for multiple categorical columns
I have a model with several categorical features that need to be converted to numeric format. I am using a combination of LabelEncoder and OneHotEncoder to achieve this.
Once in production, I need to apply the same encoding to new incoming data…

revy
- 3,945
- 7
- 40
- 85
4
votes
1 answer
Animated WebP enecoder for Android
Are there any examples on how to encode animated WebP for Android,
or maybe someone was successful and can guide me through it?
I have a batch of webP images, and I want to create an animated one from them,
There is the libwebp library, however, it…

Nirel
- 1,855
- 1
- 15
- 26
4
votes
1 answer
Compression issue when saving anR project
I solved the problem by moving R installation directory out of disk C. Thanks Joris for the great suggestions! I think the R core team should also take this as a bug and do something against the protecting mechanism of windows xp.
Dear…

Marco
- 505
- 9
- 18
4
votes
0 answers
Android adding AAC ADTS to Mediarecorder PCM
My Mediarecorder gives me a PCM File as an output when I record the phone's microphone. Now when trying to listen to this File that it created all I hear is static and I think, if I have understood correctly, I get a PCM file from Mediarecorder not…

Richard
- 1,087
- 18
- 52