FFmpeg
Loading...
Searching...
No Matches
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.
 
AVDOVIMetadataav_dovi_metadata_alloc (size_t *size)
 Allocate an AVDOVIMetadata structure and initialize its fields to default values.
 
AVDOVIDmDataav_dovi_find_level (const AVDOVIMetadata *data, uint8_t level)
 Find an extension block with a given level, or NULL.
 

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 dovi_configure_ext(), ff_isom_parse_dvcc_dvvc(), ff_parse_mpeg2_descriptor(), and main().

◆ 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 45 of file dovi_meta.c.

Referenced by ff_dovi_get_metadata(), and main().

◆ 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 66 of file dovi_meta.c.

Referenced by main().