[vlc-commits] [Git][videolan/vlc][master] 7 commits: packetizer: av1: fix show_existing_frame header parsing

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Tue Nov 24 10:46:38 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
e6e098aa by Felix Paul Kühne at 2026-11-24T11:36:16+01:00
packetizer: av1: fix show_existing_frame header parsing

With show_existing_frame set, the uncompressed header has no frame_type
or show_frame, so they were read from the trailing bits, reporting a
hidden intra-only frame instead of a shown inter one.

- - - - -
e878bd4c by Marvin Scholz at 2026-11-24T11:36:16+01:00
codec: videotoolbox: add AV1 support

Add initial AV1 hardware decoding support with VideoToolbox.

Current limitations:
- Profile and level limitations are hardcoded, even though
  there are devices that have higher capabilities and capabilities
  vary depending on content (HDR or not) too, possibly.
- Level idx 31 (unrestricted level) is not handled yet.
- Only works when av1C extradata is present

Co-authored-by: Felix Paul Kühne <fkuehne at videolan.org>

- - - - -
ca4fac6b by Felix Paul Kühne at 2026-11-24T11:36:16+01:00
demux: mp4: read mdcv/clli for all video sample entries

- - - - -
fe750ee1 by Felix Paul Kühne at 2026-11-24T11:36:16+01:00
packetizer: av1: add HDR metadata OBU parsing

- - - - -
89081a2a by Felix Paul Kühne at 2026-11-24T11:36:16+01:00
codec: videotoolbox: parse AV1 HDR metadata OBUs

- - - - -
456b767b by Felix Paul Kühne at 2026-11-24T11:36:16+01:00
codec: videotoolbox: extract AV1 closed captions

- - - - -
4dcb5af1 by Marvin Scholz at 2026-11-24T11:36:16+01:00
codec: dav1d: lower module priority

Keep it above aom and avcodec, but below hardware decoders such as
VideoToolbox.

- - - - -


7 changed files:

- modules/codec/Makefile.am
- modules/codec/dav1d.c
- modules/codec/meson.build
- modules/codec/videotoolbox/decoder.c
- modules/demux/mp4/essetup.c
- modules/packetizer/av1_obu.c
- modules/packetizer/av1_obu.h


Changes:

=====================================
modules/codec/Makefile.am
=====================================
@@ -351,7 +351,9 @@ libvideotoolbox_plugin_la_SOURCES = codec/videotoolbox/decoder.c \
                                     codec/videotoolbox/vp9_repack.c \
                                     codec/videotoolbox/vp9_repack.h \
                                     packetizer/vp9_frame.c \
-                                    packetizer/vp9_frame.h
+                                    packetizer/vp9_frame.h \
+                                    packetizer/av1_obu.c \
+                                    packetizer/av1_obu.h
 libvideotoolbox_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) # Trigger MODULE_NAME declaration
 libvideotoolbox_plugin_la_LIBADD = libchroma_copy.la libvlc_hxxxhelper.la libvlc_vtutils.la
 libvideotoolbox_plugin_la_LDFLAGS = $(AM_LDFLAGS) -Wl,-framework,CoreFoundation -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo -Wl,-framework,Metal


=====================================
modules/codec/dav1d.c
=====================================
@@ -60,7 +60,7 @@ static void CloseDecoder(vlc_object_t *);
 vlc_module_begin ()
     set_shortname("dav1d")
     set_description(N_("Dav1d video decoder"))
-    set_capability("video decoder", 10000)
+    set_capability("video decoder", 200)
     set_callbacks(OpenDecoder, CloseDecoder)
     set_subcategory(SUBCAT_INPUT_VCODEC)
 


=====================================
modules/codec/meson.build
=====================================
@@ -598,7 +598,9 @@ if host_system == 'darwin'
             'videotoolbox/vp9_repack.c',
             'videotoolbox/vp9_repack.h',
             '../packetizer/vp9_frame.c',
