git.videolan.org Git - ffmpeg.git/rss log
FFmpeg git repo
Les articles publiés sur le site
-
avcodec/mjpegenc_huffman : Avoid AV_QSORT to sort entries by length
2 avril, par Andreas Rheinhardtavcodec/mjpegenc_huffman: Avoid AV_QSORT to sort entries by length It is unnecessary, as we already have the entries sorted by probability and therefore implicitly by length. All we need on top of that to build the tree is the number of entries of a given length. Doing so gives a 3.6% speedup of ff_mjpeg_encode_huffman_close() here; it also saves about 640B of .text here. The new code puts values with higher probability to the left of the tree. The old code did not and therefore the FATE checksums needed to be updated. Due to MJPEG's 0xFF unescaping file sizes as well as file checksums needed to be updated; the decoded picture hashes stayed the same. Given that codes on the left of the tree have on average fewer bits set than codes on the right, the file sizes mostly improve (all except vsynth3-mjpeg-444). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
- [DH] libavcodec/mjpegenc_huffman.c
- [DH] libavcodec/tests/mjpegenc_huffman.c
- [DH] tests/ref/fate/jpg-icc
- [DH] tests/ref/lavf/jpg
- [DH] tests/ref/lavf/smjpeg
- [DH] tests/ref/seek/lavf-jpg
- [DH] tests/ref/vsynth/vsynth1-mjpeg-422
- [DH] tests/ref/vsynth/vsynth1-mjpeg-444
- [DH] tests/ref/vsynth/vsynth1-mjpeg-huffman
- [DH] tests/ref/vsynth/vsynth1-mjpeg-trell-huffman
- [DH] tests/ref/vsynth/vsynth2-mjpeg-422
- [DH] tests/ref/vsynth/vsynth2-mjpeg-444
- [DH] tests/ref/vsynth/vsynth2-mjpeg-huffman
- [DH] tests/ref/vsynth/vsynth2-mjpeg-trell-huffman
- [DH] tests/ref/vsynth/vsynth3-mjpeg-422
- [DH] tests/ref/vsynth/vsynth3-mjpeg-444
- [DH] tests/ref/vsynth/vsynth3-mjpeg-huffman
- [DH] tests/ref/vsynth/vsynth3-mjpeg-trell-huffman
- [DH] tests/ref/vsynth/vsynth_lena-mjpeg-422
- [DH] tests/ref/vsynth/vsynth_lena-mjpeg-444
- [DH] tests/ref/vsynth/vsynth_lena-mjpeg-huffman
- [DH] tests/ref/vsynth/vsynth_lena-mjpeg-trell-huffman
-
avocdec/mjpegenc_huffman : Avoid redundant loop
2 avril, par Andreas Rheinhardt -
avcodec/mjpegenc_huffman : Make ff_mjpegenc_huffman_compute_bits() static
2 avril, par Andreas Rheinhardt -
avcodec/aacenc_is : Make ff_aac_is_encoding_err() static
2 avril, par Andreas Rheinhardt -
avcodec/ffv1 : Allocate unit only when needed and only as large as needed
2 avril, par Michael Niedermayeravcodec/ffv1: Allocate unit only when needed and only as large as needed That is instead of a fixed 65536, we now allocate only as many as there are pixels. We also allocate only for the encoder and only when remapping is enabled and only for 32bit per sample This should reduce memory consumption, the 2nd array will be dealt with in a future commit Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>