mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
applemedia: Also fix inconsistent pixel format definition for NV12
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5191>
This commit is contained in:
parent
e52e1db5ab
commit
07b18a6de5
2 changed files with 1 additions and 6 deletions
|
@ -288,11 +288,8 @@ _cv_pixel_format_type_from_video_format (GstVideoFormat format)
|
|||
return kCVPixelFormatType_24RGB;
|
||||
case GST_VIDEO_FORMAT_BGR:
|
||||
return kCVPixelFormatType_24BGR;
|
||||
#if 0
|
||||
/* FIXME doesn't seem to work */
|
||||
case GST_VIDEO_FORMAT_NV12:
|
||||
return kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;
|
||||
#endif
|
||||
case GST_VIDEO_FORMAT_I420:
|
||||
return kCVPixelFormatType_420YpCbCr8Planar;
|
||||
case GST_VIDEO_FORMAT_YUY2:
|
||||
|
@ -330,10 +327,8 @@ _pixel_format_description_to_video_format (CFDictionaryRef attrs)
|
|||
return GST_VIDEO_FORMAT_RGB;
|
||||
case kCVPixelFormatType_24BGR:
|
||||
return GST_VIDEO_FORMAT_BGR;
|
||||
#if 0
|
||||
case kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange:
|
||||
return GST_VIDEO_FORMAT_NV12;
|
||||
#endif
|
||||
case kCVPixelFormatType_420YpCbCr8Planar:
|
||||
return GST_VIDEO_FORMAT_I420;
|
||||
case kCVPixelFormatType_422YpCbCr8_yuvs:
|
||||
|
|
|
@ -61,7 +61,7 @@ gst_video_format_to_cvpixelformat (GstVideoFormat fmt)
|
|||
case GST_VIDEO_FORMAT_I420:
|
||||
return kCVPixelFormatType_420YpCbCr8Planar;
|
||||
case GST_VIDEO_FORMAT_NV12:
|
||||
return kCVPixelFormatType_420YpCbCr8BiPlanarFullRange;
|
||||
return kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;
|
||||
case GST_VIDEO_FORMAT_UYVY:
|
||||
return kCVPixelFormatType_422YpCbCr8;
|
||||
case GST_VIDEO_FORMAT_YUY2:
|
||||
|
|
Loading…
Reference in a new issue