Miam-Player  0.8.0
A nice music player
mastering_display_metadata.h File Reference
#include "frame.h"
#include "rational.h"

Go to the source code of this file.

Classes

struct  AVMasteringDisplayMetadata
 

Typedefs

typedef struct AVMasteringDisplayMetadata AVMasteringDisplayMetadata
 

Functions

AVMasteringDisplayMetadataav_mastering_display_metadata_alloc (void)
 
AVMasteringDisplayMetadataav_mastering_display_metadata_create_side_data (AVFrame *frame)
 

Typedef Documentation

◆ AVMasteringDisplayMetadata

Copyright (c) 2016 Neil Birkbeck neil..nosp@m.birk.nosp@m.beck@.nosp@m.gmai.nosp@m.l.com

This file is part of FFmpeg.

FFmpeg is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

FFmpeg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with FFmpeg; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 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.

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.

◆ 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.