summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2009-06-13 15:03:39 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2009-06-13 15:03:39 +0100
commit1b1dd8e746b071bacf4d2c581e6eeac0f5ce2e68 (patch)
tree5e3148fbcb7f9bd2249b4aba4643422d7cf5f18c /tests
parentebd36adc11b04d90c5264ad54ca38c6d76f6314f (diff)
downloadclutter-gst-1b1dd8e746b071bacf4d2c581e6eeac0f5ce2e68.tar.gz
Make the tests default to 320x240 30fps
These tests can be used to compare clutter-gst performance with plain gstreamer and the videotestsrc ! xvimagesink pipeline. For a fair comparison, let's use the same default frame size and rate.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-rgb-upload.c3
-rw-r--r--tests/test-yuv-upload.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/test-rgb-upload.c b/tests/test-rgb-upload.c
index 3d3e1bc..0185c7e 100644
--- a/tests/test-rgb-upload.c
+++ b/tests/test-rgb-upload.c
@@ -2,7 +2,7 @@
#include <clutter-gst/clutter-gst.h>
-static gint opt_framerate = 25;
+static gint opt_framerate = 30;
static gint opt_bpp = 24;
static gint opt_depth = 24;
@@ -94,6 +94,7 @@ main (int argc, char *argv[])
g_option_context_parse (context, &argc, &argv, NULL);
stage = clutter_stage_get_default ();
+ clutter_actor_set_size (CLUTTER_ACTOR (stage), 320.0f, 240.0f);
/* We need to set certain props on the target texture currently for
* efficient/corrent playback onto the texture (which sucks a bit)
diff --git a/tests/test-yuv-upload.c b/tests/test-yuv-upload.c
index 0fd8096..0edc928 100644
--- a/tests/test-yuv-upload.c
+++ b/tests/test-yuv-upload.c
@@ -2,7 +2,7 @@
#include <clutter-gst/clutter-gst.h>
-static gint opt_framerate = 25;
+static gint opt_framerate = 30;
static gchar *opt_fourcc = "I420";
static GOptionEntry options[] =
@@ -93,6 +93,7 @@ main (int argc, char *argv[])
g_option_context_parse (context, &argc, &argv, NULL);
stage = clutter_stage_get_default ();
+ clutter_actor_set_size (CLUTTER_ACTOR(stage), 320.0f, 240.0f);
/* We need to set certain props on the target texture currently for
* efficient/corrent playback onto the texture (which sucks a bit)
@@ -129,7 +130,7 @@ main (int argc, char *argv[])
gst_element_set_state (GST_ELEMENT(pipeline), GST_STATE_PLAYING);
clutter_group_add (CLUTTER_GROUP (stage), texture);
- // clutter_actor_set_opacity (texture, 0x11);
+ /* clutter_actor_set_opacity (texture, 0x11); */
clutter_actor_show_all (stage);
clutter_main();