diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-10-24 00:46:05 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-11-05 18:57:36 +0100 |
commit | 468feb863ba0e96533b3c1df997bb02614ed8d1d (patch) | |
tree | 6e6bad21f220cfdc003eaa1d636a486eef3048e5 /video/csputils.h | |
parent | 076be248532e3fa0b261addb9c6dc93563d02644 (diff) | |
download | mpv-468feb863ba0e96533b3c1df997bb02614ed8d1d.tar.bz2 mpv-468feb863ba0e96533b3c1df997bb02614ed8d1d.tar.xz |
csputils: change mp_hdr_metadata to pl_hdr_metadata
Diffstat (limited to 'video/csputils.h')
-rw-r--r-- | video/csputils.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/video/csputils.h b/video/csputils.h index 1338625072..ab5d9792e0 100644 --- a/video/csputils.h +++ b/video/csputils.h @@ -21,6 +21,8 @@ #include <stdbool.h> #include <stdint.h> +#include <libplacebo/colorspace.h> + #include "options/m_option.h" /* NOTE: the csp and levels AUTO values are converted to specific ones @@ -139,24 +141,6 @@ extern const struct m_opt_choice_alternatives mp_stereo3d_names[]; #define MP_STEREO3D_NAME_DEF(x, def) \ (MP_STEREO3D_NAME(x) ? MP_STEREO3D_NAME(x) : (def)) -struct mp_hdr_metadata { - // HDR10 - // Mastering display metadata - float min_luma, max_luma; // min/max luminance (in cd/m²) - - // Content light level - float max_cll; // max content light level (in cd/m²) - float max_fall; // max frame average light level (in cd/m²) - - // HDR10+ - float scene_max[3]; // maxRGB in cd/m² per component (RGB) - float scene_avg; // average of maxRGB in cd/m² - - // CIE Y - float max_pq_y; // maximum PQ luminance (in PQ, 0-1) - float avg_pq_y; // averaged PQ luminance (in PQ, 0-1) -}; - struct mp_colorspace { enum mp_csp space; enum mp_csp_levels levels; |