mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-10 17:14:41 +00:00
Right now, FFCodec contains a dedicated pointer for alpha_mode; this is wasteful, as there is only a very limited range of options for this value, namely four. So store it as a two-bit bitfield like color_ranges. This reduces sizeof(FFCodec) by 16 here (the placement of alpha_mode entailed unnecessary padding) and saves 11328B of .data.rel.ro here (on a standard build with no external libraries). (If it were not for effective-type violations, one could share the code and the table with AV_CODEC_CONFIG_COLOR_RANGE.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
14 KiB
14 KiB