[FFmpeg-devel] [PATCH v4 1/3] avcodec: add ambient viewing environment packet side data.

Marton Balint cus at passwd.hu
Sun Feb 4 17:21:01 EET 2024



On Sun, 4 Feb 2024, Cosmin Stejerean via ffmpeg-devel wrote:

> From: Damiano Galassi <damiog at gmail.com>
>
> ---
> doc/APIchanges        | 3 +++
> fftools/ffprobe.c     | 3 +++
> libavcodec/avpacket.c | 1 +
> libavcodec/decode.c   | 1 +
> libavcodec/packet.h   | 9 ++++++++-
> libavcodec/version.h  | 2 +-
> 6 files changed, 17 insertions(+), 2 deletions(-)
>

> int ff_decode_frame_props_from_pkt(const AVCodecContext *avctx,
> diff --git a/libavcodec/packet.h b/libavcodec/packet.h
> index 2c57d262c6..bb28e7d62a 100644
> --- a/libavcodec/packet.h
> +++ b/libavcodec/packet.h
> @@ -331,7 +331,14 @@ enum AVPacketSideDataType {
>      * If its value becomes huge, some code using it
>      * needs to be updated as it assumes it to be smaller than other limits.
>      */
> -    AV_PKT_DATA_NB
> +    AV_PKT_DATA_NB,
> +
> +    /**
> +     * Ambient viewing environment metadata, as defined by H.274.. This metadata
> +     * should be associated with a video stream and contains data in the form
> +     * of the AVAmbientViewingEnvironment struct.
> +    */
> +    AV_PKT_DATA_AMBIENT_VIEWING_ENVIRONMENT
> };

AV_PKT_DATA_NB has to be kept the last.

Regards,
Marton


More information about the ffmpeg-devel mailing list