From b5bbcc9f930eaf61e149a6cd7cc61712107f50ed Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 17 Feb 2017 13:51:03 +0100 Subject: 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. --- video/vt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/vt.h') 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 int mp_imgfmt_from_cvpixelformat(uint32_t cvpixfmt); +uint32_t mp_imgfmt_to_cvpixelformat(int mpfmt); struct mp_image; struct mp_image_pool; -- cgit v1.2.3