Re: [FFmpeg-devel] [PATCH] Implement optimal huffman encoding for (M)JPEG.

2017-02-07 Thread Jerry Jiang
Hey is there an update on the status of the patch? Any other requested changes? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] Implement optimal huffman encoding for (M)JPEG.

2017-02-02 Thread Jerry Jiang
peg_encode_picture_frame(s); +if (m->error < 0) { +ret = m->error; +return ret; +} + +ret = ff_mpv_reallocate_putbitbuffer(s, put_bits_count(&s->pb) / 8 + 100, + put_bits_count(&s->pb) / 4 + 1000

Re: [FFmpeg-devel] [PATCH] Implement optimal huffman encoding for (M)JPEG.

2017-01-31 Thread Jerry Jiang
+ * @param s input to encode + * @param bits output array where the ith character represents how many input values have i length encoding + * @param val output array of input values sorted by their encoded length + * @param max_nval maximum number of distinct input values + * @return int

Re: [FFmpeg-devel] [PATCH] Implement optimal huffman encoding for (M)JPEG.

2017-01-29 Thread Jerry Jiang
+ff_mjpeg_encode_picture_frame(s); +if (m->error < 0) { +ret = m->error; +return ret; + } + +ret = ff_mpv_reallocate_putbitbuffer(s, put_bits_count(&s->pb) / 8 + 100, +put_bits_count(&s->pb) / 4 + 10

Re: [FFmpeg-devel] [PATCH] Implement optimal huffman encoding for (M)JPEG.

2016-12-27 Thread Jerry Jiang
s); +if (m->error < 0) { +ret = m->error; +return ret; +} + +ret = ff_mpv_reallocate_putbitbuffer(s, put_bits_count(&s->pb) / 8 + 100, + put_bits_count(&s->pb) / 4 + 1000); -int ret = ff_mpv_reallocate_putbitbuf

Re: [FFmpeg-devel] [PATCH] Implement optimal huffman encoding for (M)JPEG.

2016-12-27 Thread Jerry Jiang
Thanks for looking at our patch! > What's the performance impact like when you enable it? Any reason why it > shouldn't be made the default? From local testing on converting a random video using the mjpeg codec, we were able to encode at a speed of 207 fps with the -huffman optimal flag, a speed

[FFmpeg-devel] [PATCH] Implement optimal huffman encoding for (M)JPEG.

2016-12-26 Thread Jerry Jiang
+ret = ff_mpv_reallocate_putbitbuffer(s, put_bits_count(&s->pb) / 8 + 100, +put_bits_count(&s->pb) / 4 + 1000); -int ret = ff_mpv_reallocate_putbitbuffer(s, put_bits_count(&s->pb) / 8 + 100, -