vlc | branch: master | Thomas Guillem <tho...@gllm.fr> | Fri Feb  9 17:42:21 
2018 +0100| [5e67297bb8518a67977d37d30756cd7e404597de] | committer: Thomas 
Guillem

codec: videotoolbox: add P010 mapping

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e67297bb8518a67977d37d30756cd7e404597de
---

 modules/codec/videotoolbox.m | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 7b45a31d82..0f34a56fa1 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1973,6 +1973,11 @@ static int UpdateVideoFormat(decoder_t *p_dec, 
CVPixelBufferRef imageBuffer)
             p_dec->fmt_out.i_codec = VLC_CODEC_CVPX_NV12;
             assert(CVPixelBufferIsPlanar(imageBuffer) == true);
             break;
+        case 'xf20': /* kCVPixelFormatType_420YpCbCr10BiPlanarFullRange */
+        case 'x420': /* kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange */
+            p_dec->fmt_out.i_codec = VLC_CODEC_CVPX_P010;
+            assert(CVPixelBufferIsPlanar(imageBuffer) == true);
+            break;
         case kCVPixelFormatType_420YpCbCr8Planar:
             p_dec->fmt_out.i_codec = VLC_CODEC_CVPX_I420;
             assert(CVPixelBufferIsPlanar(imageBuffer) == true);

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to