-            '../packetizer/vp9_frame.h'
+            '../packetizer/vp9_frame.h',
+            '../packetizer/av1_obu.c',
+            '../packetizer/av1_obu.h'
         ),
         'dependencies' : [
             frameworks['VideoToolbox'],


=====================================
modules/codec/videotoolbox/decoder.c
=====================================
@@ -33,11 +33,13 @@
 #import <vlc_bits.h>
 #import <vlc_boxes.h>
 #import "../vt_utils.h"
+#import "../cc.h"
 #import "../../packetizer/h264_nal.h"
 #import "../../packetizer/h264_slice.h"
 #import "../../packetizer/hxxx_nal.h"
 #import "../../packetizer/hxxx_sei.h"
 #import "../../packetizer/vp9_frame.h"
+#import "../../packetizer/av1_obu.h"
 #import "vp9_repack.h"
 #import "pacer.h"
 #import "dpb.h"
@@ -63,6 +65,12 @@
 enum { kCMVideoCodecType_VP9 = 'vp09' };
 #endif
 
+#if (!TARGET_OS_OSX    || __MAC_OS_X_VERSION_MAX_ALLOWED   < 130000) && \
+    (!TARGET_OS_IPHONE || __IPHONE_OS_VERSION_MAX_ALLOWED  < 160000) && \
+    (!TARGET_OS_TV     || __TV_OS_VERSION_MAX_ALLOWED      < 160000)
+enum { kCMVideoCodecType_AV1 = 'av01' };
+#endif
+
 #pragma mark - local prototypes
 
 enum vtsession_status
@@ -82,6 +90,7 @@ static int HandleVTStatus(decoder_t *, OSStatus, enum vtsession_status *);
 static int DecodeBlock(decoder_t *, block_t *);
 static void RequestFlush(decoder_t *);
 static void Drain(decoder_t *p_dec, bool flush);
+static bool UpdateHDRMetadata(decoder_t *, const frame_info_t *);
 static void DecoderCallback(void *, void *, OSStatus, VTDecodeInfoFlags,
                             CVPixelBufferRef, CMTime, CMTime);
 static Boolean deviceSupportsHardwareDecode(CMVideoCodecType codec);
@@ -1015,6 +1024,261 @@ static bool ConfigureVoutVP9(decoder_t *p_dec)
     return true;
 }
 
