diff options
author | wm4 <wm4@nowhere> | 2017-02-17 13:51:03 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-17 13:51:03 +0100 |
commit | b5bbcc9f930eaf61e149a6cd7cc61712107f50ed (patch) | |
tree | f9dc0785cec0229e7d4d80cd74565387b53b07cc /video/vt.h | |
parent | 1e4fd996bb249a773bad5d57ac5b724be52a09af (diff) | |
download | mpv-b5bbcc9f930eaf61e149a6cd7cc61712107f50ed.tar.bz2 mpv-b5bbcc9f930eaf61e149a6cd7cc61712107f50ed.tar.xz |
videotoolbox: add reverse format mapping function
Introduce mp_imgfmt_to_cvpixelformat(), and change the existing
mp_imgfmt_from_cvpixelformat() to a table to avoid duplication.
Diffstat (limited to 'video/vt.h')
-rw-r--r-- | video/vt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/vt.h b/video/vt.h index e4ad5f021b..e488f29cf0 100644 --- a/video/vt.h +++ b/video/vt.h @@ -4,6 +4,7 @@ #include <stdint.h> int mp_imgfmt_from_cvpixelformat(uint32_t cvpixfmt); +uint32_t mp_imgfmt_to_cvpixelformat(int mpfmt); struct mp_image; struct mp_image_pool; |