MythTV  master
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
MythHDRVideoMetadata Class Reference

A wrapper around static HDR metadata. More...

#include <mythhdrvideometadata.h>

Inheritance diagram for MythHDRVideoMetadata:
Inheritance graph
[legend]
Collaboration diagram for MythHDRVideoMetadata:
Collaboration graph
[legend]

Public Member Functions

 MythHDRVideoMetadata ()=default
 
 MythHDRVideoMetadata (const MythHDRVideoMetadata &Other)=default
 

Static Public Member Functions

static void Populate (class MythVideoFrame *Frame, struct AVFrame *AvFrame)
 Create, update or destroy HDR metadata for the given MythVideoFrame. More...
 

Protected Member Functions

void Update (const struct AVMasteringDisplayMetadata *Display, const struct AVContentLightMetadata *Light)
 

Additional Inherited Members

Detailed Description

A wrapper around static HDR metadata.

This class acts as an intermediate format between FFmpeg's HDR metadata structures and the single structure used by the linux kernel. Values are currently scaled/converted as appropriate for those expected by the linux DRM subsystem and may need adjusting for other platforms/APIs.

Note
The linux kernel structures are aligned with the structures defined in the HDMI standards (e.g. CTA-861-G).

Definition at line 9 of file mythhdrvideometadata.h.

Constructor & Destructor Documentation

◆ MythHDRVideoMetadata() [1/2]

MythHDRVideoMetadata::MythHDRVideoMetadata ( )
default

◆ MythHDRVideoMetadata() [2/2]

MythHDRVideoMetadata::MythHDRVideoMetadata ( const MythHDRVideoMetadata Other)
explicitdefault

Member Function Documentation

◆ Populate()

void MythHDRVideoMetadata::Populate ( class MythVideoFrame Frame,
struct AVFrame AvFrame 
)
static

Create, update or destroy HDR metadata for the given MythVideoFrame.

Definition at line 47 of file mythhdrvideometadata.cpp.

Referenced by AvFormatDecoder::ProcessVideoFrame().

◆ Update()

void MythHDRVideoMetadata::Update ( const struct AVMasteringDisplayMetadata *  Display,
const struct AVContentLightMetadata *  Light 
)
protected

Definition at line 27 of file mythhdrvideometadata.cpp.


The documentation for this class was generated from the following files: