[gst-cvs] gst-openmax: Even more framerate improvements

Felipe Contreras felipec at kemper.freedesktop.org
Wed Mar 25 14:27:07 PDT 2009


Module: gst-openmax
Branch: master
Commit: f7100900b722f397564056fba45156cb31e9904f
URL:    http://cgit.freedesktop.org/gstreamer/gst-openmax/commit/?id=f7100900b722f397564056fba45156cb31e9904f

Author: Felipe Contreras <felipe.contreras at nokia.com>
Date:   Wed Mar 25 15:30:09 2009 +0200

Even more framerate improvements

As suggested by Stefan Kost.

Signed-off-by: Felipe Contreras <felipe.contreras at nokia.com>

---

 omx/gstomx_base_videoenc.c |    2 +-
 omx/gstomx_h263dec.c       |    2 +-
 omx/gstomx_h263enc.c       |    2 +-
 omx/gstomx_h264dec.c       |    2 +-
 omx/gstomx_h264enc.c       |    2 +-
 omx/gstomx_jpegenc.c       |    4 ++--
 omx/gstomx_mpeg4dec.c      |    8 ++++----
 omx/gstomx_mpeg4enc.c      |    2 +-
 omx/gstomx_videosink.c     |    2 +-
 omx/gstomx_wmvdec.c        |    2 +-
 10 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/omx/gstomx_base_videoenc.c b/omx/gstomx_base_videoenc.c
index 44a8c74..1900661 100644
--- a/omx/gstomx_base_videoenc.c
+++ b/omx/gstomx_base_videoenc.c
@@ -46,7 +46,7 @@ generate_sink_template (void)
     struc = gst_structure_new ("video/x-raw-yuv",
                                "width", GST_TYPE_INT_RANGE, 16, 4096,
                                "height", GST_TYPE_INT_RANGE, 16, 4096,
-                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                NULL);
 
     {
diff --git a/omx/gstomx_h263dec.c b/omx/gstomx_h263dec.c
index 7beecc9..346a66f 100644
--- a/omx/gstomx_h263dec.c
+++ b/omx/gstomx_h263dec.c
@@ -38,7 +38,7 @@ generate_sink_template (void)
                                "variant", G_TYPE_STRING, "itu",
                                "width", GST_TYPE_INT_RANGE, 16, 4096,
                                "height", GST_TYPE_INT_RANGE, 16, 4096,
-                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                NULL);
 
     gst_caps_append_structure (caps, struc);
diff --git a/omx/gstomx_h263enc.c b/omx/gstomx_h263enc.c
index 75bd0dd..44201e2 100644
--- a/omx/gstomx_h263enc.c
+++ b/omx/gstomx_h263enc.c
@@ -37,7 +37,7 @@ generate_src_template (void)
                                 "variant", G_TYPE_STRING, "itu",
                                 "width", GST_TYPE_INT_RANGE, 16, 4096,
                                 "height", GST_TYPE_INT_RANGE, 16, 4096,
-                                "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                                "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                 NULL);
 
     return caps;
diff --git a/omx/gstomx_h264dec.c b/omx/gstomx_h264dec.c
index 77a13c3..0a89aed 100644
--- a/omx/gstomx_h264dec.c
+++ b/omx/gstomx_h264dec.c
@@ -37,7 +37,7 @@ generate_sink_template (void)
     struc = gst_structure_new ("video/x-h264",
                                "width", GST_TYPE_INT_RANGE, 16, 4096,
                                "height", GST_TYPE_INT_RANGE, 16, 4096,
-                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                NULL);
 
     gst_caps_append_structure (caps, struc);
diff --git a/omx/gstomx_h264enc.c b/omx/gstomx_h264enc.c
index 984b216..275a28d 100644
--- a/omx/gstomx_h264enc.c
+++ b/omx/gstomx_h264enc.c
@@ -36,7 +36,7 @@ generate_src_template (void)
     caps = gst_caps_new_simple ("video/x-h264",
                                 "width", GST_TYPE_INT_RANGE, 16, 4096,
                                 "height", GST_TYPE_INT_RANGE, 16, 4096,
-                                "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                                "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                 NULL);
 
     return caps;
