From 63b1031ca2bb57ce101de274fbe3cbe16ff5222f Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 15 Aug 2017 17:00:35 +0200 Subject: vo_opengl: support float pixel formats Like AV_PIX_FMT_GBRPF32LE. --- video/img_format.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'video/img_format.h') diff --git a/video/img_format.h b/video/img_format.h index 631baf4a0a..7f0330d55b 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -101,6 +101,14 @@ struct mp_imgfmt_desc mp_imgfmt_get_desc(int imgfmt); // (Because IMGFMT/AV_PIX_FMT conflate format and csp for RGB and XYZ.) enum mp_csp mp_imgfmt_get_forced_csp(int imgfmt); +enum mp_component_type { + MP_COMPONENT_TYPE_UNKNOWN = 0, + MP_COMPONENT_TYPE_UINT, + MP_COMPONENT_TYPE_FLOAT, +}; + +enum mp_component_type mp_imgfmt_get_component_type(int imgfmt); + #define MP_NUM_COMPONENTS 4 struct mp_regular_imgfmt_plane { @@ -113,6 +121,9 @@ struct mp_regular_imgfmt_plane { // This describes pixel formats that are byte aligned, have byte aligned // components, native endian, etc. struct mp_regular_imgfmt { + // Type of each component. + enum mp_component_type component_type; + // Size of each component in bytes. uint8_t component_size; -- cgit v1.2.3