+/** AV1 Specific */
+
+struct vt_av1_context
+{
+    av1_OBU_sequence_header_t *seq;
+    cc_data_t cc;
+};
+
+static void CleanAV1(void *codec_ctx)
+{
+    struct vt_av1_context *av1ctx = codec_ctx;
+    if (av1ctx->seq)
+        AV1_release_sequence_header(av1ctx->seq);
+    free(av1ctx);
+}
+
+static void ParseAV1HDRMetadata(decoder_t *dec, const uint8_t *p_obu,
+                                size_t i_obu, frame_info_t *p_info)
+{
+    av1_OBU_hdr_metadata_t meta;
+    if (!AV1_OBU_parse_hdr_metadata(p_obu, i_obu, &meta))
+        return;
+
+    const video_format_t *fmt = &dec->fmt_in->video;
+    if (meta.i_type == AV1_METADATA_TYPE_HDR_MDCV &&
+        !fmt->mastering.max_luminance)
+    {
+        for (size_t i = 0; i < ARRAY_SIZE(p_info->mastering.primaries); i++)
+            p_info->mastering.primaries[i] = meta.mastering.primaries[i];
+        for (size_t i = 0; i < ARRAY_SIZE(p_info->mastering.white_point); i++)
+            p_info->mastering.white_point[i] = meta.mastering.white_point[i];
+        p_info->mastering.max_luminance = meta.mastering.max_luminance;
+        p_info->mastering.min_luminance = meta.mastering.min_luminance;
+    }
+    else if (meta.i_type == AV1_METADATA_TYPE_HDR_CLL &&
+             !fmt->lighting.MaxCLL && !fmt->lighting.MaxFALL)
+    {
+        p_info->lighting.MaxCLL = meta.lighting.MaxCLL;
+        p_info->lighting.MaxFALL = meta.lighting.MaxFALL;
+    }
+}
+
+static bool ExtractAV1Captions(struct vt_av1_context *av1ctx,
+                               const uint8_t *p_obu, size_t i_obu)
+{
+    uint8_t i_country_code;
+    const uint8_t *p_payload;
+    size_t i_payload;
+    if (!AV1_OBU_get_itut_t35(p_obu, i_obu, &i_country_code,
+                              &p_payload, &i_payload) ||
+        i_country_code != 0xb5 || i_payload <= 9 ||
+        memcmp(p_payload, "\x00\x31GA94\x03", 7))
+        return false;
+
+    cc_Extract(&av1ctx->cc, CC_PAYLOAD_GA94, true,
+               &p_payload[7], i_payload - 7);
+    return true;
+}
+
+static void QueueAV1Captions(decoder_t *dec, struct vt_av1_context *av1ctx,
+                             vlc_tick_t pts)
+{
+    cc_data_t *cc = &av1ctx->cc;
+    if (!cc->b_reorder && !cc->i_data)
+        return;
+
+    block_t *p_cc = block_Alloc(cc->i_data);
+    if (p_cc)
+    {
+        memcpy(p_cc->p_buffer, cc->p_data, cc->i_data);
+        p_cc->i_pts = p_cc->i_dts = pts;
+        decoder_cc_desc_t desc = {
+            .i_608_channels = cc->i_608channels,
+            .i_708_channels = cc->i_708channels,
+            .i_reorder_depth = 4,
+        };
+        decoder_QueueCc(dec, p_cc, &desc);
+    }
+    cc_Flush(cc);
+}
+
+static bool InitAV1(decoder_t *dec)
+{
+    decoder_sys_t *sys = dec->p_sys;
+
+    struct vt_av1_context *av1ctx = calloc(1, sizeof(*av1ctx));
+    if (!av1ctx)
+        return false;
+    cc_Init(&av1ctx->cc);
+
+    if (dec->fmt_in->i_extra > 4)
+    {
+        AV1_OBU_iterator_ctx_t ctx;
+        AV1_OBU_iterator_init(&ctx, (const uint8_t *)dec->fmt_in->p_extra + 4,
+                              dec->fmt_in->i_extra - 4);
+
+        frame_info_t info = { 0 };
+        const uint8_t *p_obu;
+        size_t i_obu;
+        while (AV1_OBU_iterate_next(&ctx, &p_obu, &i_obu))
+        {
+            switch (AV1_OBUGetType(p_obu))
+            {
+                case AV1_OBU_SEQUENCE_HEADER:
+                    if (!av1ctx->seq)
+                        av1ctx->seq = AV1_OBU_parse_sequence_header(p_obu, i_obu);
+                    break;
+                case AV1_OBU_METADATA:
+                    ParseAV1HDRMetadata(dec, p_obu, i_obu, &info);
+                    break;
+                default:
+                    break;
+            }
+        }
+        UpdateHDRMetadata(dec, &info);
+    }
+
+    sys->p_codec_context = av1ctx;
+    return true;
+}
+
+static bool CodecSupportedAV1(decoder_t *dec)
+{
+    decoder_sys_t *sys = dec->p_sys;
+    struct vt_av1_context *av1ctx = sys->p_codec_context;
+
+    if (dec->fmt_in->i_extra <= 4 || !av1ctx->seq)
+        return false;
+
+    int profile, level, tier;
+    AV1_get_profile_level(av1ctx->seq, &profile, &level, &tier);
+
+    // Currently we have no API to query these values,
+    // it should be switched to such API once it exists.
+    // FB13801807
+    if (profile != 0 || level > 16)
+        return false;
+
+    // TODO: Support level idx 31 (unrestricted)
+    return true;
+}
+
+static CFDictionaryRef CopyDecoderExtradataAV1(decoder_t *dec)
+{
+    return ExtradataInfoCreate(CFSTR("av1C"),
+                               dec->fmt_in->p_extra,
+                               dec->fmt_in->i_extra);
+}
+
+static bool FillReorderInfoAV1(decoder_t *dec, const block_t *block,
+                               frame_info_t *info)
+{
+    decoder_sys_t *sys = dec->p_sys;
+    struct vt_av1_context *av1ctx = sys->p_codec_context;
+    cc_Flush(&av1ctx->cc);
+
+    AV1_OBU_iterator_ctx_t ctx;
+    AV1_OBU_iterator_init(&ctx, block->p_buffer, block->i_buffer);
+
+    const uint8_t *p_obu;
+    size_t i_obu;
+    bool b_captions = false;
+    bool b_first_frame = true;
+
+    info->i_num_ts = 2;
+    info->b_field = false;
+    info->b_progressive = true;
+
+    while (AV1_OBU_iterate_next(&ctx, &p_obu, &i_obu)) {
+        switch (AV1_OBUGetType(p_obu)) {
+            case AV1_OBU_SEQUENCE_HEADER:
+            {
+                av1_OBU_sequence_header_t *seq =
+                    AV1_OBU_parse_sequence_header(p_obu, i_obu);
+                if (!seq)
+                    return false;
+
+                if (av1ctx->seq)
+                    AV1_release_sequence_header(av1ctx->seq);
+
+                av1ctx->seq = seq;
+                break;
+            }
+
+            case AV1_OBU_FRAME_HEADER:
+            case AV1_OBU_REDUNDANT_FRAME_HEADER:
+            case AV1_OBU_FRAME:
+            {
+                if (!av1ctx->seq)
+                    return false;
+
+                av1_OBU_frame_header_t *frame_header =
+                    AV1_OBU_parse_frame_header(p_obu, i_obu, av1ctx->seq);
+                if (!frame_header)
+                    return false;
+
+                if (b_first_frame)
+                {
+                    info->b_keyframe =
+                        AV1_get_frame_type(frame_header) == AV1_FRAME_TYPE_KEY &&
+                        AV1_get_frame_visibility(frame_header);
+                    b_first_frame = false;
+                }
+                info->b_output_needed = AV1_get_frame_visibility(frame_header);
+
+                AV1_release_frame_header(frame_header);
+                break;
+            }
+
+            case AV1_OBU_METADATA:
+                ParseAV1HDRMetadata(dec, p_obu, i_obu, info);
+                b_captions |= ExtractAV1Captions(av1ctx, p_obu, i_obu);
+                break;
+
+            default:
+                break;
+        }
+    }
+
+    if (b_captions)
+        QueueAV1Captions(dec, av1ctx, block->i_pts);
+    return true;
+}
+
+static bool ConfigureVoutAV1(decoder_t *dec)
+{
+    decoder_sys_t *sys = dec->p_sys;
+    struct vt_av1_context *av1ctx = sys->p_codec_context;
+    video_format_t *fmt = &dec->fmt_out.video;
+
+    if (!av1ctx->seq)
+        return true;
+
+    if (dec->fmt_in->video.primaries == COLOR_PRIMARIES_UNDEF)
+        AV1_get_colorimetry(av1ctx->seq, &fmt->primaries, &fmt->transfer,
+                            &fmt->space, &fmt->color_range);
+
+    if (sys->i_cvpx_format == 0 && !sys->b_cvpx_format_forced)
+    {
+        switch (AV1_get_chroma(av1ctx->seq))
+        {
+            case VLC_CODEC_I420:
+                sys->i_cvpx_format = GetBestChroma(1, 8, 8);
+                break;
+            case VLC_CODEC_I420_10L:
+                sys->i_cvpx_format = GetBestChroma(1, 10, 10);
+                break;
+            default:
+                break;
+        }
+    }
+
+    return true;
+}
+
 /* !Codec Specific */
 
 static void DrainDPBLocked(decoder_t *p_dec, bool flush)
