summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2020-05-27libs: subpicture: Make subpicture a standard GstMiniObject.He Junyan1-1/+1
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/331>
2020-05-16libs: texture: Make texture a standard GstMiniObject.He Junyan1-2/+2
We store GstVaapiTextureGLX and GstVaapiTextureEGL's private data in the qdata of miniobject and avoid extending the base texture class. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/317>
2020-03-17libs: remove GstVaapiPixmapVíctor Manuel Jáquez Leal4-118/+4
GstVaapiPixmap is an abstract base class which only implementation were GstVaapiPixmapX11. This class were used for a special type of rendering in the tests apps, utterly unrelated in GStreamer. Since gstreamer-vaapi is no longer a general-user wrapper for VA-API we should remove this unused API. This removal drops libxrender dependency.
2020-03-09test: fix a ninja test failure for vaapioverlay.He Junyan1-1/+6
That test case only works with drm display, so the build such as meson -Dwith_x11=yes -Dwith_wayland=no -Dwith_drm=no -Dwith_egl=no -Dwith_glx=no gets a failure when run ninja test. Just enable this test when drm is enabled.
2020-02-23libs: surface: surfacepool: Add allocation flags in constructors.Víctor Manuel Jáquez Leal2-2/+3
2020-02-22test: avoid unused warning for test-displayHe Junyan1-1/+1
meson -Dwith_x11=yes -Dwith_wayland=no -Dwith_drm=no -Dwith_egl=no -Dwith_glx=no buildir generate unused warnings.
2020-01-15Remove all FEI relatedVíctor Manuel Jáquez Leal3-987/+0
FEI encoders are not actively mantained neither tested, and it is using infrastructure that is changing and FEI is stopping this effort. Also it is required to rethink how FEI can be used in GStreamer.
2020-01-06test: vaapioverlay: bail test if not availableVíctor Manuel Jáquez Leal1-1/+6
vaapioverlay is only registered if the VA driver support the blend operation. This patch only executes the test if vaapioverlay is available, otherwise the test is bail out without raising an error.
2020-01-06tests: vaapioverlay: force drm backendVíctor Manuel Jáquez Leal1-1/+1
2020-01-06tests: check: add basic vaapioverlay testU. Artie Eoff2-0/+214
Add test_overlay_position test to verify sink_1 input is overlayed onto sink_0 input at the appropriate position.
2019-12-20libs: surface: port to GstMiniObjectHe Junyan4-10/+11
GstVaapiMiniObject and GstVaapiObject are deprecated. This is the first step to remove them by porting GstVaapiSurface as a GstMiniBuffer descendant. Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
2019-12-20libs: image: port to GstMiniObject base classHe Junyan5-8/+8
GstVaapiMiniObject and GstVaapiObject are deprecrated. This is the first step to remove them, by porting GstVaapiImage as a GstMiniObject. Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
2019-12-17tests: check return calling of gst_navigation_event_parse.*Víctor Manuel Jáquez Leal1-5/+10
This issue was detected by Coverity. If the function returns an error value, the error value may be mistaken for a normal value. In cb_mouse_event: Value returned from a function is not checked for errors before being used
2019-12-10Do not mix declaration and codeThibault Saunier1-1/+1
2019-11-06libs: video-format: change GST_VIDEO_FORMAT_AYUV to VUYA.He Junyan1-1/+1
We only support VUYA format in gst vaapi now, need to correct the mapping.
2019-10-16tests: check: vaapipostproc test_orientation_mouse_eventsU. Artie Eoff1-0/+106
Test that vaapipostproc properly translates mouse events when using video-direction (orientation).
2019-10-16tests: check: vaapipostproc test_crop_mouse_eventsU. Artie Eoff2-1/+230
Test that vaapipostproc properly translates mouse events when cropping.
2019-10-16tests: check: initial unit test supportU. Artie Eoff3-0/+90
Add minimal unit test toolchain files and a simple vaapipostproc unit test.
2019-10-16tests: move examples and tests to subfoldersU. Artie Eoff41-82/+84
This makes way for adding unit (check) tests.
2019-10-14Remove autotools buildTim-Philipp Müller2-232/+0
2019-09-23libs: encoder: remove gst_vaapi_encoder_{ref,unref}()Víctor Manuel Jáquez Leal2-2/+2
Since GstVaapiEncoder is a descendant of of GstObject, there is no need to keep a custom ref()/unref() methods. This patch deletes them.
2019-08-20libs: remove surface's parent contextVíctor Manuel Jáquez Leal1-2/+1
In commit 18031dc6 surface's parent context is not assigned because of circular references. Since then (2013), there's has no issue with subpictures attached to a context, the current only users of this API. This patch cleans up all of related code with the unused surface's parent context.
2019-08-19libs: profile: add gst_vaapi_profile_get_va_name()Víctor Manuel Jáquez Leal1-1/+1
gst_vaapi_profile_get_name() returns a proper name for GstCaps. Nonetheless, there are many profiles which don't have a name representation for that realm. gst_vaapi_profile_get_va_name() returns the name of the profile according to its VAProfile name. This new funtion is used in the encoder error message.
2019-08-19test-vaapisink: also use vaapipostproc to change orientationVíctor Manuel Jáquez Leal1-9/+43
2019-06-03meson: Bump minimal GLib version to 2.44Niels De Graef1-5/+0
This means we can use some newer features and get rid of some boilerplate code using the G_DECLARE_* macros. As discussed on IRC, 2.44 is old enough by now to start depending on it.
2019-04-09meson: build test-vaapicontext when using X11Haihao Xiang1-0/+2
x11_dep and libva_x11_dep are optional and meson ignores these dependencies even if they are added into the dependency list. This fixes the error below when libva-x11 is not avaiblabe: cc -Itests/elements/tests@elements@@test-vaapicontext@exe -Itests/elements -I../../gstreamer-vaapi/tests/elements -I. -I../../gstreamer-vaapi/ -Igst-libs -I../../gstreamer-vaapi/gst-libs -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/orc-0.4 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/libdrm -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -fvisibility=hidden -fno-strict-aliasing -pthread -DHAVE_CONFIG_H -MD -MQ 'tests/elements/tests@elements@@test-vaapicontext@exe/test-vaapicontext.c.o' -MF 'tests/elements/tests@elements@@test-vaapicontext@exe/test-vaapicontext.c.o.d' -o 'tests/elements/tests@elements@@test-vaapicontext@exe/test-vaapicontext.c.o' -c ../../gstreamer-vaapi/tests/elements/test-vaapicontext.c ../../gstreamer-vaapi/tests/elements/test-vaapicontext.c:29:10: fatal error: va/va_x11.h: No such file or directory #include <va/va_x11.h>
2019-01-07meson: build h264 fei encoder if possibleHaihao Xiang1-0/+8
2019-01-07vaapi: bump the minimum vaapi version requirement to 0.39.0Haihao Xiang2-4/+0
And reduce unnecessary API version and structures check as well. https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/108
2018-12-24libs: window: remove custom ref() and unref()Víctor Manuel Jáquez Leal5-8/+8
Use gst_object_ref() and gst_object_unref() instead.
2018-12-15meson: Add gtk guardWonchul Lee1-10/+12
2018-11-05tests: check return value when using gst_buffer_map.Wangfei2-2/+4
https://bugzilla.gnome.org/show_bug.cgi?id=797366
2018-11-05build: meson: build examplesVíctor Manuel Jáquez Leal2-0/+99
2018-09-26tests: include sysdeps.h in compilation unitU. Artie Eoff1-1/+1
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=797204 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2018-09-26tests: fix compilationVíctor Manuel Jáquez Leal2-3/+2
https://bugzilla.gnome.org/show_bug.cgi?id=797204
2018-09-25tests: don's use sysdeps.h in headerVíctor Manuel Jáquez Leal1-1/+2
2018-09-25tests: remove already include string.hVíctor Manuel Jáquez Leal4-4/+0
Since sysdeps.h includes string.h there's no need to include it again.
2018-09-03libs: filter: remove custom ref() and unref()Víctor Manuel Jáquez Leal1-1/+1
Replacing them by gst_object_ref() and gst_object_unref() https://bugzilla.gnome.org/show_bug.cgi?id=796308
2018-09-03libs: decoder: remove gst_vaapi_decoder_unref()Víctor Manuel Jáquez Leal2-2/+2
Replaced by gst_object_unref() in tests https://bugzilla.gnome.org/show_bug.cgi?id=796308
2018-06-14libs: display: remove gst_vaapi_display_ref()Víctor Manuel Jáquez Leal1-1/+1
Replace it with gst_object_ref() https://bugzilla.gnome.org/show_bug.cgi?id=796470
2018-06-14libs: display: remove gst_vaapi_display_unref()Víctor Manuel Jáquez Leal10-22/+22
Use gst_object_unref() instead. https://bugzilla.gnome.org/show_bug.cgi?id=796470
2018-02-27tests: element: rewrite ROI testVíctor Manuel Jáquez Leal1-63/+137
Rewrote the ROI test to use GstVideoRegionOfInterest meta rather than injecting GstEvents. These meta are added as a pad probe in the queue src pad. Also * Use of navigation messages to control de test * Use signal watch for processing messages * Change to H265 rather than H264 since current intel-vaapi-driver only supports ROI on kabylake. TODO: add a parameter to change the encoder/decoder to test. https://bugzilla.gnome.org/show_bug.cgi?id=768248
2018-02-27Revert "tests: simple-encoder: add an option to set ROI"Víctor Manuel Jáquez Leal1-39/+0
This reverts commit c21345c4787bb6342adddea1190f53fe62abff04. https://bugzilla.gnome.org/show_bug.cgi?id=768248
2018-01-10tests: test-filter: fix dereference before null checkVíctor Manuel Jáquez Leal1-1/+2
Null-checking op_info suggests that it may be null, but it has already been dereferenced on all paths leading to the check. There may be a null pointer dereference, or else the comparison against null is unnecessary.
2018-01-10tests: y4mreader: fix string state checkupVíctor Manuel Jáquez Leal1-1/+1
str cannot be null in that moment, but it may be the end of string.
2018-01-10tests: y4mreader: use int for fgetcVíctor Manuel Jáquez Leal1-4/+2
Assigning the return value of fgetc to char truncates its value. It will not be possible to distinguish between EOF and a valid character.
2018-01-10tests: y4mreader: fix incompatible castVíctor Manuel Jáquez Leal1-6/+9
Passed pointer in parse_int() are unsigned int (32 bits, unsigned) but they are dereferenced as a wider long (64 bits, signed). This may lead to memory corruption.
2017-12-06test: vaapicontext: process have-context bus messageVíctor Manuel Jáquez Leal1-0/+40
2017-12-06test: vaapicontext: app context is not persistentVíctor Manuel Jáquez Leal1-1/+1
2017-09-22tests: display: use GObject getterVíctor Manuel Jáquez Leal1-74/+12
Instead of using the gst_vaapi_display_get_property(), this patch replaces it with g_object_get_property() to dump the available VA display properties. https://bugzilla.gnome.org/show_bug.cgi?id=788058
2017-09-22tests: test-display: remove display cache testsVíctor Manuel Jáquez Leal1-84/+0
Since commit ec3e10f6, display cache was removed. This patch removes this leftovers in the display test.