mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Framework for dynamic videoio backends, FFmpeg and GStreamer plugins
This commit is contained in:
@@ -3,16 +3,18 @@
|
||||
// of this distribution and at http://opencv.org/license.html.
|
||||
|
||||
#include "test_precomp.hpp"
|
||||
#ifdef HAVE_GSTREAMER
|
||||
|
||||
namespace opencv_test
|
||||
{
|
||||
|
||||
typedef tuple< string, Size, Size, int > Param;
|
||||
typedef testing::TestWithParam< Param > Videoio_Gstreamer_Test;
|
||||
typedef testing::TestWithParam< Param > videoio_gstreamer;
|
||||
|
||||
TEST_P(Videoio_Gstreamer_Test, test_object_structure)
|
||||
TEST_P(videoio_gstreamer, read_write)
|
||||
{
|
||||
if (!videoio_registry::hasBackend(CAP_GSTREAMER))
|
||||
throw SkipTestException("GStreamer backend was not found");
|
||||
|
||||
string format = get<0>(GetParam());
|
||||
Size frame_size = get<1>(GetParam());
|
||||
Size mat_size = get<2>(GetParam());
|
||||
@@ -69,8 +71,6 @@ Param test_data[] = {
|
||||
make_tuple("jpegenc ! image/jpeg" , Size(640, 480), Size(640, 480), COLOR_BGR2RGB)
|
||||
};
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(videoio, Videoio_Gstreamer_Test, testing::ValuesIn(test_data));
|
||||
INSTANTIATE_TEST_CASE_P(videoio, videoio_gstreamer, testing::ValuesIn(test_data));
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user