From 71295fb872ba6593c8591cff7398498e05afb298 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 24 Apr 2020 14:41:50 +0200 Subject: video: add alpha type metadata This is mostly for testing. It adds passing through the metadata through the video chain. The metadata can be manipulated with vf_format. Support for zimg alpha conversion (if built with zimg after it gained alpha support) is implemented. Support premultiplied input in vo_gpu. Some things still seem to be buggy. --- video/csputils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'video/csputils.h') diff --git a/video/csputils.h b/video/csputils.h index f817779584..fc6f04db6a 100644 --- a/video/csputils.h +++ b/video/csputils.h @@ -189,6 +189,14 @@ enum mp_chroma_location { extern const struct m_opt_choice_alternatives mp_chroma_names[]; +enum mp_alpha_type { + MP_ALPHA_AUTO, + MP_ALPHA_STRAIGHT, + MP_ALPHA_PREMUL, +}; + +extern const struct m_opt_choice_alternatives mp_alpha_names[]; + extern const struct m_sub_options mp_csp_equalizer_conf; enum mp_csp_equalizer_param { -- cgit v1.2.3