@@ -1162,6 +1426,15 @@ static CMVideoCodecType CodecPrecheck(decoder_t *p_dec)
 
         case VLC_CODEC_VP9:
             return kCMVideoCodecType_VP9;
+
+        case VLC_CODEC_AV1:
+            if (!deviceSupportsHardwareDecode(kCMVideoCodecType_AV1))
+            {
+                msg_Warn(p_dec, "device doesn't support AV1");
+                return 0;
+            }
+            return kCMVideoCodecType_AV1;
+
 #if !TARGET_OS_IPHONE
         case VLC_CODEC_H263:
             return kCMVideoCodecType_H263;
@@ -1666,6 +1939,18 @@ static int OpenDecoder(vlc_object_t *p_this)
             p_sys->pf_copy_extradata = CopyDecoderExtradataMPEG4;
             break;
 
+        case kCMVideoCodecType_AV1:
+            p_sys->pf_codec_init = InitAV1;
+            p_sys->pf_codec_clean = CleanAV1;
+            p_sys->pf_codec_supported = CodecSupportedAV1;
+            p_sys->pf_configure_vout = ConfigureVoutAV1;
+            p_sys->pf_copy_extradata = CopyDecoderExtradataAV1;
+            p_sys->pf_fill_reorder_info = FillReorderInfoAV1;
+            p_sys->dpb.b_strict_reorder = true;
+            p_sys->dpb.b_poc_based_reorder = false;
+            p_sys->start_sync_state = STATE_BITSTREAM_WAITING_RAP;
+            break;
+
         default:
             p_sys->pf_copy_extradata = NULL;
             break;


