|
vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
|
HDR Metadata. More...
#include <drmhdr.h>
Public Member Functions | |
| cHdrMetadata (cVideoRender *render) | |
| int | Build (struct hdr_output_metadata *, int, int, AVFrameSideData *, AVFrameSideData *) |
| Build an HDR static metadata blob. | |
| int | GetColorPrimaries (void) |
| int | GetColorTrc (void) |
Private Attributes | |
| cVideoRender * | m_pRender |
| pointer to cVideoRender object | |
| int | m_colorPrimaries = -1 |
| saved color primaries | |
| int | m_colorTrc = -1 |
| saved transfer charateristics | |
| AVMasteringDisplayMetadata | m_mdMetadata = { } |
| saved mastering display metadata fron AVFrame sidedata | |
| AVContentLightMetadata | m_clMetadata = { } |
| saved content light metadata fron AVFrame sidedata | |
| struct colorspace | m_hdr10 |
| hdr colorspace | |
|
inline |
| int cHdrMetadata::Build | ( | struct hdr_output_metadata * | data, |
| int | colorPrimaries, | ||
| int | colorTrc, | ||
| AVFrameSideData * | sd1, | ||
| AVFrameSideData * | sd2 | ||
| ) |
Build an HDR static metadata blob.
| [out] | data | blob data |
| [in] | colorPrimaries | color primaries |
| [in] | colorTrc | transfer characteristics |
| [in] | sd1 | mastering display metadata from ffmpeg frame's sidedata |
| [in] | sd2 | content light metadata from ffmpeg frame's sidedata |
| 0 | on success |
| -1 | on error |
Definition at line 58 of file drmhdr.cpp.
References cVideoRender::CanHandleHdr(), colorspace_lookup(), EncodeXYY(), EOTF_HLG, EOTF_ST2084, EOTF_TRADITIONAL_GAMMA_SDR, vector::f, L_DRM, LOGDEBUG2, m_clMetadata, m_colorPrimaries, m_colorTrc, m_hdr10, m_mdMetadata, m_pRender, and METADATA_TYPE1.
Referenced by cVideoRender::SetVideoBuffer().
Definition at line 113 of file drmhdr.h.
References m_colorPrimaries.
Referenced by cVideoRender::SetColorSpace().
Definition at line 114 of file drmhdr.h.
References m_colorTrc.
|
private |
|
private |
saved color primaries
Definition at line 118 of file drmhdr.h.
Referenced by Build(), and GetColorPrimaries().
|
private |
saved transfer charateristics
Definition at line 119 of file drmhdr.h.
Referenced by Build(), and GetColorTrc().
|
private |
|
private |
|
private |