diff --git a/omx/gstomx_jpegenc.c b/omx/gstomx_jpegenc.c
index 38d4996..0b75b79 100644
--- a/omx/gstomx_jpegenc.c
+++ b/omx/gstomx_jpegenc.c
@@ -47,7 +47,7 @@ generate_src_template (void)
     caps = gst_caps_new_simple ("image/jpeg",
                                 "width", GST_TYPE_INT_RANGE, 16, 4096,
                                 "height", GST_TYPE_INT_RANGE, 16, 4096,
-                                "framerate", GST_TYPE_FRACTION, 1, 1,
+                                "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                 NULL);
 
     return caps;
@@ -64,7 +64,7 @@ generate_sink_template (void)
     struc = gst_structure_new ("video/x-raw-yuv",
                                "width", GST_TYPE_INT_RANGE, 16, 4096,
                                "height", GST_TYPE_INT_RANGE, 16, 4096,
-                               "framerate", GST_TYPE_FRACTION, 1, 1,
+                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                NULL);
 
     {
diff --git a/omx/gstomx_mpeg4dec.c b/omx/gstomx_mpeg4dec.c
index 296d57a..f2595fc 100644
--- a/omx/gstomx_mpeg4dec.c
+++ b/omx/gstomx_mpeg4dec.c
@@ -39,7 +39,7 @@ generate_sink_template (void)
                                "systemstream", G_TYPE_BOOLEAN, FALSE,
                                "width", GST_TYPE_INT_RANGE, 16, 4096,
                                "height", GST_TYPE_INT_RANGE, 16, 4096,
-                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                NULL);
 
     gst_caps_append_structure (caps, struc);
@@ -48,7 +48,7 @@ generate_sink_template (void)
                                "divxversion", GST_TYPE_INT_RANGE, 4, 5,
                                "width", GST_TYPE_INT_RANGE, 16, 4096,
                                "height", GST_TYPE_INT_RANGE, 16, 4096,
-                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                NULL);
 
     gst_caps_append_structure (caps, struc);
@@ -56,7 +56,7 @@ generate_sink_template (void)
     struc = gst_structure_new ("video/x-xvid",
                                "width", GST_TYPE_INT_RANGE, 16, 4096,
                                "height", GST_TYPE_INT_RANGE, 16, 4096,
-                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                NULL);
 
     gst_caps_append_structure (caps, struc);
@@ -64,7 +64,7 @@ generate_sink_template (void)
     struc = gst_structure_new ("video/x-3ivx",
                                "width", GST_TYPE_INT_RANGE, 16, 4096,
                                "height", GST_TYPE_INT_RANGE, 16, 4096,
-                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                NULL);
 
     gst_caps_append_structure (caps, struc);
diff --git a/omx/gstomx_mpeg4enc.c b/omx/gstomx_mpeg4enc.c
index 707889a..0f9f837 100644
--- a/omx/gstomx_mpeg4enc.c
+++ b/omx/gstomx_mpeg4enc.c
@@ -36,7 +36,7 @@ generate_src_template (void)
     caps = gst_caps_new_simple ("video/mpeg",
                                 "width", GST_TYPE_INT_RANGE, 16, 4096,
                                 "height", GST_TYPE_INT_RANGE, 16, 4096,
-                                "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                                "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                 "mpegversion", G_TYPE_INT, 4,
                                 "systemstream", G_TYPE_BOOLEAN, FALSE,
                                 NULL);
diff --git a/omx/gstomx_videosink.c b/omx/gstomx_videosink.c
index e243e95..c5a8e18 100644
--- a/omx/gstomx_videosink.c
+++ b/omx/gstomx_videosink.c
@@ -50,7 +50,7 @@ generate_sink_template (void)
     struc = gst_structure_new ("video/x-raw-yuv",
                                "width", GST_TYPE_INT_RANGE, 16, 4096,
                                "height", GST_TYPE_INT_RANGE, 16, 4096,
-                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                NULL);
 
     {
diff --git a/omx/gstomx_wmvdec.c b/omx/gstomx_wmvdec.c
index ad6763d..81131ae 100644
--- a/omx/gstomx_wmvdec.c
+++ b/omx/gstomx_wmvdec.c
@@ -37,7 +37,7 @@ generate_sink_template (void)
     struc = gst_structure_new ("video/x-wmv",
                                "width", GST_TYPE_INT_RANGE, 16, 4096,
                                "height", GST_TYPE_INT_RANGE, 16, 4096,
-                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 100, 1,
+                               "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1,
                                NULL);
 
     gst_caps_append_structure (caps, struc);





More information about the Gstreamer-commits mailing list