autovideoconvert: Rename and adjust unit test too
This commit is contained in:
parent
369f41913c
commit
1ec5ffbfc9
@ -52,6 +52,7 @@ CRUFT_FILES = \
|
|||||||
$(top_builddir)/gst/shapewipe/.libs/*.{so,dll,DLL,dylib} \
|
$(top_builddir)/gst/shapewipe/.libs/*.{so,dll,DLL,dylib} \
|
||||||
$(top_builddir)/gst/imagefreeze/.libs/*.{so,dll,DLL,dylib} \
|
$(top_builddir)/gst/imagefreeze/.libs/*.{so,dll,DLL,dylib} \
|
||||||
$(top_builddir)/sys/oss4/.libs/*.{so,dll,DLL,dylib} \
|
$(top_builddir)/sys/oss4/.libs/*.{so,dll,DLL,dylib} \
|
||||||
|
$(top_builddir)/tests/check/elements/autocolorspace \
|
||||||
$(top_builddir)/tests/check/elements/capssetter \
|
$(top_builddir)/tests/check/elements/capssetter \
|
||||||
$(top_builddir)/tests/check/elements/imagefreeze \
|
$(top_builddir)/tests/check/elements/imagefreeze \
|
||||||
$(top_builddir)/tests/check/pipelines/metadata \
|
$(top_builddir)/tests/check/pipelines/metadata \
|
||||||
|
@ -152,7 +152,7 @@ check_PROGRAMS = \
|
|||||||
elements/ac3parse \
|
elements/ac3parse \
|
||||||
elements/amrparse \
|
elements/amrparse \
|
||||||
elements/autoconvert \
|
elements/autoconvert \
|
||||||
elements/autocolorspace \
|
elements/autovideoconvert \
|
||||||
elements/asfmux \
|
elements/asfmux \
|
||||||
elements/camerabin \
|
elements/camerabin \
|
||||||
elements/dataurisrc \
|
elements/dataurisrc \
|
||||||
|
1
tests/check/elements/.gitignore
vendored
1
tests/check/elements/.gitignore
vendored
@ -5,6 +5,7 @@ amrparse
|
|||||||
asfmux
|
asfmux
|
||||||
assrender
|
assrender
|
||||||
autoconvert
|
autoconvert
|
||||||
|
autovideoconvert
|
||||||
camerabin
|
camerabin
|
||||||
deinterleave
|
deinterleave
|
||||||
dataurisrc
|
dataurisrc
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* GStreamer
|
/* GStreamer
|
||||||
*
|
*
|
||||||
* unit test for autocolorspace element
|
* unit test for autovideoconvert element
|
||||||
* Copyright (C) 2009 Jan Schmidt <thaytan@noraisin.net>
|
* Copyright (C) 2009 Jan Schmidt <thaytan@noraisin.net>
|
||||||
* Copyright (C) 2010 ST-Ericsson SA
|
* Copyright (C) 2010 ST-Ericsson SA
|
||||||
* @author: Benjamin Gaignard <benjamin.gaignard@stericsson.com>
|
* @author: Benjamin Gaignard <benjamin.gaignard@stericsson.com>
|
||||||
@ -95,13 +95,13 @@ run_test (const gchar * pipeline_string)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_START_TEST (test_autocolorspace_rbg2bayer)
|
GST_START_TEST (test_autovideoconvert_rbg2bayer)
|
||||||
{
|
{
|
||||||
gchar *pipeline;
|
gchar *pipeline;
|
||||||
|
|
||||||
pipeline =
|
pipeline =
|
||||||
g_strdup_printf
|
g_strdup_printf
|
||||||
("videotestsrc num-buffers=1 ! video/x-raw-rgb,bpp=32,depth=32,width=100,height=100,framerate=10/1 ! autocolorspace ! video/x-raw-bayer,width=100,height=100,format=bggr,framerate=10/1 ! fakesink");
|
("videotestsrc num-buffers=1 ! video/x-raw-rgb,bpp=32,depth=32,width=100,height=100,framerate=10/1 ! autovideoconvert ! video/x-raw-bayer,width=100,height=100,format=bggr,framerate=10/1 ! fakesink");
|
||||||
|
|
||||||
run_test (pipeline);
|
run_test (pipeline);
|
||||||
g_free (pipeline);
|
g_free (pipeline);
|
||||||
@ -109,13 +109,13 @@ GST_START_TEST (test_autocolorspace_rbg2bayer)
|
|||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
GST_START_TEST (test_autocolorspace_ffmpegcolorspace)
|
GST_START_TEST (test_autovideoconvert_ffmpegcolorspace)
|
||||||
{
|
{
|
||||||
gchar *pipeline;
|
gchar *pipeline;
|
||||||
|
|
||||||
pipeline =
|
pipeline =
|
||||||
g_strdup_printf
|
g_strdup_printf
|
||||||
("videotestsrc num-buffers=1 ! video/x-raw-rgb,bpp=32,width=100,height=100,framerate=10/1 ! autocolorspace ! video/x-raw-rgb,bpp=16,width=100,height=100,framerate=10/1 ! fakesink");
|
("videotestsrc num-buffers=1 ! video/x-raw-rgb,bpp=32,width=100,height=100,framerate=10/1 ! autovideoconvert ! video/x-raw-rgb,bpp=16,width=100,height=100,framerate=10/1 ! fakesink");
|
||||||
|
|
||||||
run_test (pipeline);
|
run_test (pipeline);
|
||||||
g_free (pipeline);
|
g_free (pipeline);
|
||||||
@ -124,16 +124,16 @@ GST_START_TEST (test_autocolorspace_ffmpegcolorspace)
|
|||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
static Suite *
|
static Suite *
|
||||||
autocolorspace_suite (void)
|
autovideoconvert_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("autocolorspace");
|
Suite *s = suite_create ("autovideoconvert");
|
||||||
TCase *tc_basic = tcase_create ("general");
|
TCase *tc_basic = tcase_create ("general");
|
||||||
|
|
||||||
suite_add_tcase (s, tc_basic);
|
suite_add_tcase (s, tc_basic);
|
||||||
tcase_add_test (tc_basic, test_autocolorspace_rbg2bayer);
|
tcase_add_test (tc_basic, test_autovideoconvert_rbg2bayer);
|
||||||
tcase_add_test (tc_basic, test_autocolorspace_ffmpegcolorspace);
|
tcase_add_test (tc_basic, test_autovideoconvert_ffmpegcolorspace);
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_CHECK_MAIN (autocolorspace);
|
GST_CHECK_MAIN (autovideoconvert);
|
Loading…
x
Reference in New Issue
Block a user