ffmpeg-bb/tests/ref/seek
Andreas Rheinhardt ff9f3fb607 avcodec/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>
2025-04-18 08:40:17 +02:00
..
acodec-adpcm-ima_qt fate: split dependencies for fate-seek tests 2012-12-02 23:25:41 +01:00
acodec-adpcm-ima_qt-trellis fate: enable fate-seek-acodec-adpcm-ima_qt-trellis 2014-06-06 18:03:31 +02:00
acodec-adpcm-ima_wav avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-adpcm-ima_wav-trellis avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-adpcm-ms avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-adpcm-ms-trellis avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-adpcm-swf avcodec/adpcm_ima_swf: fix frame size to 4096 2020-11-07 23:43:26 +10:00
acodec-adpcm-swf-trellis avcodec/adpcm_ima_swf: fix frame size to 4096 2020-11-07 23:43:26 +10:00
acodec-adpcm-yamaha avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-adpcm-yamaha-trellis avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-alac avformat/movenc: ensure we don't write the major brand as a compatible brand more than once 2019-12-21 11:57:28 -03:00
acodec-flac fate: update seeking reference for flac 2014-04-14 17:43:25 +02:00
acodec-mp2 avformat/mp3dec: use the common mechanism for skipping samples 2015-04-22 14:16:35 +02:00
acodec-pcm-alaw avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-pcm-f32be avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-pcm-f32le avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-pcm-f64be avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-pcm-f64le avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-pcm-mulaw avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-pcm-s8 avformat/movenc: ensure we don't write the major brand as a compatible brand more than once 2019-12-21 11:57:28 -03:00
acodec-pcm-s16be avformat/movenc: ensure we don't write the major brand as a compatible brand more than once 2019-12-21 11:57:28 -03:00
acodec-pcm-s16le avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-pcm-s24be avformat/movenc: ensure we don't write the major brand as a compatible brand more than once 2019-12-21 11:57:28 -03:00
acodec-pcm-s24le avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-pcm-s32be avformat/movenc: ensure we don't write the major brand as a compatible brand more than once 2019-12-21 11:57:28 -03:00
acodec-pcm-s32le avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
acodec-pcm-u8 avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
cache-pipe ffmpeg, ffprobe: don't "merge" side data into packet data by default 2017-03-14 23:37:28 +01:00
empty-edit-mp4 lavf/mov.c: Use the correct offset to shift timestamp when seeking. 2018-03-10 17:55:50 +01:00
extra-mp3 avformat/mp3dec: Subtract known padding from duration 2025-02-26 14:52:34 +01:00
extra-mp4 lavf/mov: Change default to prefer TFDT time and allow for fallback to SIDX or TFDT 2021-11-05 16:22:04 +01:00
lavf-aiff fate/lavf-audio: Test writing AIFF-native tags 2024-03-17 16:08:13 +01:00
lavf-al avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
lavf-asf Merge commit '6072184e702b4b631ac72f1b66b75e5f21e0ce2d' 2014-05-01 17:40:14 +02:00
lavf-au avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
lavf-avi avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
lavf-bmp fate: upate after 55d32eed8f 2013-01-08 18:47:09 +00:00
lavf-dv lavf/dv: use a more granular timebase for audio 2023-05-02 10:57:21 +02:00
lavf-flv Merge commit '618d02c1fa9e74d490cace64a7d15762656b521c' 2019-03-14 14:36:24 -03:00
lavf-gif Cleanse GIF muxer and encoder. 2013-04-18 00:24:25 +02:00
lavf-gxf avcodec/mpeg12enc: store sequence display extension only if we have something to store in it 2014-06-06 22:54:22 +02:00
lavf-jpg avcodec/mjpegenc_huffman: Avoid AV_QSORT to sort entries by length 2025-04-18 08:40:17 +02:00
lavf-mkv avcodec/pnm: explicitly tag color range 2023-11-09 12:53:35 +01:00
lavf-mmf 10l: Update fate seeking reference after last commit. 2013-01-05 23:42:00 +01:00
lavf-mov avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
lavf-mpg mpegpsenc: avoid shifting dts/pts 2013-01-04 20:58:59 +01:00
lavf-mxf avformat/mxfenc: Add Padding Bits 2018-05-08 23:02:58 +02:00
lavf-mxf_d10 avformat/mxfenc: Add Padding Bits 2018-05-08 23:02:58 +02:00
lavf-mxf_dv25 avformat/mxfenc: Add Padding Bits 2018-05-08 23:02:58 +02:00
lavf-mxf_dvcpro50 avformat/mxfenc: Add Padding Bits 2018-05-08 23:02:58 +02:00
lavf-mxf_opatom avformat/mxfenc: Add Padding Bits 2018-05-08 23:02:58 +02:00
lavf-mxf_opatom_audio avformat/mxfenc: Add Padding Bits 2018-05-08 23:02:58 +02:00
lavf-nut ffmpeg: prefix encoder with "Lavc " in bitexact mode 2014-05-18 22:57:20 +02:00
lavf-ogg ffmpeg: prefix encoder with "Lavc " in bitexact mode 2014-05-18 22:57:20 +02:00
lavf-pbmpipe lavf/img2dec: add pnm pipe demuxers 2016-06-22 15:24:19 +02:00
lavf-pcx fate: upate after 55d32eed8f 2013-01-08 18:47:09 +00:00
lavf-pgm fate: upate after 55d32eed8f 2013-01-08 18:47:09 +00:00
lavf-pgmpipe lavf/img2dec: add pnm pipe demuxers 2016-06-22 15:24:19 +02:00
lavf-ppm fate: upate after 55d32eed8f 2013-01-08 18:47:09 +00:00
lavf-ppmpipe lavf/img2dec: add pnm pipe demuxers 2016-06-22 15:24:19 +02:00
lavf-rm avcodec/eac3: add support for dependent stream 2018-03-29 10:19:03 +02:00
lavf-sgi Merge commit '99f40fd02f1870c2dee70977b672da9cb198f0be' 2015-11-29 15:42:33 +01:00
lavf-swf fate: split dependencies for fate-seek tests 2012-12-02 23:25:41 +01:00
lavf-tga fate: upate after 55d32eed8f 2013-01-08 18:47:09 +00:00
lavf-tiff fate: upate after 55d32eed8f 2013-01-08 18:47:09 +00:00
lavf-ts avformat/mpegtsenc: get rid of packet counting for sdt/pat/pmt 2019-08-23 22:49:01 +02:00
lavf-ul avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
lavf-voc avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
lavf-wav avformat/pcm: decrease target audio frame per sec to 10 2024-03-16 19:19:42 +01:00
lavf-wtv avcodec/mpeg12enc: store sequence display extension only if we have something to store in it 2014-06-06 22:54:22 +02:00
lavf-y4m avcodec/pnm: explicitly tag color range 2023-11-09 12:53:35 +01:00
mkv-codec-delay ffmpeg, ffprobe: don't "merge" side data into packet data by default 2017-03-14 23:37:28 +01:00
test-iibbibb-mp4 lavf/mov.c: Use the correct offset to shift timestamp when seeking. 2018-03-10 17:55:50 +01:00
test-iibbibb-neg-ctts-mp4 lavf/mov.c: Use the correct offset to shift timestamp when seeking. 2018-03-10 17:55:50 +01:00
vsynth_lena-asv1 avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-asv2 avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-dnxhd-4k-hr-lb tests/fate: add dnxhr encoding tests 2016-07-24 12:31:07 +02:00
vsynth_lena-dnxhd-720p tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-dnxhd-720p-rd tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-dnxhd-1080i avformat/movenc: ensure we don't write the major brand as a compatible brand more than once 2019-12-21 11:57:28 -03:00
vsynth_lena-dv lavf/dv: do not set video timebase more than once 2023-05-02 10:57:21 +02:00
vsynth_lena-dv-50 lavf/dv: do not set video timebase more than once 2023-05-02 10:57:21 +02:00
vsynth_lena-dv-411 lavf/dv: do not set video timebase more than once 2023-05-02 10:57:21 +02:00
vsynth_lena-ffv1 avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-flashsv Revert "tests/fate: disable compression for zlib-based codecs" 2024-10-16 17:38:57 -03:00
vsynth_lena-flv lavf/flvdec: init AVPacket::pos to FLVTAG offset 2016-10-26 02:12:18 +02:00
vsynth_lena-h261 tests/fate/vcodec: Test H.261 loop-filter 2025-03-04 12:51:54 +01:00
vsynth_lena-h263 avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-h263p avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-huffyuv avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-jpegls avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-ljpeg avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-mjpeg tests/fate/vcodec: Test "default" Huffman tables, too 2025-04-09 13:52:29 +02:00
vsynth_lena-mpeg1 tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-mpeg1b tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-mpeg2-422 avcodec/mpegvideo_enc: Fix a chroma mb size error in sse_mb() 2022-07-09 21:05:02 +02:00
vsynth_lena-mpeg2-idct-int tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-mpeg2-ilace tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-mpeg2-ivlc-qprd tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-mpeg2-thread tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-mpeg2-thread-ivlc tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-mpeg4 avformat/movenc: ensure we don't write the major brand as a compatible brand more than once 2019-12-21 11:57:28 -03:00
vsynth_lena-mpeg4-adap avcodec/mpegvideo_enc: Don't set qscale_table value prematurely 2025-03-04 12:44:18 +01:00
vsynth_lena-mpeg4-adv avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-mpeg4-error avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-mpeg4-nr avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-mpeg4-nsse avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-mpeg4-qpel avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-mpeg4-qprd avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-mpeg4-rc tests/fate/vcodec: Test using mpeg2-quantizers for MPEG-4 2025-03-04 12:51:54 +01:00
vsynth_lena-mpeg4-thread avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-msmpeg4 avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-msmpeg4v2 avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-rgb avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-roqvideo swscale/range_convert: fix mpeg ranges in yuv range conversion for non-8-bit pixel formats 2024-12-05 21:10:29 +01:00
vsynth_lena-rv10 tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-rv20 tests: Rename vsynth2 to vsynth_lena 2014-12-02 03:02:30 +01:00
vsynth_lena-snow avcodec/snowenc: Fix visual weight calculation 2023-03-26 01:46:48 +01:00
vsynth_lena-snow-ll avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-svq1 avcodec/svq1enc: do not use ambiguous interframe mean symbols 2022-11-01 09:24:29 +11:00
vsynth_lena-wmv1 avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-wmv2 avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00
vsynth_lena-yuv avformat/avienc: Fix wrongly placed comment 2015-03-19 17:30:28 +01:00