aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/dshow_enummediatypes.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-10-09 23:20:59 +0200
committerNiklas Haas <git@haasn.dev>2024-10-23 23:04:06 +0200
commite2637a083ae2876d55adafad6bddf698fe09da3f (patch)
treec22e89f6668c75467c25d314f78531dd40833483 /libavdevice/dshow_enummediatypes.c
parent87baf9ab2c2465034a90a59308fab34e2801f2b3 (diff)
downloadffmpeg-e2637a083ae2876d55adafad6bddf698fe09da3f.tar.gz
swscale/utils: add SwsFormat abstraction and helpers
Groups together all relevant color metadata from an AVFrame. While we could use AVFrame directly, keeping it a separate struct has three advantages: 1. Functions accepting an SwsFormat will definitely not care about the data pointers. 2. It clearly separates sanitized and raw metadata, since the function to construct an SwsFormat from an AVFrame will also sanitize. 3. It's slightly more lightweight to pass around. Move these into a new header file "utils.h" to avoid crowding swscale_internal.h even more, and also to solve a circular dependency issue down the line. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'libavdevice/dshow_enummediatypes.c')
0 files changed, 0 insertions, 0 deletions