From 7a09447406c44af8a089bbb97b81275c0303fda6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 10 Aug 2011 10:11:37 +0200 Subject: [PATCH] omxvideodec: Use "video/x-raw-yuv" as src template caps instead of strict I420 caps --- omx/gstomxh263dec.c | 1 - omx/gstomxh264dec.c | 1 - omx/gstomxmpeg4videodec.c | 1 - omx/gstomxvideodec.c | 4 ++++ omx/gstomxwmvdec.c | 1 - 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/omx/gstomxh263dec.c b/omx/gstomxh263dec.c index dafb6ac..a294c3a 100644 --- a/omx/gstomxh263dec.c +++ b/omx/gstomxh263dec.c @@ -82,7 +82,6 @@ gst_omx_h263_dec_class_init (GstOMXH263DecClass * klass) videodec_class->default_sink_template_caps = "video/x-h263, " "parsed=(boolean) true"; - videodec_class->default_src_template_caps = GST_VIDEO_CAPS_YUV ("I420"); } static void diff --git a/omx/gstomxh264dec.c b/omx/gstomxh264dec.c index 1a25602..4b4b6db 100644 --- a/omx/gstomxh264dec.c +++ b/omx/gstomxh264dec.c @@ -83,7 +83,6 @@ gst_omx_h264_dec_class_init (GstOMXH264DecClass * klass) videodec_class->default_sink_template_caps = "video/x-h264, " "parsed=(boolean) true, " "alignment=(string)au, " "stream-format=(string) avc"; - videodec_class->default_src_template_caps = GST_VIDEO_CAPS_YUV ("I420"); } static void diff --git a/omx/gstomxmpeg4videodec.c b/omx/gstomxmpeg4videodec.c index fabf441..424ccdc 100644 --- a/omx/gstomxmpeg4videodec.c +++ b/omx/gstomxmpeg4videodec.c @@ -86,7 +86,6 @@ gst_omx_mpeg4_video_dec_class_init (GstOMXMPEG4VideoDecClass * klass) "systemstream=(boolean) false, " "parsed=(boolean) true, " "width=(int) [ 16, 4096 ], " "height=(int) [ 16, 4096 ]"; - videodec_class->default_src_template_caps = GST_VIDEO_CAPS_YUV ("I420"); } static void diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index f0b3441..63f289d 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -233,6 +233,10 @@ gst_omx_video_dec_class_init (GstOMXVideoDecClass * klass) GST_DEBUG_FUNCPTR (gst_omx_video_dec_handle_frame); base_video_decoder_class->finish = GST_DEBUG_FUNCPTR (gst_omx_video_dec_finish); + + klass->default_src_template_caps = "video/x-raw-yuv, " + "width = " GST_VIDEO_SIZE_RANGE ", " + "height = " GST_VIDEO_SIZE_RANGE ", " "framerate = " GST_VIDEO_FPS_RANGE; } static void diff --git a/omx/gstomxwmvdec.c b/omx/gstomxwmvdec.c index 5cb62ae..e86a656 100644 --- a/omx/gstomxwmvdec.c +++ b/omx/gstomxwmvdec.c @@ -81,7 +81,6 @@ gst_omx_wmv_dec_class_init (GstOMXWMVDecClass * klass) videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_wmv_dec_set_format); videodec_class->default_sink_template_caps = "video/x-wmv"; - videodec_class->default_src_template_caps = GST_VIDEO_CAPS_YUV ("I420"); } static void -- 2.7.4