On Sun, Oct 20, 2024 at 10:05:14PM +0200, Niklas Haas wrote:
> From: Niklas Haas <g...@haasn.dev>
> 
> 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 <g...@haasn.dev>
> ---
>  libswscale/utils.c | 64 +++++++++++++++++++++++++++++++++++++++
>  libswscale/utils.h | 75 ++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 139 insertions(+)
>  create mode 100644 libswscale/utils.h

LGTM

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If the United States is serious about tackling the national security threats 
related to an insecure 5G network, it needs to rethink the extent to which it
values corporate profits and government espionage over security.-Bruce Schneier

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to