omxvideodec: Use "video/x-raw-yuv" as src template caps instead of strict I420 caps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 10 Aug 2011 08:11:37 +0000 (10:11 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 10 Aug 2011 08:21:15 +0000 (10:21 +0200)
omx/gstomxh263dec.c
omx/gstomxh264dec.c
omx/gstomxmpeg4videodec.c
omx/gstomxvideodec.c
omx/gstomxwmvdec.c

index dafb6ac..a294c3a 100644 (file)
@@ -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
index 1a25602..4b4b6db 100644 (file)
@@ -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
index fabf441..424ccdc 100644 (file)
@@ -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
index f0b3441..63f289d 100644 (file)
@@ -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
index 5cb62ae..e86a656 100644 (file)
@@ -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