Builder ffmpeg64-solaris10-i386 Build #12054
Results:
Failed shell_2 shell_3 shell_4 shell_5
SourceStamp:
Project | ffmpeg |
Repository | https://git.ffmpeg.org/ffmpeg.git |
Branch | master |
Revision | 226fcc7258ca0a6bc74c19acc8d2fe181393bfb1 |
Got Revision | 226fcc7258ca0a6bc74c19acc8d2fe181393bfb1 |
Changes | 128 changes |
BuildSlave:
unstable10xReason:
The SingleBranchScheduler scheduler named 'schedule-ffmpeg64-solaris10-i386' triggered this build
Steps and Logfiles:
-
git update ( 45 secs )
-
shell 'gsed -i ...' ( 0 secs )
-
shell_1 'gsed -i ...' ( 0 secs )
-
shell_2 'gsed -i ...' failed ( 1 secs )
-
shell_3 './configure --samples="../../../ffmpeg/fate-suite" ...' failed ( 28 secs )
-
shell_4 'gmake fate-rsync' failed ( 0 secs )
-
shell_5 '../../../ffmpeg/fate.sh ../../../ffmpeg/fate_config_64.sh' failed ( 0 secs )
Build Properties:
Name | Value | Source |
---|---|---|
branch | master | Build |
builddir | /export/home/buildbot/slave/ffmpeg64-solaris10-i386 | slave |
buildername | ffmpeg64-solaris10-i386 | Builder |
buildnumber | 12054 | Build |
codebase | Build | |
got_revision | 226fcc7258ca0a6bc74c19acc8d2fe181393bfb1 | Git |
project | ffmpeg | Build |
repository | https://git.ffmpeg.org/ffmpeg.git | Build |
revision | 226fcc7258ca0a6bc74c19acc8d2fe181393bfb1 | Build |
scheduler | schedule-ffmpeg64-solaris10-i386 | Scheduler |
slavename | unstable10x | BuildSlave |
workdir | /export/home/buildbot/slave/ffmpeg64-solaris10-i386 | slave (deprecated) |
Forced Build Properties:
Name | Label | Value |
---|
Responsible Users:
- Andreas Rheinhardtandreas.rheinhardt@outlook.com
- Gyan Doshiffmpeg@gyani.pro
- James Almerjamrial@gmail.com
- Lynnedev@lynne.ee
- Martin Storsjömartin@martin.st
- Michael Niedermayermichael@niedermayer.cc
- Shreesh Adiga16567adigashreesh@gmail.com
- Zhao Zhilizhilizhao@tencent.com
- softworkzsoftworkz@hotmail.com
Timing:
Start | Fri Mar 28 14:59:40 2025 |
End | Fri Mar 28 15:00:58 2025 |
Elapsed | 1 mins, 18 secs |
All Changes:
:
Change #225605
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Sun 23 Mar 2025 14:14:43 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision fc44ccd9814f6a7bdbc1cd96d6aa53c299a41272 Comments
configure: Add EXR decoder->bswapdsp dependency Needed on BE systems. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- configure
Change #225608
Category ffmpeg Changed by Shreesh Adiga <16567adigashreesh @gmail.com>Changed at Sun 23 Mar 2025 16:25:48 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 26f2f03e0de278f296fbd1e8a09c43245b65f5e3 Comments
swscale/x86/rgb2rgb: optimize AVX2 version of uyvytoyuv422 Currently the AVX2 version of uyvytoyuv422 in the SIMD loop does the following: 4 vinsertq to have interleaving of the vector lanes during load from memory. 4 vperm2i128 inside 4 RSHIFT_COPY calls to achieve the desired layout. This patch replaces the above 8 instructions with 2 vpermq and 2 vpermd with a vector register similar to AVX512ICL version. Observed the following numbers on various microarchitectures: On AMD Zen3 laptop: Before: uyvytoyuv422_c: 51979.7 ( 1.00x) uyvytoyuv422_sse2: 5410.5 ( 9.61x) uyvytoyuv422_avx: 4642.7 (11.20x) uyvytoyuv422_avx2: 4249.0 (12.23x) After: uyvytoyuv422_c: 51659.8 ( 1.00x) uyvytoyuv422_sse2: 5420.8 ( 9.53x) uyvytoyuv422_avx: 4651.2 (11.11x) uyvytoyuv422_avx2: 3953.8 (13.07x) On Intel Macbook Pro 2019: Before: uyvytoyuv422_c: 185014.4 ( 1.00x) uyvytoyuv422_sse2: 22800.4 ( 8.11x) uyvytoyuv422_avx: 19796.9 ( 9.35x) uyvytoyuv422_avx2: 13141.9 (14.08x) After: uyvytoyuv422_c: 185093.4 ( 1.00x) uyvytoyuv422_sse2: 22795.4 ( 8.12x) uyvytoyuv422_avx: 19791.9 ( 9.35x) uyvytoyuv422_avx2: 12043.1 (15.37x) On AMD Zen4 desktop: Before: uyvytoyuv422_c: 29105.0 ( 1.00x) uyvytoyuv422_sse2: 3888.0 ( 7.49x) uyvytoyuv422_avx: 3374.2 ( 8.63x) uyvytoyuv422_avx2: 2649.8 (10.98x) uyvytoyuv422_avx512icl: 1615.0 (18.02x) After: uyvytoyuv422_c: 29093.4 ( 1.00x) uyvytoyuv422_sse2: 3874.4 ( 7.51x) uyvytoyuv422_avx: 3371.6 ( 8.63x) uyvytoyuv422_avx2: 2174.6 (13.38x) uyvytoyuv422_avx512icl: 1625.1 (17.90x) Signed-off-by: Shreesh Adiga <16567adigashreesh@gmail.com>
Changed files
- libswscale/x86/rgb_2_rgb.asm
Change #225612
Category ffmpeg Changed by Zhao Zhili <zhilizhao @tencent.com>Changed at Mon 24 Mar 2025 07:53:27 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision c6214b0d691566c7cb0f2ff5be08a24c3534e5bb Comments
avcodec/vt: Don't restart decoder when confronted with ReferenceMissingErr Otherwise the decoder may enter an loop of repeated state resets. This can happen for streams with CRA but no IDR. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Changed files
- libavcodec/videotoolbox.c
Change #225616
Category ffmpeg Changed by Zhao Zhili <zhilizhao @tencent.com>Changed at Mon 24 Mar 2025 07:53:41 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 1731eba20d87a7f62f91c4507fca783c20b5ece4 Comments
avformat/mov: generalize sgpd_sync index lookup The function has a nal_unit_type parameter but unused before. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Changed files
- libavformat/mov.c
Change #225622
Category ffmpeg Changed by Zhao Zhili <zhilizhao @tencent.com>Changed at Mon 24 Mar 2025 07:54:40 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 2a189d44b517ff97a34622be23157f51b8f42cd6 Comments
avcodec/avs3_parser: pixel format should be native endian Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Changed files
- libavcodec/avs3_parser.c
Change #225626
Category ffmpeg Changed by Zhao Zhili <zhilizhao @tencent.com>Changed at Mon 24 Mar 2025 07:54:46 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 51b61ec35dbd9fae6cc9450c7e88ebdee227cea4 Comments
avcodec/libuavs3d: pixel format should be native endian Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Changed files
- libavcodec/libuavs3d.c
Change #225631
Category ffmpeg Changed by Gyan Doshi <ffmpeg @gyani.pro>Changed at Mon 24 Mar 2025 11:47:13 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 6fb1bbd73c4d320733c636a22728a7d747303371 Comments
avfilter/scale: remove duplicate block Added in bb80445813
Changed files
- libavfilter/vf_scale.c
Change #225635
Category ffmpeg Changed by Gyan Doshi <ffmpeg @gyani.pro>Changed at Mon 24 Mar 2025 11:47:47 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 323cb8c61ea157e01ae98f5a2e3acb8208cfc84a Comments
ffmpeg_demux: set default for readrate_catchup to be 5% faster The existing default value is the same as the primary readrate. This maintains the flow rate as best as possible but does not reduce the lag. This new value allows catchup to gradually happen without overwhelming the receiver. Addresses a concern brought up in #11469
Changed files
- fftools/ffmpeg_demux.c
Change #225639
Category ffmpeg Changed by Gyan Doshi <ffmpeg @gyani.pro>Changed at Mon 24 Mar 2025 11:48:17 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision cbbc927a67f142a02bfc5d047c03587599ee5b55 Comments
ffmpeg: add per-stream input option drop_changed This is a replacement in ffmpeg for the deprecated avcodec flag AV_CODEC_FLAG_DROPCHANGED. This option is meant to be used when the filtergraph should not be reinited upon input parameter changes as that leads to loss of state in the filtergraph potentially leading to broken or aborted output, e.g. inserting of silence with first_pts specified in aresample. Generally useful to avoid corrupted yet decodable packets in live streaming inputs. This option when enabled takes precedence over reinit_filters
Changed files
- doc/ffmpeg.texi
- fftools/ffmpeg.h
- fftools/ffmpeg_demux.c
- fftools/ffmpeg_filter.c
- fftools/ffmpeg_opt.c
Change #225644
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Mon 24 Mar 2025 13:46:57 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 62c7d08947f5a92d49c74b04f37df7d2c245846c Comments
avcodec/ffv1: Fix remap ordering Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1dec_template.c
- libavcodec/ffv1enc.c
- libavcodec/ffv1enc_template.c
Change #225648
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Mon 24 Mar 2025 13:46:58 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 171060d5dc54d1526abde736a711ce234df632f2 Comments
avcodec/ffv1: 32-bit float sample support Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1.h
- libavcodec/ffv1_parse.c
- libavcodec/ffv1dec.c
- libavcodec/ffv1dec_template.c
- libavcodec/ffv1enc.c
Change #225652
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Mon 24 Mar 2025 13:46:58 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision e19496fe71ae3d588f525c1d385586ea58b4d7dd Comments
avcodec/ffv1enc: remap allows using rice golomb with more bits Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225656
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Mon 24 Mar 2025 13:46:58 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 0538b4c5691a8af2e57912ab9043191338ca1cf9 Comments
avcodec/ffv1dec: remove unused var
Changed files
- libavcodec/ffv1dec.c
Change #225660
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Mon 24 Mar 2025 13:46:59 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 5dcf566f690c05a613a38ace7421f123a4a553f1 Comments
avcodec/ffv1: Implement 2D RLE for remap ATM this performs as well or better as any other algorithm tried. Its simple for the decoder. On the encoder side complexity depends on how parameters are chosen. But with a fixed mul_count of 1 and basic heuristic it performs as well as any more complex choice i tried so far. The encoder code here is flexible and allows mul_count > 1 and also can easily be used to exactly test various parameters. With mul_count=512 we can gain another 6% in remap table size for fixed point in float data. (this is not implemented in this patch though) Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1dec.c
- libavcodec/ffv1enc.c
Change #225665
Category ffmpeg Changed by James Almer <jamrial @gmail.com>Changed at Mon 24 Mar 2025 14:10:19 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision fee5b0a383441feadf4b48dad15caa89c1aad555 Comments
fftools/ffmpeg_filter: ensure ifp is set before dereferencing it Fixes segfaults since cbbc927a67f142a02bfc5d047c03587599ee5b55. Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- fftools/ffmpeg_filter.c
Change #225669
Category ffmpeg Changed by James Almer <jamrial @gmail.com>Changed at Mon 24 Mar 2025 17:55:56 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 702239bc500bc63c50dca16d194cb2166ad98bf4 Comments
avcodec/ffv1enc: reduce stack usage Fixes failures in some systems since 171060d5dc54d1526abde736a711ce234df632f2. This can be further improved by only allocating the arrays when needed. Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- libavcodec/ffv1.h
- libavcodec/ffv1enc.c
Change #225674
Category ffmpeg Changed by James Almer <jamrial @gmail.com>Changed at Mon 24 Mar 2025 20:32:47 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision a4cf0979a4840cffe0fbc00821c517eabb130cf4 Comments
avcodec/ffv1enc: update missing Unit accesses inside av_assert2 Fixes compilation with assert-level=2. Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- libavcodec/ffv1enc.c
Change #225676
Category ffmpeg Changed by James Almer <jamrial @gmail.com>Changed at Mon 24 Mar 2025 20:34:24 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 044664ac3bc07114996affc6fe95edd9b52f55bb Comments
avcodec/ffv1enc: remove mixed declarations and code Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- libavcodec/ffv1enc.c
Change #225679
Category ffmpeg Changed by Gyan Doshi <ffmpeg @gyani.pro>Changed at Mon 24 Mar 2025 20:36:03 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 8b2372cac77c6720048b4c65c6d1abb9c630ab4a Comments
ffmpeg-filter: check for initialized graph Don't drop frame if graph hasn't been initialized yet!
Changed files
- fftools/ffmpeg_filter.c
Change #225684
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Tue 25 Mar 2025 11:24:12 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision e619b0d81751840c0aa5feb3e46342b9abb5ea42 Comments
avcodec/ffv1enc: remap mode 2 is for floats only (you could use it for others but it makes no sense) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225687
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Tue 25 Mar 2025 11:24:12 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 3813559660557415820140d6f7687ad1db5d5708 Comments
avcodec/ffv1enc: remap table size is 1<<bits_per_raw_sample not fixed 65536 not a bugfix as this path was only used for float16 but it makes sense to allow using this for integers too Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225690
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Tue 25 Mar 2025 11:24:12 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 5ca14b23f1e8137258580dd9045f025795b2eb88 Comments
avcodec/ffv1dec: compute end instead of hardcoding it and test for fltmap correctly A step toward supporting remap for integer formats less than 16 bit Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1dec.c
Change #225694
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Tue 25 Mar 2025 11:24:13 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 522fc389e854f27e99e364eadd22c8d6d414b875 Comments
avcodec/ffv1dec: replace literal 65535 by what it is should make the code easier to understand Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1dec.c
Change #225703
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Tue 25 Mar 2025 11:24:13 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision e9cfed35a582433d1a397ae8efa82d4d295d40e7 Comments
avcodec/ffv1enc: eliminate if() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225708
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Tue 25 Mar 2025 11:31:08 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 4b24c5ba693f6501b77ffec932dc858f20e6a2d7 Comments
avcodec/ffv1enc: introduce step to simplify code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225711
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Tue 25 Mar 2025 11:32:11 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 836add03a890abb03bd0c2dc3e7817f605c02be3 Comments
avcodec/ffv1enc: Simplify last_val update Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225714
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Tue 25 Mar 2025 11:32:14 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision a33908d051843d53668c6a0920e47377fab2c0fa Comments
avcodec/ffv1enc: Factorize s.last_val update out Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225717
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Tue 25 Mar 2025 11:32:14 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 051fd03f6c09ce468f5ff16896ef6a01d75abe73 Comments
avcodec/ffv1enc: Heuristic to select fixed in float multipliers Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225720
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Tue 25 Mar 2025 11:38:20 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 8af28d2eb18e88edee49d8d730cc94fc9fd9a08e Comments
avcodec/ffv1enc: Eliminate index_stack and delta_stack This reduces stack space requirements my 1.5 mb and should fix fate Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225723
Category ffmpeg Changed by softworkz <softworkz @hotmail.com>Changed at Tue 25 Mar 2025 11:38:21 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision d435b641a2663c81e4b528cff945543f9bd1d220 Comments
MAINTAINERS: Add myself will move to specific areas once they are there. Signed-off-by: softworkz <softworkz@hotmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- MAINTAINERS
Change #225726
Category ffmpeg Changed by James Almer <jamrial @gmail.com>Changed at Tue 25 Mar 2025 15:09:16 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 3e0b38ed7ff1e9bd740c7e1d66695895146ce429 Comments
avcodec/cbs_av1: also store a pointer to the start of the tile group data This will be useful a following commit, where the offset of the Tile Group inside a Frame OBU needs to be known. Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- libavcodec/cbs_av1.c
- libavcodec/cbs_av1.h
- libavcodec/cbs_av1_syntax_template.c
Change #225730
Category ffmpeg Changed by James Almer <jamrial @gmail.com>Changed at Wed 26 Mar 2025 00:38:29 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 5631704d83aba75c2c8b836515dd608115aa194a Comments
avcodec/cbs: allow fine tunning selection of features Core framework and AV1 only for now. This will be useful in an upcoming commit, where CBS will be utilized by a module outside libavcodec. Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- libavcodec/cbs.c
- libavcodec/cbs.h
- libavcodec/cbs_av1.c
- libavcodec/cbs_av1.h
- libavcodec/cbs_av1_syntax_template.c
- libavcodec/cbs_internal.h
Change #225733
Category ffmpeg Changed by James Almer <jamrial @gmail.com>Changed at Wed 26 Mar 2025 00:59:18 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 08e334e462c6337478c164da84cd7be718d285b9 Comments
avformat/movenccenc: add support for CENC AV1 encryption Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- Changelog
- libavformat/Makefile
- libavformat/cbs.c
- libavformat/cbs.h
- libavformat/cbs_av1.c
- libavformat/movenc.c
- libavformat/movenccenc.c
- libavformat/movenccenc.h
- libavformat/version.h
- tests/ref/fate/source
Change #225735
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:06:10 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision ad4f6a3d6e5f9bb9e0dc40f5b5482052ae1d0b69 Comments
avcodec/mpegvideo(_enc)?: Mark init, close functions as av_cold Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.c
- libavcodec/mpegvideo_enc.c
Change #225737
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:06:54 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision f507f26e4763a335b3e9af9af4d8f58b836948ca Comments
avcodec/mpegvideoenc: Add MPVMainEncContext This is in preparation for moving all the elements from MpegEncContext that are only used by the main encoder thread to MPVMainEncContext. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/flvenc.c
- libavcodec/h261enc.c
- libavcodec/ituh263enc.c
- libavcodec/mjpegenc.c
- libavcodec/mpeg12enc.c
- libavcodec/mpeg4videoenc.c
- libavcodec/mpegvideoenc.h
- libavcodec/msmpeg4enc.c
- libavcodec/msmpeg4enc.h
- libavcodec/rv10enc.c
- libavcodec/rv20enc.c
- libavcodec/speedhqenc.c
- libavcodec/wmv2enc.c
Change #225740
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:07:22 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision bb0a72b10087e1fa5c75a868514c507cebeff3d9 Comments
avcodec/mpegvideoenc: Move tmp bframes to MPVMainEncContext Also move b_frame_strategy and b_sensitivity and brd_scale; they are all only used by an encoder's main thread when b_frame_strategy == 2. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
Change #225742
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:07:52 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision d8c7925e3291e930fcd83b57719acbc3a6ff3697 Comments
avcodec/mpegvideoenc: Move ratecontrol to MPVMainEncContext Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/ratecontrol.c
- libavcodec/ratecontrol.h
- libavcodec/snowenc.c
Change #225744
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:08:22 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 4d79175b9a2a1ef6926b6dac7cb23edd9dd94038 Comments
avcodec/mpegvideo_enc: Precalculate which frames to reconstruct Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
Change #225746
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:08:52 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 3275d788ec7d398b340c4202e49125ddc2a39bb7 Comments
avcodec/mpegvideo: Move frame_skip_* fields to MPVMainEncContext Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
Change #225748
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:09:23 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision b7ee7994cc76abadfc5362cddb2aa573f8d90c8c Comments
avcodec/h261enc: Make h261_encode_init() call ff_mpv_encode_init() Right now, ff_mpv_encode_init() is set as FFCodec.init and calls ff_h261_encode_init(). The opposite is more natural and avoids a non-static function. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/h261enc.c
- libavcodec/h261enc.h
- libavcodec/mpegvideo_enc.c
Change #225750
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:09:47 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision c757f948d1d7ab784295044297d7bde350428481 Comments
avcodec/mpegvideo: Don't initialize [yc]_dc_scale_table by default Only the H.263-based decoders as well as the encoders need it; so move it to ff_h263_decode_init() as well as ff_mpv_encode_init(). Also for the latter make it only set these tables if none are already set. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/h263dec.c
- libavcodec/mpegvideo.c
- libavcodec/mpegvideo_enc.c
Change #225752
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:10:12 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 565e57ea87dc821dcf4a0647e28ad9976d34066e Comments
avcodec/speedhqenc: Make speedhq_encode_init() call ff_mpv_encode_init() Right now, ff_mpv_encode_init() is set as FFCodec.init and calls ff_speedhq_encode_init(). The opposite is more natural and avoids a non-static function. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
- libavcodec/speedhqenc.c
- libavcodec/speedhqenc.h
Change #225754
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:10:37 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 9928b9e9faefc88ca0efe39e2a4a6302966eeb76 Comments
avcodec/speedhqenc: Avoid indirection Namely use avctx directly instead of s->avctx. While just at it, also move the switch to the other checks involving avctx. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/speedhqenc.c
Change #225756
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:11:00 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision dcd4daee8c2ac31285317f9ff63bd2a5c555f929 Comments
avcodec/mjpegenc: Make mjpeg_encode_init() call ff_mpv_encode_init() Right now, ff_mpv_encode_init() is set as FFCodec.init and calls ff_speedhq_encode_init(). The opposite is more natural, avoids a non-static function and allows to reuse e.g. slice_context_count instead of duplicating the logic from ff_mpv_common_init(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mjpegenc.c
- libavcodec/mjpegenc.h
- libavcodec/mpegvideo_enc.c
Change #225758
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:11:26 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 24dbc4c2e82481f89d6fcacee1949e5038c5c2fc Comments
avcodec/mjpegenc: Simplify allocating huffman table Reuse the already computed value of macroblocks; use an array instead of a switch, evaluate 64 * sizeof(MJpegHuffmanCode) at compile-time. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mjpegenc.c
Change #225760
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:11:49 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision edebd1d9a46564ef3a23f0f2db8f98eed4aa7069 Comments
avcodec/mpegvideo_enc: Only set fcode_tab if unset This is in preparation for merging ff_mpeg1_encode_init() into the MPEG-1/2 encoder's init function. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
Change #225762
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:12:14 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 34557b1d30adf1c1364413a9329b2cac6b75ddce Comments
avcodec/mpeg12enc: Move encode_init() to the end of the file Will avoid forward declarations later. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg12enc.c
Change #225764
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:12:38 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 6ecdbcc4540aa66d7652b240d1f72b9c0fb19983 Comments
avcodec/mpeg12enc: Merge ff_mpeg1_encode_init() into ordinary init Everything except setting the dc_scale_tables can be done before calling ff_mpv_encode_init(); setting the dc_scale_tables unfortunately still has to be performed via a (now inlined) callback performed by ff_mpv_encode_init() as it relies on intra_dc_precision having been sanitized. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg12enc.c
- libavcodec/mpeg12enc.h
Change #225766
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:13:04 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 4eb86951fc36396110205d0c44e9c9e8c61718fe Comments
avcodec/mpeg12enc: Don't write invalid MPEG-1 slice headers The valid values for slice_start_code are 0x1..0xAF, which implies that one can't start a slice with row nb > 174 (zero-based). This problem can be encountered with files of sufficient height (more than 2800 pixels) either by using the slice option or by imposing an RTP payload limit. Fix this by making the last slice start on the maximum allowed slice row if necessary and divide the first 174 rows to the remaining slices. This will impede parallelism both in the decoder and encoder, but that is unavoidable. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg12enc.c
- libavcodec/mpegvideo_enc.c
Change #225767
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:13:29 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision c82101c9ce70917880d60ef5cc4f96cff5c650f0 Comments
avcodec/pthread_slice: Remove MPEG-1 height hack This is no longer necessary given that the MPEG-1 encoder now adapts the size of the last slice to ensure that no slice header has an invalid slice_start_code. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/pthread_slice.c
Change #225769
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:13:53 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 7d1bf0ac7a229cf26eb174d13d486b8a318e1607 Comments
avcodec/pthread_slice: Return error on error Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/pthread_slice.c
Change #225771
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:14:17 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision f9fe1e07ad4762cbafbef260fcd89cff97deda2a Comments
avutil/slicethread: Remove NULL pointer check when freeing avpriv_slicethread_free() is one of our functions that takes a pointer to a pointer and resets the pointer when done. It is legal for such functions to be passed a pointer to a NULL pointer, yet passing a NULL pointer would be insane and should not be tolerated. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavutil/slicethread.c
Change #225773
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:14:41 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision e8a8a13128f54da16e2be088331562edf2bfc6d2 Comments
avutil/slicethread: Mark avpriv_slicethread_{create,free} as av_cold Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavutil/slicethread.c
Change #225775
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:15:05 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision fca1ac2cba9a6ff5ebadeca45e86e7b1728b59fc Comments
avcodec/mpeg4videoenc: Add Mpeg4EncContext and move time_increment_bits It is only ever used by the main encoder thread. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg4videoenc.c
- libavcodec/mpeg4videoenc.h
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
Change #225777
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:15:37 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision d9dea7088dca4aa809bd8a717b55788371cd68cd Comments
avcodec/mpegvideo_enc: Move MPEG-4 specific check to mpeg4videoenc.c Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg4videoenc.c
- libavcodec/mpegvideo_enc.c
Change #225779
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:16:03 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision b710698571f8bf33aedd80df3ec092b6782ec312 Comments
avcodec/mpegvideo: Move sequence-level properties to MPVMainEncContext Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg12enc.c
- libavcodec/mpeg12enc.h
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/ratecontrol.c
Change #225781
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:17:52 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision d1fd8665fbf163bbe5af268c376d910bdc7e50ca Comments
avcodec/mpegvideo: Move ratecontrol-adjacent fields to MPVMainEncContext Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/ratecontrol.c
- libavcodec/snowenc.c
Change #225783
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:29:07 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 553fc3a7647d726e7e257761a4ff6ebd23cfdd95 Comments
avcodec/mpegvideoenc: Disable scenechange threshold opt for MJPEG, AMV It makes no sense for them. Also do the same for the mv0 flag. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideoenc.h
Change #225785
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:29:35 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision b038c7af0cd47db7d6e34772d5451841f91d8f90 Comments
avcodec/mpegvideo: Move macroblock-variance stats to MPVMainEncContext Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/ratecontrol.c
- libavcodec/snowenc.c
Change #225787
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:30:07 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 6b6b34df35a4d9cc19c1d3751c01c03542fb1b13 Comments
avcodec/mpegvideo: Move header_bits to MPVMainEncContext The header is always written by the main thread, so it is not surprising that header_bits can be moved to MPVMainEncContext as well. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mjpegenc.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/ratecontrol.c
Change #225789
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:30:38 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision e308292a3135ede0604df45483f7fe7014d26561 Comments
avcodec/speedhqenc: Move speedhq_encode_init() down Will avoid forward declarations later. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/speedhqenc.c
Change #225791
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:31:02 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision b2393a5ab155eae3052fecdac1acdfd9942bbc32 Comments
avcodec/wmv2enc: Move wmv2_encode_init() down Will avoid forward declarations later. While just at it, forward ff_mpv_encode_init() errors. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/wmv2enc.c
Change #225793
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:31:26 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision ecba58311cf21d842b1ecabd449a4dece4b78a7b Comments
avcodec/mpegvideo_enc: Use function ptr for encode_picture_header This gets rid of a switch and (in case of FMT_H263) several ifs. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/flvenc.c
- libavcodec/flvenc.h
- libavcodec/h261enc.c
- libavcodec/h261enc.h
- libavcodec/h263enc.h
- libavcodec/ituh263enc.c
- libavcodec/mjpegenc.c
- libavcodec/mjpegenc.h
- libavcodec/mpeg12enc.c
- libavcodec/mpeg12enc.h
- libavcodec/mpeg4videoenc.c
- libavcodec/mpeg4videoenc.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/msmpeg4enc.c
- libavcodec/msmpeg4enc.h
- libavcodec/rv10enc.c
- libavcodec/rv10enc.h
- libavcodec/rv20enc.c
- libavcodec/speedhqenc.c
- libavcodec/speedhqenc.h
- libavcodec/wmv2enc.c
- libavcodec/wmv2enc.h
Change #225795
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:31:55 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 7751b0cbed67112e4397aabd16dc079b958cb4f7 Comments
avcodec/mpegvideo: Move fcode_tab to MPVMainEncContext Only used by the main encoding thread. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/ituh263enc.c
- libavcodec/motion_est.c
- libavcodec/motion_est.h
- libavcodec/mpeg12enc.c
- libavcodec/mpeg4videoenc.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
Change #225797
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:32:26 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 5308eeae5c1068cf2b4478db17855e5c7090a0cf Comments
avcodec/speedhqenc: Remove declaration of non-existent function Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/speedhqenc.h
Change #225799
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:32:51 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 2f73a197a1584398e68c7b54f2cb97b6a78b37d6 Comments
avcodec/mjpegenc: Move mjpeg_encode_init() down Will avoid a forward declaration later. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mjpegenc.c
Change #225801
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:33:15 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 5affd0221e17d6a57af69323e1476eee1219d3ee Comments
avcodec/mpegvideo_enc: Use func ptr for encoding macroblocks It gets rid of a switch (with accompanying CONFIG_*_ENCODER checks); for MJPEG, it even lets one perform the check for whether one is really encoding or only recording the macroblock once during init. Furthermore, the switch actually contained lots of dead code -- it is compiled three times (for different pixel formats: 420, 422, 444), yet most encoders only support 420. The approach used here automatically fixes this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/h261enc.c
- libavcodec/h261enc.h
- libavcodec/h263enc.h
- libavcodec/ituh263enc.c
- libavcodec/mjpegenc.c
- libavcodec/mjpegenc.h
- libavcodec/mpeg12enc.c
- libavcodec/mpeg12enc.h
- libavcodec/mpeg4videoenc.c
- libavcodec/mpeg4videoenc.h
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/msmpeg4enc.c
- libavcodec/msmpeg4enc.h
- libavcodec/speedhqenc.c
- libavcodec/speedhqenc.h
- libavcodec/wmv2enc.c
- libavcodec/wmv2enc.h
Change #225803
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:33:48 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 78391f20c8822a490adb6359b9b2973730cb00ed Comments
avcodec/mjpegenc: Reindent after the previous commit Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mjpegenc.c
Change #225805
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:34:12 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 6e02882656ead99d9b881104521cbcb38d100811 Comments
avcodec/mpegvideo: Add pointer to main context to slice contexts It is a pointer to const to allow the slice threads to inspect values without modifying them; also make it a simple cast for codecs that don't support slice threading. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideoenc.h
Change #225807
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:34:44 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 72bf3d3c12ae562fd408603483bc59058757b1a1 Comments
avcodec/mpegvideo: Move max_b_frames to MPVMainEncContext Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg4videoenc.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/ratecontrol.c
Change #225809
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:35:16 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision bf4dedd6b576c33e6c161a4e91c97235567df30b Comments
avcodec/mpegvideo: Move MPVPicture arrays to MPVMainEncContext Also avoid allocations while at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg4videoenc.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
Change #225811
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:35:47 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision bceeb358573fbd7d5f94ecd1df452149282e8e58 Comments
avcodec/mpegvideo: Move vbv_delay_pos to MPVMainEncContext Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg12enc.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
Change #225813
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:36:20 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 9f469e244e860465ad7412d1d9f159640f61eb61 Comments
avcodec/mpegvideoenc: Add bit_rate to MPVMainEncContext Use it instead of the MpegEncContext field which will be removed soon. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg12enc.c
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/msmpeg4enc.c
- libavcodec/ratecontrol.c
- libavcodec/snowenc.c
- libavcodec/wmv2enc.c
Change #225815
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:36:49 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 0a9f58a7a1b3c949b91b4f8919d26c6267df28da Comments
avcodec/mpeg12dec: Add bit_rate field to Mpeg1Context Use it instead of MpegEncContext.bit_rate which will be removed soon. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg12dec.c
Change #225817
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:37:14 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision f733cfca2822742766ea19f6a50aaacd3ad21c87 Comments
avcodec/msmpeg4dec: Add MSMPEG4DecContext This is in preparation for further commits. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/msmpeg4dec.c
- libavcodec/msmpeg4dec.h
- libavcodec/wmv2dec.c
Change #225819
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:37:39 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 6d47d569d7c61677d9666e5241935d8aa4a99b99 Comments
avcodec/mpegvideo: Move bit_rate field to MSMP4DecContext Also make it an int as that is all MSMP4 needs. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/msmpeg4dec.c
- libavcodec/msmpeg4dec.h
- libavcodec/wmv2dec.c
Change #225821
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:38:11 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 82a856e2e9667176e03bcb0c289316cbfd2b0a4f Comments
avcodec/msmpeg4enc: Use LUT to write motion vectors Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/msmpeg4data.h
- libavcodec/msmpeg4enc.c
Change #225822
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:38:36 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 3d9a581ec143fac352caec4d78aba12afd4fef37 Comments
avcodec/msmpeg4dec: Avoid lookups when decoding motion vector Up until now, the decoder uses VLCs to determine whether this is an escape element or an index in two separate tables giving the x and y components of the motion vector. Given that both these components fit into an int16_t and therefore into a VLCElem's symbol one can simply use a symbol table to avoid the latter lookups. This necessitated to combine the two tables for x and y components. While just at it, also switch to ff_vlc_init_tables_from_lengths(). This will allow to get rid of the code tables (about 4KiB) once the encoder has been ported, too. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/msmpeg4data.c
- libavcodec/msmpeg4data.h
- libavcodec/msmpeg4dec.c
- libavcodec/msmpeg4enc.c
Change #225824
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:39:01 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 967f8a924e3cd61e6318311f587249b27583144e Comments
avcodec/msmpeg4enc: Avoid using MVTable Switch to using the length+symbol table combination that is also used by the decoder and remove MVTable as well as the old tables altogether. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/msmpeg4data.c
- libavcodec/msmpeg4data.h
- libavcodec/msmpeg4enc.c
Change #225826
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:39:25 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 9964212545554d9ae1afaabd23a7f9a361997d01 Comments
avcodec/mpegvideo: Move MSMPEG4 fields to MSMPEG4 contexts Several fields are not used by any generic code and can therefore be moved to more specialized contexts. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/msmpeg4dec.c
- libavcodec/msmpeg4dec.h
- libavcodec/msmpeg4enc.c
- libavcodec/msmpeg4enc.h
- libavcodec/vaapi_vc1.c
- libavcodec/vc1.c
- libavcodec/vc1.h
- libavcodec/vc1_block.c
- libavcodec/wmv2dec.c
- libavcodec/wmv2enc.c
Change #225828
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:39:58 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision a5a2fc04eed277b3c3f3e71bfdd1f5c2d5d16da6 Comments
avcodec/mpegvideo: Move allocating encoder buffers to mpegvideoenc.c dct_error_sum and me.map are allocated per slice-context and therefore their allocation has not been moved to mpegvideoenc.c in 0154fb43e328b13da8943e66b38dc1b5ab9315af. This commit changes this by allocating them jointly and moving said allocations to mpegvideo_enc.c like the other encoder-only buffers. The buffers are suitably aligned to ensure that no false sharing occurs. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.c
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
Change #225829
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:40:27 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 7b5fb2e4ff28eb350946fdfa1ea7c18bb0899625 Comments
avcodec/mpegvideo: Move encoder-only base arrays to MPVMainEncContext Also allocate them jointly (thereby reducing the number of base arrays considerably) and already set them on all slice contexts; don't rely on ff_update_duplicate_context(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
Change #225830
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:41:00 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 9f43de06faa58d3863a12b64898dde930580b4cf Comments
avcodec/mpegvideo_enc: Don't allocate B-frame bufs without B frames (Checking in the same way for intra_only is not straightforward, because at least p_mv_table is written to even in intra_only mode.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
Change #225831
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:41:26 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision a1f18b195e44506dfc0d3c9d894c1be8ea202847 Comments
avcodec/mpegvideo_enc: Reindent after the previous commit Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
Change #225832
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:41:52 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision f2ba0676b6cd26737962b8aca9624c2b18fa365b Comments
avcodec/mpegvideo_enc: Move allocating remaining buffers to init_buffers Also allocate mb_type, mc_mb_var, mb_var and mb_mean jointly while just at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
Change #225833
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:43:25 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 1b537de8d4dc8d73f511d4ebe2520e2c70e2901f Comments
avcodec/mpegvideo: Move noise_reduction to MPVMainEncContext Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
Change #225834
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:43:58 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision f293f95632b5519cf4c8aa5cfe3b87c0e9d006bb Comments
avcodec/mpegvideo: Support custom slice context sizes This is in preparation for adding a special slice context for the encoders and moving all the encoder-specific fields to it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.c
- libavcodec/mpegvideo.h
Change #225835
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:44:30 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision fa630b481c371804b166c6cb9bcd17670ee1798c Comments
avcodec/mpegvideo: Move last-pic information to MPVMainEncContext last_pict_type, last_non_b_pict_type and last_lambda_for are only used by the encoder's main thread. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/msmpeg4enc.c
- libavcodec/ratecontrol.c
- libavcodec/snowenc.c
Change #225836
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:45:02 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 363fe861157ddbbe600e32f8b5fdb29707291638 Comments
avcodec/{h261,ituh263}enc: Don't set ptr_lastgob unnecessarily It will be overwritten later in encode_thread() anyway. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/h261enc.c
- libavcodec/ituh263enc.c
Change #225837
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:45:27 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision a2ba5b8242e467f7975e2ac48ac1ed2148917e8e Comments
avcodec/mpegvideoenc: Remove declaration of inexistent function ff_MPV_encode_init_x86() has been renamed to ff_dct_encode_init_x86() in 6b33e918996e8a4e40071cb0a273c23de22ce1fc in FFmpeg; libav renamed it to ff_mpv_encode_init_x86() in commit 6b33e918996e8a4e40071cb0a273c23de22ce1fc. This hasn't been noticed in c1df467d73ee8c6e792ec27c126c5f0e2bc1af9d when merging. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideoenc.h
Change #225838
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:45:57 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 8397351221d64fb9305a5af1860993efdc2822e6 Comments
avcodec/mpegvideo_enc: Call ff_mpv_common_init() later Namely after the main slice context has already been initialized, so that this initialized state is directly copied to the newly created slice contexts without relying on it being copied by ff_update_duplicate_context(). This is in preparation for further commits. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
Change #225839
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:46:24 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 0e333a5451bb9ca6dfe6af4c26089552d53ecf70 Comments
avcodec/mpeg4videoenc: Move initializations before ff_mpv_encode_init() This avoids relying on ff_update_duplicate_context() to copy these fields to the slice contexts. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/ituh263enc.c
- libavcodec/mpeg4videoenc.c
Change #225840
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:46:49 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 913322a267c1f3b72bad7b2e12cd6a840c30f9b1 Comments
avcodec/mpegvideo: Move me_pre, me_penalty_compensation to MPVMainEncCtx Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
Change #225841
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:47:22 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 6a42abe5611358783e790012c74f2986664a5481 Comments
avcodec/mpegvideo: Move motion_est to MotionEstContext Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/motion_est.c
- libavcodec/motion_est.h
- libavcodec/mpegvideo.h
- libavcodec/mpegvideoenc.h
- libavcodec/snowenc.c
- libavcodec/svq1enc.c
Change #225842
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 03:47:55 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision d74d1707a6112546a6ed2d1180571d708b7b9ffe Comments
avcodec/motion_est: Don't use MpegEncContext.avctx Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/motion_est.c
- libavcodec/motion_est_template.c
Change #225843
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:08:33 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision a064d34a32a860d237d31f014002c6134a286656 Comments
avcodec/mpegvideoenc: Add MPVEncContext Many of the fields of MpegEncContext (which is also used by decoders) are actually only used by encoders. Therefore this commit adds a new encoder-only structure and moves all of the encoder-only fields to it except for those which require more explicit synchronisation between the main slice context and the other slice contexts. This synchronisation is currently mainly provided by ff_update_thread_context() which simply copies most of the main slice context over the other slice contexts. Fields which are moved to the new MPVEncContext no longer participate in this (which is desired, because it is horrible and for the fields b) below wasteful) which means that some fields can only be moved when explicit synchronisation code is added in later commits. More explicitly, this commit moves the following fields: a) Fields not copied by ff_update_duplicate_context(): dct_error_sum and dct_count; the former does not need synchronisation, the latter is synchronised in merge_context_after_encode(). b) Fields which do not change after initialisation (these fields could also be put into MPVMainEncContext at the cost of an indirection to access them): lambda_table, adaptive_quant, {luma,chroma}_elim_threshold, new_pic, fdsp, mpvencdsp, pdsp, {p,b_forw,b_back,b_bidir_forw,b_bidir_back,b_direct,b_field}_mv_table, [pb]_field_select_table, mb_{type,var,mean}, mc_mb_var, {min,max}_qcoeff, {inter,intra}_quant_bias, ac_esc_length, the *_vlc_length fields, the q_{intra,inter,chroma_intra}_matrix{,16}, dct_offset, mb_info, mjpeg_ctx, rtp_mode, rtp_payload_size, encode_mb, all function pointers, mpv_flags, quantizer_noise_shaping, frame_reconstruction_bitfield, error_rate and intra_penalty. c) Fields which are already (re)set explicitly: The PutBitContexts pb, tex_pb, pb2; dquant, skipdct, encoding_error, the statistics fields {mv,i_tex,p_tex,misc,last}_bits and i_count; last_mv_dir, esc_pos (reset when writing the header). d) Fields which are only used by encoders not supporting slice threading for which synchronisation doesn't matter: esc3_level_length and the remaining mb_info fields. e) coded_score: This field is only really used when FF_MPV_FLAG_CBP_RD is set (which implies trellis) and even then it is only used for non-intra blocks. For these blocks dct_quantize_trellis_c() either sets coded_score[n] or returns a last_non_zero value of -1 in which case coded_score will be reset in encode_mb_internal(). Therefore no old values are ever used. The MotionEstContext has not been moved yet. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/aarch64/me_cmp_init_aarch64.c
- libavcodec/arm/me_cmp_init_arm.c
- libavcodec/dnxhdenc.c
- libavcodec/dnxhdenc.h
- libavcodec/flvenc.c
- libavcodec/h261enc.c
- libavcodec/h261enc.h
- libavcodec/h263enc.h
- libavcodec/ituh263enc.c
- libavcodec/me_cmp.c
- libavcodec/me_cmp.h
- libavcodec/mips/me_cmp_mips.h
- libavcodec/mips/me_cmp_msa.c
- libavcodec/mips/mpegvideo_mips.h
- libavcodec/mips/mpegvideoenc_init_mips.c
- libavcodec/mips/mpegvideoenc_mmi.c
- libavcodec/mips/mpegvideoencdsp_init_mips.c
- libavcodec/mips/pixblockdsp_init_mips.c
- libavcodec/mips/pixblockdsp_mips.h
- libavcodec/mjpegenc.c
- libavcodec/mjpegenc.h
- libavcodec/motion_est.c
- libavcodec/motion_est.h
- libavcodec/motion_est_template.c
- libavcodec/mpeg12enc.c
- libavcodec/mpeg12enc.h
- libavcodec/mpeg4videoenc.c
- libavcodec/mpeg4videoenc.h
- libavcodec/mpegvideo.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_dec.c
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/msmpeg4enc.c
- libavcodec/msmpeg4enc.h
- libavcodec/ppc/me_cmp.c
- libavcodec/ratecontrol.c
- libavcodec/riscv/me_cmp_init.c
- libavcodec/rv10enc.c
- libavcodec/rv20enc.c
- libavcodec/snow_dwt.c
- libavcodec/snow_dwt.h
- libavcodec/snowenc.c
- libavcodec/speedhqenc.c
- libavcodec/speedhqenc.h
- libavcodec/svq1enc.c
- libavcodec/wmv2enc.c
- libavcodec/x86/me_cmp.asm
- libavcodec/x86/me_cmp_init.c
- libavcodec/x86/mpegvideoenc.c
- libavcodec/x86/mpegvideoenc_template.c
- tests/checkasm/motion.c
Change #225844
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:09:10 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 6ebc810e6f8120e020556b283bc43c439fec628d Comments
avcodec/mpeg12enc, speedhqenc: Optimize writing escape codes Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg12enc.c
- libavcodec/speedhqenc.c
Change #225845
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:09:33 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision d66e9cb0d2179e4cfc9a26704d6ceb7e4f2cbe63 Comments
avcodec/mpegvideo_enc: Move lambda, lambda2 to MPVEncContext Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/h263enc.h
- libavcodec/motion_est.c
- libavcodec/mpeg4videoenc.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/snowenc.c
- libavcodec/svq1enc.c
Change #225846
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:10:06 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 8b15979a4b49f2981c27a85f202bf29b6a1c0de7 Comments
avcodec/mpegvideo_enc: Don't reset statistics twice This happens currently for the non-main slice contexts. But these variables get reset at the start of encode_thread() anyway for all slices, so this is unnecessary. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
Change #225847
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:10:31 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision ec6c8e52734c72c6a3e09fd32dc02b68d58ff8ae Comments
avcodec/mpegvideoenc: Constify vlc length pointees These pointers point to static tables which must not be modified by anyone after they have been initialized. So constify the pointees. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/me_cmp.c
- libavcodec/mpegvideoenc.h
Change #225848
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:11:00 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 35fecd3e6866448ab646cdd1d60fe1cca7327693 Comments
avcodec/motion_est: Move ff_h263_round_chroma() to h263.h Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/h263.h
- libavcodec/motion_est.c
- libavcodec/motion_est.h
- libavcodec/mpegvideo_dec.c
- libavcodec/mpegvideo_motion.c
Change #225849
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:11:32 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 6e45f7f5359f7871960cc147579d6cabf61f3085 Comments
avcodec/mpegvideo: Move MotionEstContext to MPVEncContext All that is necessary to do so is perform ff_me_init_pic() on every slice. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/h261enc.c
- libavcodec/ituh263enc.c
- libavcodec/motion_est.c
- libavcodec/motion_est_template.c
- libavcodec/mpeg12enc.c
- libavcodec/mpegvideo.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideoenc.h
- libavcodec/snowenc.c
- libavcodec/svq1enc.c
Change #225850
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:12:04 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 479dac17f889b4e037448e8e3c27e17073819ec4 Comments
avcodec/mpegvideo_enc: Move code to initialize variables immediately Also avoid casts and parentheses. (This is only possible now because ff_update_duplicate_context() no longer touches the PutBitContext.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
Change #225851
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:12:30 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 854a3ed54734719deddce7e2f18413c874b498e3 Comments
avcodec/motion_est: Reset scene_change score, MB variance stats Reset them in ff_me_init_pic(). It is the appropriate place for it and allows to remove resetting code from multiple places (e.g. mpegvideo_enc.c resetted it in two different places (one for the main slice context, one for all the others)). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/motion_est.c
- libavcodec/mpegvideo_enc.c
- libavcodec/snowenc.c
Change #225852
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:12:58 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision d5fba4aef9feb949f7ece3e35ccbf184a3be27e8 Comments
avcodec/mpegvideo_enc: Defer initialization of mb-pos dependent vars Only set them after mb_x and mb_y are known which happens only after the call to ff_h261_reorder_mb_index(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
Change #225853
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:13:24 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 46a2d03b7582d27a1bd498d42ad49268adfa74d0 Comments
avcodec/mpegvideo_enc: Use better variable name Also fixes shadowing. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
Change #225854
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:13:50 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision b29ae29ee75327902d6e34a4fbc916caaffb2bcf Comments
avcodec/h261dec: Set FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM This decoder sets the AVCodecContext fields even when a frame is skipped. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/h261dec.c
Change #225855
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:14:15 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 34b624d98cb8199befaba2ffc8a7b92c881cf03b Comments
avcodec/error_resilience: Avoid me_cmp.h inclusion Use spell out what me_cmp_func means. Avoids inclusions in the H.264 decoder as well as all mpegvideo decoders. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/error_resilience.h
Change #225856
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:14:49 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 63864545cdc8da42f4cb99824293cabf136454e9 Comments
avcodec/mpegvideo: Move unquantize functions into a file of their own This is in preparation for only keeping the actually used unquantize functions in MpegEncContext. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/Makefile
- libavcodec/arm/mpegvideo_arm.c
- libavcodec/mips/mpegvideo_init_mips.c
- libavcodec/mpegvideo.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_unquantize.c
- libavcodec/mpegvideo_unquantize.h
- libavcodec/neon/mpegvideo.c
- libavcodec/ppc/mpegvideo_altivec.c
- libavcodec/x86/mpegvideo.c
Change #225857
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:15:22 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision b2866b7216cfbc563da3cb695b81095726462d52 Comments
avcodec/ppc/mpegvideo_altivec: Use correct inter scantable This affected the WMV1/2 encoders (but not when running FATE because the encoding part uses the fastint dct, so this code isn't used then anyway). It did not affect anything else, because a) only WMV1/2 use different scantables, b) ff_msmpeg4_decode_block() (and therefore the WMV1 decoder) already unquantize inter macroblocks as they are parsed c) the WMV2 decoder does not use the unquantize functions for inter macroblocks at all. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/ppc/mpegvideo_altivec.c
Change #225858
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:15:46 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision b96ba444329816f810eb6f1b8d5afac7e49cf9ff Comments
avcodec/ppc/mpegvideo_altivec: Set unquantize functions unconditionally Don't do it depending upon dct_algo, as this is not supposed to influence the unquantize function selection. (This check originated in 05c4072b45f3cde1185de6eccfe7febf91d9f8fd where it was used for the dct_quantize function only.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/ppc/mpegvideo_altivec.c
Change #225859
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:16:11 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 46c5466dd8e987888077b83abcfbb60a6abc43e7 Comments
avcodec/ppc/mpegvideo_altivec: Don't process unnecessarily many coeffs Use the same number as the C version. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/ppc/mpegvideo_altivec.c
Change #225860
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:16:35 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 917652d7c8616edf615eb638e75c1778a8faa038 Comments
avcodec/ppc/mpegvideo_altivec: Don't process coeffs as scalars block_last_index and nCoeffs is an optimization designed to avoid processing unnecessarily many coefficients; yet it would be legal to always process all coefficients (all coefficients beyond nCoeffs are zero anyway and zeros are always unquantized to zeros). Therefore one does not need a scalar tail. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/ppc/mpegvideo_altivec.c
Change #225861
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Wed 26 Mar 2025 04:17:00 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision e5a33c898a3c82957d6e4b02b2bbaf2bb0c28165 Comments
avcodec/mpegvideo: Only keep the actually used unquantize funcs For all encoders and all decoders except MPEG-4 the unquantize functions to use don't change at all and therefore needn't be kept in the context. So discard them after setting them; for MPEG-4, the functions get assigned on a per-frame basis. Decoders not using any unquantize functions (H.261, MPEG-1/2) as well as decoders that only call ff_mpv_reconstruct_mb() through error resilience (RV30/40, the VC-1 family) don't have the remaining pointers set at all. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/arm/mpegvideo_arm.c
- libavcodec/arm/mpegvideo_arm.h
- libavcodec/arm/mpegvideo_armv5te.c
- libavcodec/h263dec.c
- libavcodec/mips/mpegvideo_init_mips.c
- libavcodec/mpeg4videodec.c
- libavcodec/mpeg4videodec.h
- libavcodec/mpegvideo.c
- libavcodec/mpegvideo.h
- libavcodec/mpegvideo_enc.c
- libavcodec/mpegvideo_unquantize.c
- libavcodec/mpegvideo_unquantize.h
- libavcodec/neon/mpegvideo.c
- libavcodec/ppc/mpegvideo_altivec.c
- libavcodec/x86/mpegvideo.c
Change #225862
Category ffmpeg Changed by Martin Storsjö <martin @martin.st>Changed at Wed 26 Mar 2025 21:33:16 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision d256118b7e622c07167bbe044daba05c2326a6e3 Comments
videotoolbox: Fix building with older SDKs The kVTVideoDecoderReferenceMissingErr constant was only added in the macOS 12 and iOS 15 SDKs. Use a hardcoded value instead of the named constant, to fix building with older SDKs after c6214b0d691566c7cb0f2ff5be08a24c3534e5bb. Signed-off-by: Martin Storsjö <martin@martin.st>
Changed files
- libavcodec/videotoolbox.c
Change #225863
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Thu 27 Mar 2025 03:16:18 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 4e806b326698e2bccec384876cd6a8403bbf4b7f Comments
avcodec/mpeg4videodec: Actually check av_buffer_replace() Forgotten in 4f2becc2dc4668f837b5ba96c11c3426bc120ac0. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpeg4videodec.c
Change #225864
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Thu 27 Mar 2025 03:16:18 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 114fccc4a5031f6f85b116ea691799a183ed9405 Comments
avcodec/mpegvideo_enc: Set b-frame chain length properly Fixes a regression caused by my desire to use loop-scope for iterators in 72bf3d3c12ae562fd408603483bc59058757b1a1. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mpegvideo_enc.c
Change #225865
Category ffmpeg Changed by Andreas Rheinhardt <andreas.rheinhardt @outlook.com>Changed at Thu 27 Mar 2025 13:41:06 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 2ac2485c1f901638870c956d816f4d20a184ca23 Comments
avcodec/mjpegenc: Don't allocate unnecessarily much memory We need to allocate space for 64 coefficients per block; 24dbc4c2e82481f89d6fcacee1949e5038c5c2fc wanted to perform the calculation 64*sizeof(MJpegHuffmanCode) at compile time, yet in the end did it in a way that made it allocate 64 times as much memory as needed. Reported-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Changed files
- libavcodec/mjpegenc.c
Change #225866
Category ffmpeg Changed by Lynne <dev @lynne.ee>Changed at Thu 27 Mar 2025 17:22:07 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 4dadf71dceb6d211834fdfa6c9f2686b37132b5a Comments
lavu/vulkan: skip adding NULL buffers as deps in ff_vk_exec_add_dep_buf Allows for cleaner code.
Changed files
- libavutil/vulkan.c
Change #225867
Category ffmpeg Changed by Lynne <dev @lynne.ee>Changed at Thu 27 Mar 2025 17:22:11 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 5fc4acae9c764cf8b13d085d2d335bddd12230b5 Comments
vulkan_decode: allow using NULL sequence_params when decoding The function had some checks to allow for this, but as it always tried to dereference a bufferref, it wasn't fully ready.
Changed files
- libavcodec/vulkan_decode.c
Change #225868
Category ffmpeg Changed by Lynne <dev @lynne.ee>Changed at Thu 27 Mar 2025 17:22:11 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 193610d9bac1fc00f99975f13c1370aec816f930 Comments
vulkan_decode: allow using NULL offsets/nb_slices in ff_vk_decode_add_slice() For codecs like VP9 which use a single slice.
Changed files
- libavcodec/vulkan_decode.c
Change #225869
Category ffmpeg Changed by Lynne <dev @lynne.ee>Changed at Thu 27 Mar 2025 17:22:11 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 5595068be562b2a975d4f60ad691307dbb1bf079 Comments
vulkan_loader: remap video_maintenance2 in ff_vk_extensions_to_mask This was broken.
Changed files
- libavutil/vulkan_loader.h
Change #225870
Category ffmpeg Changed by Lynne <dev @lynne.ee>Changed at Thu 27 Mar 2025 17:22:12 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 8804ae158ba51d2b9d34d104a93e58b45ba07815 Comments
vulkan_functions: add note to update ff_vk_extensions_to_mask Otherwise, the extension looks like its enabled, but isn't actually used by anything.
Changed files
- libavutil/vulkan_functions.h
Change #225871
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Thu 27 Mar 2025 21:50:14 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision ffd537bcc2da727495f860382a5c899e4fbe6dff Comments
avcodec/ffv1enc: Eliminate encode_mul() Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225872
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Thu 27 Mar 2025 22:02:36 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 430065a97b08f7065629b743b26622980cd6e212 Comments
avcodec/ffv1dec: Fix end handling Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1dec.c
Change #225873
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Thu 27 Mar 2025 22:02:42 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision d4a23e664018740fecbbf11643832a69709421f5 Comments
avcodec/ffv1enc: Fix end handling This also produces smaller files Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225874
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Thu 27 Mar 2025 22:02:46 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision f334eadd3644b10239cea4cdf7e9e835a6178116 Comments
avcodec/ffv1enc: Fix off by 1 in assert Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c
Change #225875
Category ffmpeg Changed by Michael Niedermayer <michael @niedermayer.cc>Changed at Thu 27 Mar 2025 22:02:51 Repository https://git.ffmpeg.org/ffmpeg.git Project ffmpeg Branch master Revision 226fcc7258ca0a6bc74c19acc8d2fe181393bfb1 Comments
avcodec/ffv1enc: Store run1start_mul_index instead of computing There is a special case I missed, its simpler to just store Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Changed files
- libavcodec/ffv1enc.c