omx: Add more constraints to the default sink template caps

This commit is contained in:
Sebastian Dröge 2013-03-19 13:27:35 +01:00
parent c5ed467925
commit 4483581e2a
10 changed files with 26 additions and 16 deletions

View file

@ -69,7 +69,7 @@ rank=256
in-port-index=200 in-port-index=200
out-port-index=201 out-port-index=201
hacks=no-component-role hacks=no-component-role
sink-template-caps=video/x-wmv,wmvversion=(int)3,format=(string){WMV3,WVC1} sink-template-caps=video/x-wmv,wmvversion=(int)3,format=(string){WMV3,WVC1},width=(int)[1,MAX],height=(int)[1,MAX]
[omxh264enc] [omxh264enc]
type-name=GstOMXH264Enc type-name=GstOMXH264Enc

View file

@ -60,7 +60,8 @@ gst_omx_h263_dec_class_init (GstOMXH263DecClass * klass)
videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_h263_dec_set_format); videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_h263_dec_set_format);
videodec_class->cdata.default_sink_template_caps = "video/x-h263, " videodec_class->cdata.default_sink_template_caps = "video/x-h263, "
"parsed=(boolean) true"; "variant=(string) itu, "
"parsed=(boolean) true, " "width=(int) [1,MAX], " "height=(int) [1,MAX]";
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"OpenMAX H.263 Video Decoder", "OpenMAX H.263 Video Decoder",

View file

@ -61,7 +61,9 @@ gst_omx_h264_dec_class_init (GstOMXH264DecClass * klass)
videodec_class->cdata.default_sink_template_caps = "video/x-h264, " videodec_class->cdata.default_sink_template_caps = "video/x-h264, "
"parsed=(boolean) true, " "parsed=(boolean) true, "
"alignment=(string)au, " "stream-format=(string) byte-stream"; "alignment=(string) au, "
"stream-format=(string) byte-stream, "
"width=(int) [1,MAX], " "height=(int) [1,MAX]";
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"OpenMAX H.264 Video Decoder", "OpenMAX H.264 Video Decoder",

View file

@ -59,7 +59,8 @@ gst_omx_mjpeg_dec_class_init (GstOMXMJPEGDecClass * klass)
GST_DEBUG_FUNCPTR (gst_omx_mjpeg_dec_is_format_change); GST_DEBUG_FUNCPTR (gst_omx_mjpeg_dec_is_format_change);
videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_mjpeg_dec_set_format); videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_mjpeg_dec_set_format);
videodec_class->cdata.default_sink_template_caps = "image/jpeg"; videodec_class->cdata.default_sink_template_caps = "image/jpeg, "
"width=(int) [1,MAX], " "height=(int) [1,MAX]";
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"OpenMAX MJPEG Video Decoder", "OpenMAX MJPEG Video Decoder",

View file

@ -62,7 +62,8 @@ gst_omx_mpeg2_video_dec_class_init (GstOMXMPEG2VideoDecClass * klass)
videodec_class->cdata.default_sink_template_caps = "video/mpeg, " videodec_class->cdata.default_sink_template_caps = "video/mpeg, "
"mpegversion=(int) [1, 2], " "mpegversion=(int) [1, 2], "
"systemstream=(boolean) false, " "parsed=(boolean) true"; "systemstream=(boolean) false, "
"parsed=(boolean) true, " "width=(int) [1,MAX], " "height=(int) [1,MAX]";
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"OpenMAX MPEG2 Video Decoder", "OpenMAX MPEG2 Video Decoder",

View file

@ -63,7 +63,8 @@ gst_omx_mpeg4_video_dec_class_init (GstOMXMPEG4VideoDecClass * klass)
videodec_class->cdata.default_sink_template_caps = "video/mpeg, " videodec_class->cdata.default_sink_template_caps = "video/mpeg, "
"mpegversion=(int) 4, " "mpegversion=(int) 4, "
"systemstream=(boolean) false, " "parsed=(boolean) true"; "systemstream=(boolean) false, "
"parsed=(boolean) true, " "width=(int) [1,MAX], " "height=(int) [1,MAX]";
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"OpenMAX MPEG4 Video Decoder", "OpenMAX MPEG4 Video Decoder",