=====================================
modules/demux/mp4/essetup.c
=====================================
@@ -514,6 +514,28 @@ int SetupVideoES( demux_t *p_demux, const mp4_track_t *p_track, const MP4_Box_t
         }
     }
 
+    const MP4_Box_t *p_SmDm = MP4_BoxGet( p_sample, "SmDm" );
+    if( !p_SmDm )
+        p_SmDm = MP4_BoxGet( p_sample, "mdcv" );
+    if( p_SmDm && BOXDATA(p_SmDm) )
+    {
+        memcpy( p_fmt->video.mastering.primaries,
+                BOXDATA(p_SmDm)->primaries, sizeof(p_fmt->video.mastering.primaries) );
+        memcpy( p_fmt->video.mastering.white_point,
+                BOXDATA(p_SmDm)->white_point, sizeof(p_fmt->video.mastering.white_point) );
+        p_fmt->video.mastering.max_luminance = BOXDATA(p_SmDm)->i_luminanceMax;
+        p_fmt->video.mastering.min_luminance = BOXDATA(p_SmDm)->i_luminanceMin;
+    }
+
+    const MP4_Box_t *p_CoLL = MP4_BoxGet( p_sample, "CoLL" );
+    if( !p_CoLL )
+        p_CoLL = MP4_BoxGet( p_sample, "clli" );
+    if( p_CoLL && BOXDATA(p_CoLL) )
+    {
+        p_fmt->video.lighting.MaxCLL = BOXDATA(p_CoLL)->i_maxCLL;
+        p_fmt->video.lighting.MaxFALL = BOXDATA(p_CoLL)->i_maxFALL;
+    }
+
     const MP4_Box_t *p_dvcC = MP4_BoxGet( p_sample, "dvcC" );
     if( !p_dvcC )
         p_dvcC = MP4_BoxGet( p_sample, "dvvC" );
@@ -762,28 +784,6 @@ int SetupVideoES( demux_t *p_demux, const mp4_track_t *p_track, const MP4_Box_t
                 CopyExtradata( p_data->p_codec_init_data,
                                p_data->i_codec_init_datasize,
                                p_fmt );
-
-                const MP4_Box_t *p_SmDm = MP4_BoxGet( p_sample, "SmDm" );
-                if( !p_SmDm )
-                    p_SmDm = MP4_BoxGet( p_sample, "mdcv" );
-                if( p_SmDm && BOXDATA(p_SmDm) )
-                {
-                    memcpy( p_fmt->video.mastering.primaries,
-                            BOXDATA(p_SmDm)->primaries, sizeof(p_fmt->video.mastering.primaries) );
-                    memcpy( p_fmt->video.mastering.white_point,
-                            BOXDATA(p_SmDm)->white_point, sizeof(p_fmt->video.mastering.white_point) );
-                    p_fmt->video.mastering.max_luminance = BOXDATA(p_SmDm)->i_luminanceMax;
-                    p_fmt->video.mastering.min_luminance = BOXDATA(p_SmDm)->i_luminanceMin;
-                }
-
-                const MP4_Box_t *p_CoLL = MP4_BoxGet( p_sample, "CoLL" );
-                if( !p_CoLL )
-                    p_CoLL = MP4_BoxGet( p_sample, "clli" );
-                if( p_CoLL && BOXDATA(p_CoLL) )
-                {
-                    p_fmt->video.lighting.MaxCLL = BOXDATA(p_CoLL)->i_maxCLL;
-                    p_fmt->video.lighting.MaxFALL = BOXDATA(p_CoLL)->i_maxFALL;
-                }
             }
         }
         break;


=====================================
modules/packetizer/av1_obu.c
=====================================
@@ -468,6 +468,9 @@ static bool av1_parse_uncompressed_header(bs_t *p_bs, struct av1_uncompressed_he
             {
                 /* load_grain */
             }
+            p_uh->frame_type = AV1_FRAME_TYPE_INTER;
+            p_uh->show_frame = 1;
+            return true;
         }
         p_uh->frame_type = bs_read(p_bs, 2);
         p_uh->show_frame = bs_read1(p_bs);
@@ -619,6 +622,74 @@ vlc_fourcc_t AV1_get_chroma(const av1_OBU_sequence_header_t *p_seq)
     }
 }
 
