FFmpeg
Data Structures | Functions
dovi_meta.c File Reference
#include <string.h>
#include "dovi_meta.h"
#include "mem.h"

Go to the source code of this file.

Data Structures

struct  AVDOVIMetadataInternal
 

Functions

AVDOVIDecoderConfigurationRecordav_dovi_alloc (size_t *size)
 Allocate a AVDOVIDecoderConfigurationRecord structure and initialize its fields to default values. More...
 
AVDOVIMetadataav_dovi_metadata_alloc (size_t *size)
 Allocate an AVDOVIMetadata structure and initialize its fields to default values. More...
 
AVDOVIDmDataav_dovi_find_level (const AVDOVIMetadata *data, uint8_t level)
 Find an extension block with a given level, or NULL. More...
 

Function Documentation

◆ av_dovi_alloc()

AVDOVIDecoderConfigurationRecord* av_dovi_alloc ( size_t *  size)

Allocate a AVDOVIDecoderConfigurationRecord structure and initialize its fields to default values.

Returns
the newly allocated struct or NULL on failure

Definition at line 26 of file dovi_meta.c.

Referenced by ff_dovi_configure(), ff_isom_parse_dvcc_dvvc(), and ff_parse_mpeg2_descriptor().

◆ av_dovi_metadata_alloc()

AVDOVIMetadata* av_dovi_metadata_alloc ( size_t *  size)

Allocate an AVDOVIMetadata structure and initialize its fields to default values.

Parameters
sizeIf this parameter is non-NULL, the size in bytes of the allocated struct will be written here on success
Returns
the newly allocated struct or NULL on failure

Definition at line 47 of file dovi_meta.c.

Referenced by ff_dovi_attach_side_data().

◆ av_dovi_find_level()

AVDOVIDmData* av_dovi_find_level ( const AVDOVIMetadata data,
uint8_t  level 
)

Find an extension block with a given level, or NULL.

In the case of multiple extension blocks, only the first is returned.

Definition at line 67 of file dovi_meta.c.