libcamera/test/gstreamer
Laurent Pinchart 17d8b89deb test: gstreamer: Remove videoconvert element from pipeline
The GStreamer single stream test uses the following pipeline:

	libcamerasrc ! videoconvert ! fakesink

The videoconvert element isn't useful as the data is thrown away by the
fakesink anyway. We can shorten the pipeline to

	libcamerasrc ! fakesink

to save CPU time and to avoid depending on the gstreamer1.0-plugins-base
package to run the unit tests.

The test could be further simplified by replacing
gst_parse_bin_from_description_full() with gst_element_factory_make(),
now that we only add one element to the bin. The extra cost incurred by
the bin only impacts initialization time, and using a bin will make it
easier to add other elements in the future if needed. Keep the bin, and
only drop the videoconvert element.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2023-12-07 18:59:42 +02:00
..
gstreamer_device_provider_test.cpp tests: gstreamer: Fix compiler error with gcc 8.4.0 2023-07-11 15:58:06 +01:00
gstreamer_multi_stream_test.cpp test: gstreamer: Fix failure of gstreamer_multistream_test 2022-09-12 22:44:54 +05:30
gstreamer_single_stream_test.cpp test: gstreamer: Remove videoconvert element from pipeline 2023-12-07 18:59:42 +02:00
gstreamer_test.cpp test: gstreamer: Fix indentation in comments 2023-12-06 02:51:35 +02:00
gstreamer_test.h test: gstreamer: Fix failure of gstreamer_multistream_test 2022-09-12 22:44:54 +05:30
meson.build meson: Fix space around colon issues 2023-07-07 11:39:19 +03:00