diff options
author | Lasse Laukkanen <lasse.laukkanen@digia.com> | 2011-05-26 12:23:01 +0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2011-05-31 18:22:02 -0300 |
commit | a9c60f3b313f904cbf372e462eac1448cb5491f5 (patch) | |
tree | 4d1e11e1719b349f542b15281350dc29fd01e50f /tests/examples | |
parent | 9fae436b6804e8a38b52aeb0ae648cf982de94b7 (diff) |
examples: camerabin: Add --image-formatter command-line option
Add command-line option to gst-camerabin-test for configuring camerabin
metadata formatter element.
Diffstat (limited to 'tests/examples')
-rw-r--r-- | tests/examples/camerabin/gst-camerabin-test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/examples/camerabin/gst-camerabin-test.c b/tests/examples/camerabin/gst-camerabin-test.c index 73399e595..27037fad3 100644 --- a/tests/examples/camerabin/gst-camerabin-test.c +++ b/tests/examples/camerabin/gst-camerabin-test.c @@ -61,6 +61,7 @@ --video-enc Video encoder used in video recording --image-enc Image encoder used in still capture --image-pp Image post-processing element + --image-formatter Image metadata formatter element --video-mux Muxer used in video recording --viewfinder-sink Viewfinder sink (default = fakesink) --image-width Width for image capture @@ -126,6 +127,7 @@ static gchar *audioenc_name = NULL; static gchar *videoenc_name = NULL; static gchar *imageenc_name = NULL; static gchar *imagepp_name = NULL; +static gchar *imageformatter_name = NULL; static gchar *videomux_name = NULL; static gchar *vfsink_name = NULL; static gchar *src_csp = NULL; @@ -514,6 +516,7 @@ setup_pipeline (void) res &= setup_pipeline_element ("video-encoder", videoenc_name, NULL); res &= setup_pipeline_element ("image-encoder", imageenc_name, &ienc); + res &= setup_pipeline_element ("image-formatter", imageformatter_name, NULL); res &= setup_pipeline_element ("video-muxer", videomux_name, &vmux); if (!res) { goto error; @@ -747,6 +750,8 @@ main (int argc, char *argv[]) "Image encoder used in still capture", NULL}, {"image-pp", '\0', 0, G_OPTION_ARG_STRING, &imagepp_name, "List of image post-processing elements separated with comma", NULL}, + {"image-formatter", '\0', 0, G_OPTION_ARG_STRING, &imageformatter_name, + "Image metadata formatter used in still image capture", NULL}, {"video-mux", '\0', 0, G_OPTION_ARG_STRING, &videomux_name, "Muxer used in video recording", NULL}, {"viewfinder-sink", '\0', 0, G_OPTION_ARG_STRING, &vfsink_name, @@ -829,6 +834,7 @@ main (int argc, char *argv[]) g_free (audioenc_name); g_free (videoenc_name); g_free (imageenc_name); + g_free (imageformatter_name); g_free (imagepp_name); g_free (videomux_name); g_free (vfsink_name); |