Tim-Philipp Müller
3f184c3abc
tests: include config.h and don't include unix headers
...
In many cases the unistd.h includes weren't actually needed.
Don't build tests that need it on windows with MSVC
(multifdsink, multisocketsink, pipelines/tcp).
Preparation for making tests work on Windows with MSVC.
2018-01-16 18:14:59 +00:00
Jan Schmidt
68565ec0fc
testsuite: Add some test checks for gst_video_guess_framerate()
2017-01-09 21:31:37 +11:00
Sebastian Dröge
47fdb15074
video-info: Add unit test for overflow checks
...
And also prevent overflows caused by allowing uint width/height in
gst_video_info_set_format() but storing them as (signed!) ints.
2016-11-24 15:40:22 +02:00
Nicolas Dufresne
7a40442ad5
video: Add VYUY pixel format
...
This format is sometimes the output of JPEG decoders. It is the same as
YUY2 and UYVY but with a different component order.
https://bugzilla.gnome.org/show_bug.cgi?id=767450
2016-11-01 19:55:20 +02:00
Nicolas Dufresne
afaa3f1380
video/test: Coding style fix
2016-09-07 14:24:54 -04:00
Stian Selnes
1335ccd228
video-color: Fix colorimetry IS_UNKNOWN
...
Fix issue with colorimetry default indicies not being in sync with the
actual table causing IS_UNKNOWN() to sometimes fail.
https://bugzilla.gnome.org/show_bug.cgi?id=767163
2016-06-02 17:14:50 +01:00
Joan Pau Beltran
abb88801e7
video: add IYU2 format
...
This existed in 0.10 and is needed by dc1394src.
IYU2 format is a YUV fully-sampled packed format similar to v308
but with different component order (U-Y-V instead of Y-U-V).
http://www.fourcc.org/yuv.php#IYU2
https://bugzilla.gnome.org/show_bug.cgi?id=763026#c5
2016-06-01 12:07:05 +01:00
Vineeth TM
b0b0536f91
tests:video: Fix overlay rectangle and buffer leak
...
Created overlay rectangle is not being freed in video tests
pix2 buffer is being created and not freed
https://bugzilla.gnome.org/show_bug.cgi?id=757927
2015-11-11 15:47:24 +01:00
Andreas Frisch
4a85438e5b
tests: Add a test for video blending over transparent frames
...
And fix the test_overlay_blend test where we blend over a
transparent frame and where expecting wrong results
https://bugzilla.gnome.org/show_bug.cgi?id=681447
2015-11-04 22:17:35 +01:00
Jan Schmidt
e57754be9b
tests: Fix video libs test for multiview GstVideoInfo change
...
The GstVideoInfo struct was changed late in integrating the
multiview changes, and I forgot to run and fix the unit test.
2015-06-11 12:21:08 +10:00
Jan Schmidt
7c1da700c4
video: Add multiview/stereo support
...
Add flags and enums to support multiview signalling in
GstVideoInfo and GstVideoFrame, and the caps serialisation and
deserialisation.
videoencoder: Copy multiview settings from reference input state
Add gst_video_multiview_* support API and GstVideoMultiviewMeta meta
https://bugzilla.gnome.org/show_bug.cgi?id=611157
2015-06-11 12:05:00 +10:00
Tim-Philipp Müller
c53ba4beeb
Fix double semicolons
2015-03-10 09:27:08 +00:00
Wim Taymans
72fd1345ad
check: add another generic converter test
...
Run conversion and scaling with borders.
2015-03-04 12:29:45 +01:00
Wim Taymans
e0a192d3dd
video-converter: don't reuse the input line when adding borders
...
When we need to add borders, we need a writable input line, so
don't reuse the source memory directly.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=745207
2015-03-04 12:29:45 +01:00
Edward Hervey
ff57f69134
video: Fix non-default usage of gst_video_sink_center_rect
...
Make sure we take into account non-0 x/y destination rectangles
2014-12-15 14:11:07 +01:00
Tim-Philipp Müller
c61604fd9b
tests: fix leak in video unit test
2014-11-16 13:56:16 +00:00
Vineeth T M
7f5aa9af04
tests: video: add video blend test
...
Add test to check rendering of overlays of different sizes
that are completely or partially outside the video surface.
Once the overlay is blended to the video, verify if the
position of the blended overlay is as expected, by comparing
the pixels of the blended video with the expected values.
https://bugzilla.gnome.org/show_bug.cgi?id=739281
2014-11-16 13:51:34 +00:00
Wim Taymans
b73096ce8c
video-color: add gamma encode/decode functions
...
Add functions to encode and decode gamma.
Add unit test to check that encode and decode are eachothers inverse
and that the limits are respected.
2014-11-11 16:11:15 +01:00
Wim Taymans
6711c50495
test: add scaling test
...
Sort pack and unpack performance measurements
2014-11-10 14:53:13 +01:00
Wim Taymans
39662d0393
video-chroma: ORCify 2x vertical upsampling
...
Make an ORC version of the 2x vertical upsampling code.
Improve unit tests, test chroma up and down sampling.
memset buffer in conversion to make valgrind happy.
2014-11-07 12:13:28 +01:00
Wim Taymans
3fde8dd746
tests: add video conversion test
...
Go through all conversions and make a list of performance.
2014-11-06 18:19:44 +01:00
Wim Taymans
21f57317bb
video-chroma: optimize chroma subsampling a little
...
Combine multiplies in 4x filters.
Rename conversion functions to make them nicer in orc.
Add ORC versions for various downsampling algorithms
Add unit test chroma resampler
2014-11-06 13:08:42 +01:00
Wim Taymans
64c1303dd0
tests: make pack/unpack test
...
Make a more complete pack/unpack test, check if the image after
pack/unpack has the same color and precision, and has correctly
duplicated subsampled pixels.
2014-11-06 10:45:13 +01:00
Wim Taymans
4ab5a29e46
tests: get the correct number of video formats
...
Make a method to get the number of formats (including the last one).
2014-11-06 10:45:13 +01:00
Wim Taymans
f5b9a26e0d
tests: fix test
2014-10-30 14:48:45 +01:00
Wim Taymans
fcc7fbd460
resampler: make shift easier to use
2014-10-29 16:26:10 +01:00
Wim Taymans
32047eaac0
video-scaler: add extra options
2014-10-29 16:26:10 +01:00
Wim Taymans
199fab4b06
video-scaler: add video scaler helper object
...
Add a video scaler object build on top of the resampler. It has
implementation to deal with interlaced video as well as horizontal and
vertical scaling functions.
2014-10-29 16:26:10 +01:00
Thiago Santos
fb3a9d1bc5
video: avoid overflows when doing int operations for size
...
size is a gsize, so cast the operands to it to avoid overflows
and setting wrong value to the video size.
Includes tests.
https://bugzilla.gnome.org/show_bug.cgi?id=731195
2014-06-09 23:38:39 -03:00
Sebastian Dröge
7bdaa49fa3
video: And check comparison for real
2014-05-21 10:43:49 +02:00
Sebastian Dröge
f8b367212d
video: Fix broken comparison in unit test
...
libs/video.c:540:50: error: comparison of constant 2 with boolean expression is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
&& !GST_VIDEO_INFO_N_PLANES (&vinfo) > 2) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
2014-05-21 10:40:32 +02:00
Tim-Philipp Müller
61bc909189
tests: fix some printf format compiler warnings
2013-03-31 17:37:36 +01:00
Tim-Philipp Müller
d730b0c296
tests: add test for video unpack and pack functions
2012-11-09 23:41:16 +00:00
Tim-Philipp Müller
5f59b4f7ee
Fix FSF address
...
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-03 23:05:09 +00:00
Tim-Philipp Müller
b36dba0577
tests: fix video overlay_composition_premultiplied_alpha test on big-endian machines
...
The unit test was checking for alpha at the wrong position.
2012-10-07 19:46:45 +01:00
Mark Nauwelaerts
cd2e795154
videooverlaycomposition: add some _get_argb and _get_ayuv functions
...
... that will handle automatic conversion to indicated format.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=683180
2012-09-05 10:15:51 +02:00
Mark Nauwelaerts
89228e911c
videooverlaycomposition: allow more formats for rectangle pixel data
...
... adding AYUV, and allowing for ARGB or RGBA endian-independent.
2012-08-30 12:12:39 +02:00
Mark Nauwelaerts
f89c7b605f
videooverlaycomposition: replace API parameters with required video meta on pixel data
2012-07-17 18:08:11 +02:00
Mark Nauwelaerts
bcc5a89a98
videooverlaycomposition: make API meta oriented
...
... and as such more consistent with other buffer meta components.
2012-07-03 14:27:35 +02:00
Mark Nauwelaerts
d37422da2b
tests: video: port video overlay composition test to 0.11
2012-07-02 14:34:14 +02:00
Mark Nauwelaerts
563d3dd0f6
tests: video: ensure initialization and plug sample leak
2012-07-02 14:34:14 +02:00
Mark Nauwelaerts
c849c9c66b
tests: video: tweak RGB caps test
2012-07-02 14:34:14 +02:00
Sebastian Dröge
d21591ff36
video: Fix build of unit test
2012-06-04 13:07:36 +02:00
Edward Hervey
d7fff5e023
check: Update video test for GST_VIDEO_FORMAT_ENCODED
2012-05-25 16:07:01 +02:00
Edward Hervey
71166456d0
tests: Properly disable non-ported tests
2012-03-29 17:42:50 +02:00
Sebastian Dröge
9e13d70b2c
Merge remote-tracking branch 'origin/0.10'
...
Conflicts:
gst-libs/gst/video/video-overlay-composition.c
tests/check/libs/video.c
2012-03-29 15:00:22 +02:00
Tim-Philipp Müller
3242f55861
test: fix leak in video overlay composition unit test
...
gst_buffer_set_qdata() will leak the structure passed to it
when called incorrectly (e.g. on a non-metadata-writable buffer).
This is expected, but we must avoid doing that in valgrind.
2012-03-25 13:35:23 +01:00
Holger Kaelberer
9d1b331004
tests: add unit test for video overlay composition global alpha support
...
https://bugzilla.gnome.org/show_bug.cgi?id=668483
2012-03-25 11:27:24 +01:00
Wim Taymans
32bd12dba9
Merge branch 'master' into 0.11
...
Conflicts:
.gitignore
common
configure.ac
ext/vorbis/gstvorbisdeclib.h
gst-libs/gst/audio/gstaudioencoder.c
gst-libs/gst/riff/riff-read.c
gst/playback/gstplaysink.c
gst/playback/gstplaysinkconvertbin.c
tests/check/libs/video.c
2012-03-22 11:35:13 +01:00
Tim-Philipp Müller
87a9e5634e
tests: add unit test for premultiplied alpha handling of video overlay rectangles
...
https://bugzilla.gnome.org/show_bug.cgi?id=668483
2012-03-14 18:04:38 +00:00