summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-07-15 12:02:55 +0200
committerwm4 <wm4@nowhere>2016-07-15 13:04:17 +0200
commit48f9ea71043d283fb3a43d9bc5f37ae03b59b0bb (patch)
treed2bd966642ed2f4fde43f6d5029029589542530f /video
parentae94f329a9b1296bf740e85c888910f8483e21cd (diff)
downloadmpv-48f9ea71043d283fb3a43d9bc5f37ae03b59b0bb.tar.bz2
mpv-48f9ea71043d283fb3a43d9bc5f37ae03b59b0bb.tar.xz
videotoolbox: add yuv420p to --videotoolbox-format
Diffstat (limited to 'video')
-rw-r--r--video/out/opengl/hwdec_osx.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/video/out/opengl/hwdec_osx.c b/video/out/opengl/hwdec_osx.c
index 677661c09e..e0fc5ab19b 100644
--- a/video/out/opengl/hwdec_osx.c
+++ b/video/out/opengl/hwdec_osx.c
@@ -70,6 +70,16 @@ static struct vt_format vt_formats[] = {
}
},
{
+ .cvpixfmt = kCVPixelFormatType_420YpCbCr8Planar,
+ .imgfmt = IMGFMT_420P,
+ .planes = 3,
+ .gl = {
+ { GL_RED, GL_UNSIGNED_BYTE, GL_RED },
+ { GL_RED, GL_UNSIGNED_BYTE, GL_RED },
+ { GL_RED, GL_UNSIGNED_BYTE, GL_RED },
+ }
+ },
+ {
.cvpixfmt = kCVPixelFormatType_32BGRA,
.imgfmt = IMGFMT_RGB0,
.planes = 1,