[FFmpeg-devel] [PATCH 1/5] avutil/dovi_meta: add dv_md_compression to cfg record

Cosmin Stejerean cosmin at cosmin.at
Tue Jul 16 14:30:44 EEST 2024



> On Jul 16, 2024, at 1:23 PM, Niklas Haas <ffmpeg at haasn.xyz> wrote:
> 
> From: Niklas Haas <git at haasn.dev>
> 
> This field is used to signal the compression method in use.
> ---
> doc/APIchanges        | 3 +++
> libavutil/dovi_meta.h | 9 +++++++++
> libavutil/version.h   | 2 +-
> 3 files changed, 13 insertions(+), 1 deletion(-)
> 
> diff --git a/doc/APIchanges b/doc/APIchanges
> index 5751216b24..80ab3012c3 100644
> --- a/doc/APIchanges
> +++ b/doc/APIchanges
> @@ -2,6 +2,9 @@ The last version increases of all libraries were on 2024-03-07
> 
> API changes, most recent first:
> 
> +2024-07-16 - xxxxxxxxxx - lavu 59.29.100 - dovi_meta.h
> +  Add AVDOVIDecoderConfigurationRecord.dv_md_compression.
> +
> 2024-07-xx - xxxxxxxxxx - lavf 61 - avformat.h
>   Deprecate avformat_transfer_internal_stream_timing_info()
>   and av_stream_get_codec_timebase() without replacement.
> diff --git a/libavutil/dovi_meta.h b/libavutil/dovi_meta.h
> index e168075a24..c942d0e133 100644
> --- a/libavutil/dovi_meta.h
> +++ b/libavutil/dovi_meta.h
> @@ -46,6 +46,7 @@
>  * uint8_t  el_present_flag
>  * uint8_t  bl_present_flag
>  * uint8_t  dv_bl_signal_compatibility_id
> + * uint8_t  dv_md_compression, the compression method in use
>  * @endcode
>  *
>  * @note The struct must be allocated with av_dovi_alloc() and
> @@ -60,8 +61,16 @@ typedef struct AVDOVIDecoderConfigurationRecord {
>     uint8_t el_present_flag;
>     uint8_t bl_present_flag;
>     uint8_t dv_bl_signal_compatibility_id;
> +    uint8_t dv_md_compression;
> } AVDOVIDecoderConfigurationRecord;
> 
> +enum AVDOVICompression {
> +    AV_DOVI_COMPRESSION_NONE     = 0,
> +    AV_DOVI_COMPRESSION_LIMITED  = 1,
> +    AV_DOVI_COMPRESSION_RESERVED = 2,
> +    AV_DOVI_COMPRESSION_EXTENDED = 3,
> +};
> +
> 

Looks good to me.

- Cosmin




More information about the ffmpeg-devel mailing list