[vlc-commits] codec: videotoolbox: add P010 mapping

Thomas Guillem git at videolan.org
Fri Feb 9 19:46:05 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb  9 17:42:21 2018 +0100| [a79259c0d71adf021daacc2f2282bbfd4bb7dbde] | committer: Thomas Guillem

codec: videotoolbox: add P010 mapping

(cherry picked from commit 5e67297bb8518a67977d37d30756cd7e404597de)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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);



More information about the vlc-commits mailing list