FFmpeg
Data Structures | Functions
mastering_display_metadata.h File Reference
#include "frame.h"
#include "rational.h"

Go to the source code of this file.

Data Structures

struct  AVMasteringDisplayMetadata
 Mastering display metadata capable of representing the color volume of the display used to master the content (SMPTE 2086:2014). More...
 
struct  AVContentLightMetadata
 Content light level needed by to transmit HDR over HDMI (CTA-861.3). More...
 

Functions

AVMasteringDisplayMetadataav_mastering_display_metadata_alloc (void)
 Allocate an AVMasteringDisplayMetadata structure and set its fields to default values. More...
 
AVMasteringDisplayMetadataav_mastering_display_metadata_alloc_size (size_t *size)
 Allocate an AVMasteringDisplayMetadata structure and set its fields to default values. More...
 
AVMasteringDisplayMetadataav_mastering_display_metadata_create_side_data (AVFrame *frame)
 Allocate a complete AVMasteringDisplayMetadata and add it to the frame. More...
 
AVContentLightMetadataav_content_light_metadata_alloc (size_t *size)
 Allocate an AVContentLightMetadata structure and set its fields to default values. More...
 
AVContentLightMetadataav_content_light_metadata_create_side_data (AVFrame *frame)
 Allocate a complete AVContentLightMetadata and add it to the frame. More...
 

Function Documentation

◆ av_mastering_display_metadata_alloc()

AVMasteringDisplayMetadata* av_mastering_display_metadata_alloc ( void  )

Allocate an AVMasteringDisplayMetadata structure and set its fields to default values.

The resulting struct can be freed using av_freep().

Returns
An AVMasteringDisplayMetadata filled with default values or NULL on failure.

Definition at line 39 of file mastering_display_metadata.c.

◆ av_mastering_display_metadata_alloc_size()

AVMasteringDisplayMetadata* av_mastering_display_metadata_alloc_size ( size_t *  size)

Allocate an AVMasteringDisplayMetadata structure and set its fields to default values.

The resulting struct can be freed using av_freep().

Returns
An AVMasteringDisplayMetadata filled with default values or NULL on failure.

Definition at line 44 of file mastering_display_metadata.c.

Referenced by av_mastering_display_metadata_alloc(), ff_decode_mastering_display_new_ext(), mov_read_mdcv(), mov_read_smdm(), and mxf_read_generic_descriptor().

◆ av_mastering_display_metadata_create_side_data()

AVMasteringDisplayMetadata* av_mastering_display_metadata_create_side_data ( AVFrame frame)

Allocate a complete AVMasteringDisplayMetadata and add it to the frame.

Parameters
frameThe frame which side data is added to.
Returns
The AVMasteringDisplayMetadata structure to be filled by caller.

Definition at line 58 of file mastering_display_metadata.c.

Referenced by ff_decode_mastering_display_new().

◆ av_content_light_metadata_alloc()

AVContentLightMetadata* av_content_light_metadata_alloc ( size_t *  size)

Allocate an AVContentLightMetadata structure and set its fields to default values.

The resulting struct can be freed using av_freep().

Returns
An AVContentLightMetadata filled with default values or NULL on failure.

Definition at line 72 of file mastering_display_metadata.c.

Referenced by ff_decode_content_light_new_ext(), flv_update_video_color_info(), mov_read_clli(), mov_read_coll(), and mxf_read_generic_descriptor().

◆ av_content_light_metadata_create_side_data()

AVContentLightMetadata* av_content_light_metadata_create_side_data ( AVFrame frame)

Allocate a complete AVContentLightMetadata and add it to the frame.

Parameters
frameThe frame which side data is added to.
Returns
The AVContentLightMetadata structure to be filled by caller.

Definition at line 82 of file mastering_display_metadata.c.

Referenced by ff_decode_content_light_new().