[FFmpeg-devel] [PATCH] WIP: avutil/pixdesc: reduce the size of symbols in pixdesc to optimize code size. (PR #20154)
Nicolas George
george at nsup.org
Thu Aug 7 13:24:15 EEST 2025
Renjianguang-mi (HE12025-08-07):
> PR #20154 opened by Renjianguang-mi
> URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20154
> Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20154.patch
>
> Functions and arrays in pixdesc will cause the code size to be larger (about 30KB or more).
> For some products that only care about audio,you can use the audio_only switch to
> reduce the size of pixdesc symbols.
> You can enable optimization by using the command line --enable-audio-only
> Signed-off-by: renjianguang <renjianguang at xiaomi.com>
I do not like that it bloats the public headers and creates a
binary-incompatible version of the library.
And IIRC you cannot use CONFIG_SOMETHING in public headers anyway.
Better leave the function as stubs in the libraries.
Regards,
--
Nicolas George
More information about the ffmpeg-devel
mailing list