+bool AV1_OBU_parse_hdr_metadata(const uint8_t *p_data, size_t i_data,
+                                av1_OBU_hdr_metadata_t *p_meta)
+{
+    if(!AV1_OBUSkipHeader(&p_data, &i_data))
+        return false;
+
+    uint8_t i_len;
+    const uint64_t i_type = leb128(p_data, i_data, &i_len);
+    if(i_len == 0 || (i_type != AV1_METADATA_TYPE_HDR_MDCV &&
+                      i_type != AV1_METADATA_TYPE_HDR_CLL))
+        return false;
+    p_meta->i_type = i_type;
+
+    bs_t bs;
+    bs_init(&bs, p_data + i_len, i_data - i_len);
+    if(p_meta->i_type == AV1_METADATA_TYPE_HDR_CLL)
+    {
+        p_meta->lighting.MaxCLL = bs_read(&bs, 16);
+        p_meta->lighting.MaxFALL = bs_read(&bs, 16);
+    }
+    else
+    {
+        const uint8_t RGB2GBR[3] = {2, 0, 1};
+        for(int i = 0; i < 3; i++)
+        {
+            p_meta->mastering.primaries[RGB2GBR[i] * 2] =
+                    bs_read(&bs, 16) * 50000 >> 16;
+            p_meta->mastering.primaries[RGB2GBR[i] * 2 + 1] =
+                    bs_read(&bs, 16) * 50000 >> 16;
+        }
+        for(int i = 0; i < 2; i++)
+            p_meta->mastering.white_point[i] = bs_read(&bs, 16) * 50000 >> 16;
+        p_meta->mastering.max_luminance =
+                (uint64_t) bs_read(&bs, 32) * 10000 >> 8;
+        p_meta->mastering.min_luminance =
+                (uint64_t) bs_read(&bs, 32) * 10000 >> 14;
+    }
+    return !bs_error(&bs);
+}
+
+bool AV1_OBU_get_itut_t35(const uint8_t *p_data, size_t i_data,
+                          uint8_t *pi_country_code,
+                          const uint8_t **pp_payload, size_t *pi_payload)
+{
+    if(!AV1_OBUSkipHeader(&p_data, &i_data))
+        return false;
+
+    uint8_t i_len;
+    if(leb128(p_data, i_data, &i_len) != AV1_METADATA_TYPE_ITUT_T35)
+        return false;
+    p_data += i_len;
+    i_data -= i_len;
+
+    while(i_data > 0 && p_data[i_data - 1] == 0)
+        i_data--;
+    if(i_data < 2)
+        return false;
+    i_data--;
+
+    const size_t i_header = p_data[0] == 0xFF ? 2 : 1;
+    if(i_data < i_header)
+        return false;
+    *pi_country_code = p_data[0];
+    *pp_payload = &p_data[i_header];
+    *pi_payload = i_data - i_header;
+    return true;
+}
+
 size_t AV1_create_DecoderConfigurationRecord(uint8_t **pp_buffer,
                                              const av1_OBU_sequence_header_t *p_seq,
                                              size_t i_obu, const uint8_t *p_obus[],


=====================================
modules/packetizer/av1_obu.h
=====================================
@@ -155,6 +155,28 @@ static inline enum av1_obu_metadata_type_e
     return (enum av1_obu_metadata_type_e) i_type;
 }
 
+typedef struct
+{
+    enum av1_obu_metadata_type_e i_type;
+    union
+    {
+        struct
+        {
+            uint16_t primaries[3*2]; /* G,B,R / x,y */
+            uint16_t white_point[2];
+            uint32_t max_luminance;
+            uint32_t min_luminance;
+        } mastering;
+        struct
+        {
+            uint16_t MaxCLL;
+            uint16_t MaxFALL;
+        } lighting;
+    };
+} av1_OBU_hdr_metadata_t;
+bool AV1_OBU_parse_hdr_metadata(const uint8_t *, size_t, av1_OBU_hdr_metadata_t *);
+bool AV1_OBU_get_itut_t35(const uint8_t *, size_t, uint8_t *, const uint8_t **, size_t *);
+
 
 
 /* SEQUENCE_HEADER properties */



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7fe7c51687d934aabb5dd89cb157fd150dc7f232...4dcb5af1b8d54e0f7eb705263ee9c90fb92b2ac5

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/7fe7c51687d934aabb5dd89cb157fd150dc7f232...4dcb5af1b8d54e0f7eb705263ee9c90fb92b2ac5
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list