applemedia: biplanar is actually NV12, not I420

D'oh!
This commit is contained in:
Ole André Vadla Ravnås 2010-11-08 23:54:31 +01:00
parent d865feca82
commit d10e029f51
5 changed files with 7 additions and 7 deletions

View file

@ -37,7 +37,7 @@ GST_DEBUG_CATEGORY (gst_cel_video_src_debug);
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC, GST_PAD_SRC,
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("I420") ";" GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("NV12") ";"
GST_VIDEO_CAPS_YUV ("YUY2")) GST_VIDEO_CAPS_YUV ("YUY2"))
); );
@ -727,8 +727,8 @@ gst_cel_video_src_parse_stream_format (GstCelVideoSrc * self,
format->fourcc = GST_MAKE_FOURCC ('Y', 'U', 'Y', '2'); format->fourcc = GST_MAKE_FOURCC ('Y', 'U', 'Y', '2');
break; break;
case kYUV420vCodecType: case kYUV420vCodecType:
format->video_format = GST_VIDEO_FORMAT_I420; format->video_format = GST_VIDEO_FORMAT_NV12;
format->fourcc = GST_MAKE_FOURCC ('I', '4', '2', '0'); format->fourcc = GST_MAKE_FOURCC ('N', 'V', '1', '2');
break; break;
default: default:
goto unsupported_format; goto unsupported_format;

View file

@ -94,7 +94,7 @@ gst_vtdec_base_init (GstVTDecClass * klass)
GST_PAD_SRC, GST_PAD_SRC,
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
gst_caps_new_simple ("video/x-raw-yuv", gst_caps_new_simple ("video/x-raw-yuv",
"format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('I', '4', '2', '0'), "format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('N', 'V', '1', '2'),
"width", GST_TYPE_INT_RANGE, min_width, max_width, "width", GST_TYPE_INT_RANGE, min_width, max_width,
"height", GST_TYPE_INT_RANGE, min_height, max_height, "height", GST_TYPE_INT_RANGE, min_height, max_height,
"framerate", GST_TYPE_FRACTION_RANGE, "framerate", GST_TYPE_FRACTION_RANGE,

View file

@ -112,7 +112,7 @@ gst_vtenc_base_init (GstVTEncClass * klass)
GST_PAD_SINK, GST_PAD_SINK,
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
gst_caps_new_simple ("video/x-raw-yuv", gst_caps_new_simple ("video/x-raw-yuv",
"format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('I', '4', '2', '0'), "format", GST_TYPE_FOURCC, GST_MAKE_FOURCC ('N', 'V', '1', '2'),
"width", GST_TYPE_INT_RANGE, min_width, max_width, "width", GST_TYPE_INT_RANGE, min_width, max_width,
"height", GST_TYPE_INT_RANGE, min_height, max_height, "height", GST_TYPE_INT_RANGE, min_height, max_height,
"framerate", GST_TYPE_FRACTION_RANGE, "framerate", GST_TYPE_FRACTION_RANGE,

View file

@ -57,7 +57,7 @@ static GstStaticPadTemplate vth264decbin_src_template =
GST_STATIC_PAD_TEMPLATE ("src", GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC, GST_PAD_SRC,
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("I420")) GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("NV12"))
); );
#define TAA_VT_H264_DEC_BIN_GET_PRIVATE(obj) \ #define TAA_VT_H264_DEC_BIN_GET_PRIVATE(obj) \

View file

@ -48,7 +48,7 @@ static GstStaticPadTemplate vth264encbin_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink", GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK, GST_PAD_SINK,
GST_PAD_ALWAYS, GST_PAD_ALWAYS,
GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("I420")) GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("NV12"))
); );
static GstStaticPadTemplate vth264encbin_src_template = static GstStaticPadTemplate vth264encbin_src_template =