diff options
author | wm4 <wm4@nowhere> | 2017-08-15 17:00:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-08-15 17:00:35 +0200 |
commit | 63b1031ca2bb57ce101de274fbe3cbe16ff5222f (patch) | |
tree | b39da1961edbedb7d53435a6aae8256799cad9a5 /video/img_format.h | |
parent | 817bb2bbbe26a77d896abd2489c125cd79aa000e (diff) | |
download | mpv-63b1031ca2bb57ce101de274fbe3cbe16ff5222f.tar.bz2 mpv-63b1031ca2bb57ce101de274fbe3cbe16ff5222f.tar.xz |
vo_opengl: support float pixel formats
Like AV_PIX_FMT_GBRPF32LE.
Diffstat (limited to 'video/img_format.h')
-rw-r--r-- | video/img_format.h | 11 |
1 files changed, 11 insertions, 0 deletions
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; |