vdr-plugin-softhddevice-drm-gles 1.6.2
drmhdr.cpp File Reference

HDR (High Dynamic Range) Interface. More...

#include <libavutil/frame.h>
#include <libavutil/mastering_display_metadata.h>
#include <drm_mode.h>
#include "drmhdr.h"
#include "logger.h"
#include "videorender.h"

Go to the source code of this file.

Enumerations

enum  hdrMetadataEotf { EOTF_TRADITIONAL_GAMMA_SDR , EOTF_TRADITIONAL_GAMMA_HDR , EOTF_ST2084 , EOTF_HLG }
 
enum  metadataId { METADATA_TYPE1 }
 

Functions

static uint16_t EncodeXYY (float xyy)
 

Detailed Description

HDR (High Dynamic Range) Interface.

This code is mostly taken from https://github.com/jojo61/vdr-plugin-softhdcuvid and it seems this was at least inspired by libweston (https://gitlab.freedesktop.org/wayland/weston which is published under the MIT license.

Definition in file drmhdr.cpp.