View file

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2011, Hewlett-Packard Development Company, L.P. * Copyright (C) 2013, Collabora Ltd.
* Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>, Collabora Ltd. * Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
@ -64,15 +64,16 @@ gst_omx_theora_dec_class_init (GstOMXTheoraDecClass * klass)
videodec_class->set_format = videodec_class->set_format =
GST_DEBUG_FUNCPTR (gst_omx_theora_dec_set_format); GST_DEBUG_FUNCPTR (gst_omx_theora_dec_set_format);
videodec_class->cdata.default_sink_template_caps = "video/x-theora"; videodec_class->cdata.default_sink_template_caps = "video/x-theora, "
"width=(int) [1,MAX], " "height=(int) [1,MAX]";
gstvideodec_class->handle_frame = gst_omx_theora_dec_handle_frame; gstvideodec_class->handle_frame = gst_omx_theora_dec_handle_frame;
gstvideodec_class->stop = gst_omx_theora_dec_stop; gstvideodec_class->stop = gst_omx_theora_dec_stop;
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"OpenMAX THEORA Video Decoder", "OpenMAX Theora Video Decoder",
"Codec/Decoder/Video", "Codec/Decoder/Video",
"Decode THEORA video streams", "Decode Theora video streams",
"Sebastian Dröge <sebastian.droege@collabora.co.uk>"); "Sebastian Dröge <sebastian.droege@collabora.co.uk>");
gst_omx_set_default_role (&videodec_class->cdata, "video_decoder.theora"); gst_omx_set_default_role (&videodec_class->cdata, "video_decoder.theora");

View file

@ -1,6 +1,8 @@
/* /*
* Copyright (C) 2011, Hewlett-Packard Development Company, L.P. * Copyright (C) 2011, Hewlett-Packard Development Company, L.P.
* Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>, Collabora Ltd. * Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>, Collabora Ltd.
* Copyright (C) 2013, Collabora Ltd.
* Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public

View file

@ -1,6 +1,6 @@
/* /*
* Copyright (C) 2011, Hewlett-Packard Development Company, L.P. * Copyright (C) 2013, Collabora Ltd.
* Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>, Collabora Ltd. * Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
@ -59,7 +59,8 @@ gst_omx_vp8_dec_class_init (GstOMXVP8DecClass * klass)
GST_DEBUG_FUNCPTR (gst_omx_vp8_dec_is_format_change); GST_DEBUG_FUNCPTR (gst_omx_vp8_dec_is_format_change);
videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_vp8_dec_set_format); videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_vp8_dec_set_format);
videodec_class->cdata.default_sink_template_caps = "video/x-vp8"; videodec_class->cdata.default_sink_template_caps = "video/x-vp8, "
"width=(int) [1,MAX], " "height=(int) [1,MAX]";
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"OpenMAX VP8 Video Decoder", "OpenMAX VP8 Video Decoder",

View file

@ -59,8 +59,8 @@ gst_omx_wmv_dec_class_init (GstOMXWMVDecClass * klass)
GST_DEBUG_FUNCPTR (gst_omx_wmv_dec_is_format_change); GST_DEBUG_FUNCPTR (gst_omx_wmv_dec_is_format_change);
videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_wmv_dec_set_format); videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_omx_wmv_dec_set_format);
videodec_class->cdata.default_sink_template_caps = "video/x-wmv"; videodec_class->cdata.default_sink_template_caps = "video/x-wmv, "
"width=(int) [1,MAX], " "height=(int) [1,MAX]";
gst_element_class_set_static_metadata (element_class, gst_element_class_set_static_metadata (element_class,
"OpenMAX WMV Video Decoder", "OpenMAX WMV Video Decoder",