Questions tagged [encoder]

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.

612 questions
0
votes
0 answers

Hack a module map to expose fileprivate constructs?

I'm implementing my own JSON encoder/decoder, à la Swift's Encoder & Decoder protocols. The thing is, I only want to override a small subset of the functionality already provided by JSONEncoder in Foundation. JSONEncoder, contrary to its name, is…
Vatsal Manot
  • 17,695
  • 9
  • 44
  • 80
0
votes
1 answer

Word2Vec Doesn't Contain Embedding for Number 23

Hi I am on the course of developing Encoder-Decoder model with Attention which predicts WTO Panel Report for the given Factual Relation given as Text_Inputs. Sample_sentence for factual relation is as follow: sample_sentence = "On 23 January 1995,…
snapper
  • 997
  • 1
  • 12
  • 15
0
votes
0 answers

Symfony encoding password in entity

OK, one may argue that there shouldn't be business logic in entity. But sometimes there is a good reason. For example when getting roles for a user, one may force a role to be returned by default from within getter method, for example as explained…
Evren Yurtesen
  • 2,267
  • 1
  • 22
  • 40
0
votes
1 answer

Text to Morse code in C

I have a function that translates text entered by the user (it also translates numbers) to Morse code, however I do not understand why the array that contains the alphabet in morse code: m [37] [10] is a two-dimensional array? I understand that the…
Erick Pro
  • 33
  • 5
0
votes
1 answer

After ffmpeg encode, AVPacket pts and dts is AV_NOPTS_VALUE

I would like to ask a question about ffmpeg when i use encoder (x264). this is my code : int FFVideoEncoder::init(AVCodecID codecId, int bitrate, int fps, int gopSize, int width, int height, AVPixelFormat format) { …
Li Zehan
  • 13
  • 2
  • 5
0
votes
1 answer

Can I set TIMx ARR value to initialize at chosen value?

So I am trying to use a rotary encoders to control menu on my STM32 project. I am using two rotary encoders to control each side of the screen (split menu). When I initialize the ARR registers of both timers which are responsible for counting the…
0
votes
1 answer

Scala Quill can't find implicit encoder for long

Following code works as expected (Laptop is a case class) : def main(args: Array[String]): implicit val ctx = new SqlMirrorContext(MirrorSqlDialect, Literal) import ctx._ val laptops = quote { querySchema[Laptop]("laptops") } implicit…
user8623021
0
votes
1 answer

Netty Decoder Encoder Error

I've the following Problem. Each time when I send a packet from my Client to my Server with the Same en- and Decoder, I get the following error in my Server console: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException:…
user8040474
0
votes
1 answer

Encodeer and decoder in python/ from wav to bin

How can I: read my audio file stores in a binary file, Can somebody give me examples to implement encoder and decoder in python?
user8789534
0
votes
1 answer

Kvazaar encoder - Reading ROI file failed

While trying this command: kvazaar -i video.yuv --input-res 1280x720 -o video_tiled.hevc --roi roi.txt --slices tiles I get this error: Reading ROI file failed. invalid argument: roi=roi.txt Any ideas? Thanks!
Sophie
  • 3
  • 5
0
votes
0 answers

Keras encoder - decoder for MNIST ->new images

I am trying to fit a encoder-decoder-network in Keras which predicts images from the MNIST data set in a very good way. Now, I have changed the image input so that apples are shown. As a reference here is a…
Andi Maier
  • 914
  • 3
  • 9
  • 28
0
votes
1 answer

Decode rotory encoder reports

I am reverse engineering the serial protocol for a console and it has been relatively straight forward until I got to decoding the reports for a frequency control that consists of a small knob with a larger outer knob. The hardware has two rotary…
0
votes
1 answer

How Can I Convert a live stream from a H.264 Encoder to a streaming service like Wowza?

hoping to get some input on a streaming issue im having. I have a H.264 hardware encoder where you connect an HDMI source (dvd player, computer etc) and then you can set up that encoder to work over WAN by opening up a port in your router and…
S.Q
  • 155
  • 2
  • 15
0
votes
1 answer

logback where init the encoder field?

Can someone tell me where the logback init the encoder field in OutputStreamAppender? appender name="logstash" class="ch.qos.logback.core.rolling.RollingFileAppender"> test.json
0
votes
1 answer

.NET base 64 encoder. When will i have to write custom encode for it?

The .net provides its own implementation of converting to/from base64 encoding but sometime i see people writing their own encodes. Just wondering what could be the real life applications where you will have to write your custom encoder rather using…
imak
  • 6,489
  • 7
  • 50
  • 73