applemedia: vtdec: switch to IOSurface on Mac
authorAlessandro Decina <alessandro.d@gmail.com>
Fri, 11 Dec 2015 02:20:05 +0000 (13:20 +1100)
committerAlessandro Decina <alessandro.d@gmail.com>
Wed, 16 Dec 2015 06:03:03 +0000 (17:03 +1100)
commit8ae003326157438c12c45589e050c5f446723f61
tree445ce9a431c1a66391336b4b2b55a48ea0e51051
parente730b0a8abc4d68e7ebca37a811b601731a30cf7
applemedia: vtdec: switch to IOSurface on Mac

Switch to using IOSurface instead of CVOpenGLTextureCache on OSX. The latter can't be
used anymore to do YUV => RGB with opengl3 on El Capitan as GL_YCBCR_422_APPLE
has been removed from the opengl3 driver. Also switch to NV12 from UYVY, which
was the only YUV format supported by CVOpenGLTextureCache.
common
sys/applemedia/Makefile.am
sys/applemedia/iosurfacememory.c [new file with mode: 0644]
sys/applemedia/iosurfacememory.h [new file with mode: 0644]
sys/applemedia/videotexturecache.h
sys/applemedia/videotexturecache.m
sys/applemedia/vtdec.c