FFmpeg  4.0
Data Fields
AVMasteringDisplayMetadata Struct Reference

Mastering display metadata capable of representing the color volume of the display used to master the content (SMPTE 2086:2014). More...

#include <libavutil/mastering_display_metadata.h>

Data Fields

AVRational display_primaries [3][2]
 CIE 1931 xy chromaticity coords of color primaries (r, g, b order). More...
 
AVRational white_point [2]
 CIE 1931 xy chromaticity coords of white point. More...
 
AVRational min_luminance
 Min luminance of mastering display (cd/m^2). More...
 
AVRational max_luminance
 Max luminance of mastering display (cd/m^2). More...
 
int has_primaries
 Flag indicating whether the display primaries (and white point) are set. More...
 
int has_luminance
 Flag indicating whether the luminance (min_ and max_) have been set. More...
 

Detailed Description

Mastering display metadata capable of representing the color volume of the display used to master the content (SMPTE 2086:2014).

To be used as payload of a AVFrameSideData or AVPacketSideData with the appropriate type.

Note
The struct should be allocated with av_mastering_display_metadata_alloc() and its size is not a part of the public ABI.

Definition at line 38 of file mastering_display_metadata.h.

Field Documentation

◆ display_primaries

AVRational AVMasteringDisplayMetadata::display_primaries[3][2]

◆ white_point

AVRational AVMasteringDisplayMetadata::white_point[2]

◆ min_luminance

AVRational AVMasteringDisplayMetadata::min_luminance

◆ max_luminance

AVRational AVMasteringDisplayMetadata::max_luminance

◆ has_primaries

int AVMasteringDisplayMetadata::has_primaries

Flag indicating whether the display primaries (and white point) are set.

Definition at line 62 of file mastering_display_metadata.h.

Referenced by decode_frame_common(), dump_mastering_display_metadata(), mkv_parse_video_color(), mkv_write_video_color(), mov_read_mdcv(), mov_read_smdm(), print_pkt_side_data(), set_side_data(), and show_frame().

◆ has_luminance

int AVMasteringDisplayMetadata::has_luminance

The documentation for this struct was generated from the following file: