[FFmpeg-devel] [PATCH v3 01/17] avcodec/internal: add FFCodec.color_ranges

Anton Khirnov anton at khirnov.net
Mon Sep 2 17:06:52 EEST 2024


Quoting Niklas Haas (2024-08-30 12:15:24)
> diff --git a/libavcodec/codec_internal.h b/libavcodec/codec_internal.h
> index 1cd1f684f9..6fdd261066 100644
> --- a/libavcodec/codec_internal.h
> +++ b/libavcodec/codec_internal.h
> @@ -132,7 +132,13 @@ typedef struct FFCodec {
>      /**
>       * Internal codec capabilities FF_CODEC_CAP_*.
>       */
> -    unsigned caps_internal:29;
> +    unsigned caps_internal:27;
> +
> +    /**
> +     * This field determines the video color ranges supported by a codec.

s/codec/encoder?

> +     * Should be set to a bitmask of AVCOL_RANGE_MPEG and AVCOL_RANGE_JPEG.
> +     */
> +    unsigned color_ranges:2;

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list