Commit c5d2a307 authored by Thomas Guillem's avatar Thomas Guillem

codec: vt_utils: add P010 support

parent dd614932
......@@ -149,7 +149,8 @@ cvpxpic_create_mapped(const video_format_t *fmt, CVPixelBufferRef cvpx,
{
case VLC_CODEC_BGRA:
case VLC_CODEC_UYVY: planes_count = 0; break;
case VLC_CODEC_NV12: planes_count = 2; break;
case VLC_CODEC_NV12:
case VLC_CODEC_P010: planes_count = 2; break;
case VLC_CODEC_I420: planes_count = 3; break;
default: return NULL;
}
......@@ -199,6 +200,7 @@ cvpxpic_unmap(picture_t *mapped_pic)
{
case VLC_CODEC_UYVY: fmt.i_chroma = VLC_CODEC_CVPX_UYVY; break;
case VLC_CODEC_NV12: fmt.i_chroma = VLC_CODEC_CVPX_NV12; break;
case VLC_CODEC_P010: fmt.i_chroma = VLC_CODEC_CVPX_P010; break;
case VLC_CODEC_I420: fmt.i_chroma = VLC_CODEC_CVPX_I420; break;
case VLC_CODEC_BGRA: fmt.i_chroma = VLC_CODEC_CVPX_BGRA; break;
default:
......@@ -239,6 +241,9 @@ cvpxpool_create(const video_format_t *fmt, unsigned count)
case VLC_CODEC_CVPX_BGRA:
cvpx_format = kCVPixelFormatType_32BGRA;
break;
case VLC_CODEC_CVPX_P010:
cvpx_format = kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange;
break;
default:
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment