Sebastian Dröge
b9d8d83ca4
gtk: Add missing CFLAGS to example
2015-06-11 14:58:27 +02:00
Matthew Waters
23fb666dd7
Implement gtk sinks
...
two sinks are provided. gtksink which is a cairo/software based renderer
and gtkglsink which utilises the GL support in gtk and gstreamer.
2015-06-11 22:01:03 +10:00
Florin Apostol
8b18be5bfb
tests: dashdemux: add unit tests for checking the parsing of MPD element
...
Create a dash test target and add unit tests that check the parsing of
attributes of the MPD element and the following child elements:
- baseURL
- program information
- location
- metrics
These tests check the compliance of parts of the MPD parser in the
dashdemux element against the DASH specification [1].
[1] http://standards.iso.org/ittf/PubliclyAvailableStandards/c065274_ISO_IEC_23009-1_2014_Electronic_inserts.zip
http://standards.iso.org/ittf/PubliclyAvailableStandards/c065274_ISO_IEC_23009-1_2014.zip
https://bugzilla.gnome.org/show_bug.cgi?id=750390
2015-06-08 13:17:49 -03:00
Stefan Sauer
4243db850c
zbar: split test
...
Lets not cram everything into a single test - this would render the test name
useless for quick diagnosis. Having separate tests for the optional feature is
also verifying the behaviour when the feature is off.
2015-06-07 16:27:13 +02:00
Thiago Santos
045bfa10fe
Fix a common typo: retreive -> retrieve
...
Seems to have been copy pasted around a few places
2015-06-05 09:43:35 -03:00
Julien Isorce
6d04b62e85
gl/example: fix build error when compiling cocoa-videooverlay
...
libtool: error: ignoring unknown tag OBJC
and
clang: error: argument unused during compilation: '-pthread'
2015-06-04 08:04:13 +01:00
Luis de Bethencourt
16f61e7b2d
examples: gst-camerabin2-test: protect from division by zero
...
Highly unlikely to have 0 captures, but protect from crashes in the future by
doing none of the math if there is no data.
2015-06-03 14:58:13 +01:00
Olivier Crête
06d9b61fc2
tests: audiointerleave: test not setting positions
...
Disable "channel-positions-from-input", but without actually giving
a position table, so every position should be NONE
2015-06-02 15:45:13 -04:00
Olivier Crête
8dcb1c6df6
tests: Fix indentation in audiointerleave test
2015-06-02 15:44:57 -04:00
Edward Hervey
e899abea14
check: Use GST_CHECK_MAIN () macro everywhere
...
Makes source code smaller, and ensures we go through common initialization
path (like the one that sets up XML unit test output ...)
2015-06-02 16:04:40 +02:00
Reynaldo H. Verdejo Pinochet
8f2b65c74d
tests: zbar: check for frame field on attach-frame=true
...
Also check for the sample to have a buffer and caps
associated with it.
Related to:
https://bugzilla.gnome.org/show_bug.cgi?id=747557
2015-06-01 12:33:41 -03:00
Edward Hervey
5fe88f7ed7
examples: Fix gl usage without wayland support
...
Not all platforms have wayland support. Handle that gracefully at
compile time
2015-06-01 14:05:06 +02:00
Matthew Waters
5f0c006a82
gl/examples: update gtk examples for glupload
2015-05-31 16:09:34 +10:00
Matthew Waters
21cbf763b0
gl/examples: update gtk examples for wayland
2015-05-31 16:09:34 +10:00
Matthew Waters
349685ad27
tests/gl/gtk: implement setting a wayland display/surface
2015-05-31 16:04:13 +10:00
Jan Schmidt
cdff13e07b
Fix flags order in GL examples for uninstalled build
2015-05-21 13:42:35 +10:00
Matthew Waters
904cdf3f58
tests/gl: fix typo
2015-05-14 18:35:35 +10:00
Matthew Waters
0870e8785e
gl: remove useless gl{En,Dis}able (GL_TEXTURE_*) calls
...
We are using shaders everywhere and so they are not needed
2015-05-14 16:42:09 +10:00
Matthew Waters
c519169052
compositor: fix rectangle obscure test to clamp against the output frame size
...
Rather than one of the input pad video info's.
The test checking this was not constraining the output frame size
to ensure that the out of frame stream was not being displayed.
2015-05-13 17:44:30 +10:00
Nirbheek Chauhan
105a5cce92
tests: Add a check for the new compositor pad-is-obscured optimization
...
We verify that all the buffers on an obscured sinkpad are skipped by overriding
the map() function in the GstVideoMeta of the buffers to set a variable when
called. We also test that the buffers do get mapped when they're not obscured.
Blame^WCredit for the GstVideoMeta map() idea goes to Tim.
https://bugzilla.gnome.org/show_bug.cgi?id=746147
2015-05-01 11:57:00 +01:00
Thiago Santos
cb56a6b32b
examples: gst-camera: add zoom property to UI
...
Add a slider to modify the zoom in camerabin
2015-04-27 21:14:09 -03:00
Thiago Santos
31b1348559
examples: gst-camera: remove widgets deprecated in GTK3.0
...
VBox and HBox are now simply Box
2015-04-27 21:14:09 -03:00
Thiago Santos
a1a58d438f
examples: gst-camera: update to GTK3
...
When opening the .ui file it complains about being for GTK 2 and
automatically updates it to GTK3. Commit this version and update
the makefile
2015-04-27 21:14:09 -03:00
Tim-Philipp Müller
0ff70da6bc
examples: motioncells: remove GPL3 code we don't need
...
If 95% of the code of an example app consists of GObject
code, maybe that's defeating the point a little. So just
remove a lot of that and trim down the example to the
absolute minimum. Also removes the last remaining GPL3
licensed code in -bad.
2015-04-25 13:44:01 +01:00
Tim-Philipp Müller
b800bba76a
examples: motioncells: simplify property setting
2015-04-25 13:44:01 +01:00
Tim-Philipp Müller
d531f908e5
examples: motioncells: port to 1.x
2015-04-25 13:44:01 +01:00
Robert Jobbagy
0f4ecf52ad
examples: motioncells: relicense opencv example to LGPLv2
2015-04-25 13:43:54 +01:00
Thiago Santos
dd2dba632e
tests: camerabin: add tests for GstPhotography image capture
...
GstPhotography enables new paths in wrappercamerabinsrc that allows
the source to be notified about the capture caps and provide an
alternative caps if desired bypassing the negotiation (this doesn't
seem like a good idea these days). To make sure it keeps working
until we remove it from the API in favor of standard caps negotiation
features this test was added.
It adds 3 extra tests with a simple test source that will:
1) Test that capturing with ANY caps work
2) Test that capturing with a fixed caps work
3) Test that capturing with a fixed caps and having the source
pick a different resolution from GstPhotography API works
by having wrappercamerabinsrc crop the capture to the final
requested dimensions
2015-04-24 15:12:47 -03:00
Thiago Santos
de5f0dd221
camerabin: tests: remove unused macros
...
Those macros were with the wrong name (likely a copy n paste mistake)
and were unused.
2015-04-24 15:12:46 -03:00
Thiago Santos
7774126c5d
tests: camerabin: remove obsolete check for 0.10 feature
2015-04-24 15:12:46 -03:00
Tim-Philipp Müller
179444efad
tests: define GST_CHECK_TEST_ENVIRONMENT_BEACON
...
Make sure the test environment is set up.
https://bugzilla.gnome.org//show_bug.cgi?id=747624
2015-04-23 16:40:49 +01:00
Thiago Santos
87e306fe4a
tests: camerabin: add test for capture with different caps
...
Adds a test to verify that viewfinder and image capture caps
can be set to non-intersecting caps and still work.
https://bugzilla.gnome.org/show_bug.cgi?id=724868
2015-04-21 10:00:44 -03:00
Vincent Penquerc'h
d8dd4bea00
tests: fix type mismatch in varargs passing
...
A bitmask is 64 bits, but integer immediates are passed as int
in varargs, which happen to be 32 bit with high probability.
This triggered a valgrind jump-relies-on-uninitalized-value
report well away from the site, since it doesn't trigger on
stack accesses, and there must have been enough zeroes to stop
g_object_set at the right place.
2015-04-09 16:20:44 +01:00
Edward Hervey
fe9a87d563
check: Don't run the state change test on the dtls elements
...
There isn't really any way to test the elements standalone.
2015-04-09 15:41:57 +02:00
Edward Hervey
fdae6af7de
tests: Use AM_TESTS_ENVIRONMENT
...
Needed by the new automake test runner
2015-04-08 16:46:11 +02:00
Reynaldo H. Verdejo Pinochet
b31f3a88e4
aggregator: fix typo in test suite
2015-04-03 18:17:35 -03:00
Reynaldo H. Verdejo Pinochet
b24971f2dd
aggregator: add gap event handling unit test
...
https://bugzilla.gnome.org/show_bug.cgi?id=746249
2015-04-03 18:17:35 -03:00
Olivier Crête
34a921c31b
audiomixer: Allow downstream caps with a non-default channel-mask
...
Instead of failing, take the downstream channel mask if the channel
count is 1.
2015-04-01 20:32:41 -04:00
Olivier Crête
84eff5cca9
audiointerleave: Add unit tests
...
Almost a copy of the "interleave" unit tests, improved to support
the thread on the src pad on GstAggregator.
https://bugzilla.gnome.org/show_bug.cgi?id=740236
2015-03-16 16:44:03 -04:00
Tim-Philipp Müller
ec6e93d45f
tests: mpegtsmux: add test for keyframe/delta flag propagation
...
The first output MPEG-TS packet that corresponds to a video input
buffer which had the delta flag cleared (i.e. was a keyframe)
should have the delta flag cleared as well.
This is needed e.g. by tcpserversink in order to keep track
of the last keyframe and be able to burst data to newly-
connected clients.
https://bugzilla.gnome.org/show_bug.cgi?id=706872
2015-03-15 15:54:01 +00:00
Tim-Philipp Müller
ab52bfbfa6
tests: mpegtsmux: add unit test for "alignment" property
...
https://bugzilla.gnome.org/show_bug.cgi?id=722129
2015-03-15 12:07:53 +00:00
Matthew Waters
199f9bd194
gl/examples: fixup generic cube example for NDC
...
translating outside the clip region doesn't work
2015-03-14 18:12:38 +00:00
Julien Isorce
7dd3a2ec9e
gl/examples: add sdlshare2 that uses glimagesink to output textures
...
https://bugzilla.gnome.org/show_bug.cgi?id=739681
2015-03-14 17:56:39 +00:00
Julien Isorce
0150255a46
glimagesink: provide GstSample in client-draw signal
...
Instead of prividing texture and size directly.
And apply changes to examples.
https://bugzilla.gnome.org/show_bug.cgi?id=739681
2015-03-14 17:56:21 +00:00
Julien Isorce
94d4ae1840
sdlshare: use glupload and unmap frame
2015-03-14 17:42:40 +00:00
Julien Isorce
5667d34182
examples: initialize NSApp at the beginning
2015-03-14 08:37:52 +00:00
Matthew Waters
e5debcaff4
gl/tests: fix deadlock on glcontext wrapped context test
2015-03-13 12:30:20 +00:00
hoonhee.lee
3beb48162f
tests: glcontext: remove unnecessary semicolon
...
https://bugzilla.gnome.org/show_bug.cgi?id=745875
2015-03-09 08:41:25 +01:00
Nicolas Dufresne
56d4ff8773
gl-test: Port unit tests to new API
2015-03-01 00:08:42 -05:00
Luis de Bethencourt
b383ae0fbd
jpegparse: interlaced doesn't mean progressive scan
...
Removing interlaced variable since it is meant to mean progressive scan
and that isn't used.
2015-02-24 18:50:28 +00:00
Luis de Bethencourt
e45db8ca1e
Revert "tests: check jpegparse for progressive marker"
...
This reverts commit 1c77d12ce8
.
"interlaced" in the caps don't mean the same thing as the SOF2 marker in the
JPEG format. This test passes because of broken behaviour.
2015-02-24 18:38:31 +00:00
Luis de Bethencourt
1c77d12ce8
tests: check jpegparse for progressive marker
2015-02-24 17:42:15 +00:00
Matthew Waters
e505f6257c
applemedia: new AVSampleBufferLayerSink
...
Renders buffers using the CALayer subclass AVSampleBufferDisplayLayer
which can be placed inside a Core Animation render tree.
2015-02-24 19:12:10 +11:00
Luis de Bethencourt
59db1789cf
mxf-example: don't quit on Warning
...
Don't quit on Warning.
Print out a message when there is an Error or Warning.
2015-02-21 18:56:23 +00:00
Luis de Bethencourt
40b5f02dc6
mxf-example: always show gtk window
...
Show gtk window even when there are no tags, to always have visual feedback
about the pipeline running.
2015-02-21 18:56:23 +00:00
Luis de Bethencourt
d240c98225
mxf-example: merge returns in g_value_to_string()
2015-02-21 18:56:23 +00:00
Luis de Bethencourt
7d058c8523
mxf-example: make bus_callback consistent
...
Simplify the bus_callback to make it consisten with other examples.
2015-02-21 18:56:04 +00:00
Luis de Bethencourt
4e45b86ed8
mxf-example: fix usage of argc and argv
2015-02-21 17:18:02 +00:00
Luis de Bethencourt
9454e42db0
camerabin examples: remove unneeded variable
...
ret is only used once, we don't need to store it in a variable for that.
2015-02-21 17:02:18 +00:00
Alex Ashley
a08dd85608
hlsdemux: select correct starting position for live streams
...
When playing live HLS streams, the media playback starts from the
beginning of the media playlist. When playing a live HLS stream,
media playback should start from 3 fragments from the end of the
playlist.
See section 6.3.3. of the HLS draft [1]
This commit changes the logic to select 3 fragments from the end when
playing a live stream.
[1] http://tools.ietf.org/html/draft-pantos-http-live-streaming-12#page-29
https://bugzilla.gnome.org/show_bug.cgi?id=727742
2015-02-20 19:00:01 -03:00
Tim-Philipp Müller
3c2ee8ece5
aggregator: use new gst_aggregator_pad_drop_buffer()
2015-02-13 16:25:45 +00:00
Tim-Philipp Müller
9c21327a8d
tests: remove GST_DISABLE_PARSE guards from two tests that don't require it
2015-02-13 16:25:14 +00:00
Song Bing
629b350806
camerabin examples: memory leak in camerabin examples code
...
should unref caps after set to profile. profile will ref it.
https://bugzilla.gnome.org/show_bug.cgi?id=744219
2015-02-10 15:48:26 -03:00
Song Bing
2d0e6d96c6
camerabin examples: memory leak in camerabin examples code
...
should unref after set object. The object will be refed when set
property.
https://bugzilla.gnome.org/show_bug.cgi?id=744219
2015-02-10 15:48:26 -03:00
Tim-Philipp Müller
337bff3c82
tests: compositor: add unit test for proper segment.base handling
...
As adjusted by gst_pad_set_offset(), or when doing segment seeks
or looping for example.
2015-02-05 15:48:41 +00:00
Tim-Philipp Müller
689f627412
tests: audiomixer: add unit test for proper segment.base handling
...
As adjusted by gst_pad_set_offset(), or when doing segment seeks
or looping for example. See previous audiomixer commit.
2015-02-05 15:23:04 +00:00
Matthew Waters
438b83c9fc
gl: update unit test for glmemory api change
2015-01-30 18:51:17 +11:00
Thibault Saunier
d8eef43123
aggregator: Hide GstAggregatorPad buffer and EOS fileds
...
And add a getter for the EOS.
The user should always use the various getters to access
those fields
https://bugzilla.gnome.org/show_bug.cgi?id=742684
2015-01-29 10:24:18 +01:00
Olivier Crête
fb6ba27ae5
audiomixer: Make flush start/stop test non-racy
...
The flush stop could have happened between the source trying
to push the segment event and the buffer, this would cause a warning.
Prevent that by taking the source's stream lock while flushing.
https://bugzilla.gnome.org/show_bug.cgi?id=742684
2015-01-29 10:24:18 +01:00
Olivier Crête
f98e457f99
audiomixer: Replace racy timeout based tested with drain query
...
Using the drain query, we can be certain that the buffer has done going
through the aggregator by taking the stream locks.
https://bugzilla.gnome.org/show_bug.cgi?id=742684
2015-01-29 10:24:18 +01:00
Olivier Crête
94e2d78479
audiomixer: Avoid race in caps negotiation
...
With the current audiomixer, the input caps need to be the same,
otherwise there is an unavoidable race in the caps negotiation. So
enforce that using capsfilters
https://bugzilla.gnome.org/show_bug.cgi?id=742684
2015-01-29 10:24:18 +01:00
Matthew Waters
75b808d072
gl/tests: update glwindow api change
2015-01-23 17:27:42 +11:00
Matthew Waters
bf87ac8cbe
gl/qt/examples: update for NSOpenGL -> CGL change
2015-01-23 16:12:24 +11:00
Matthew Waters
d5c3693791
gl: split glcolorconvert usage from glupload
...
the separation allows the transfer operation to occur in a separate
thread/time which may increase performance in specific circumstances.
2015-01-14 22:22:13 +11:00
Matthew Waters
4c73e20553
glcontext: allow wrapped contexts to be utilised like non-wrapped contexts
...
Fill in the missing pieces like get_proc_address, the gl function vtable
2015-01-13 15:18:41 +11:00
Stefan Sauer
4732962c85
gitignore: ignore more files
2015-01-12 22:52:36 +01:00
Mark Nauwelaerts
824f6a3f48
tests: nodist for orc generated code
2015-01-02 14:32:54 +01:00
Tim-Philipp Müller
ad25461dac
tests: gdpdepay: update for internal gdp refactoring
...
This test uses some internal/private API, so needs to
be updated for recent changes.
2014-12-26 13:44:35 +00:00
Tim-Philipp Müller
c184a4bb04
gdppay: refactor a little
...
Get rid of now-useless packetizer struct and just
call internal functions directly. Also remove
version property which is now defunct, not least
because we create the packetizer with the
version in the init function before a version
can be set.
2014-12-26 13:44:32 +00:00
Tim-Philipp Müller
3e74746d72
tests: gdppay: initialise memory of buffers used in unit test
2014-12-26 13:44:32 +00:00
Sebastian Dröge
7c575af6df
audiomixer: Change blocksize property to output-buffer-duration in time format
...
This makes the interface of audiomixer independent of the actual caps.
2014-12-23 11:45:50 +01:00
Nicolas Dufresne
046639ddaa
gltest: Port to new API
...
https://bugzilla.gnome.org/show_bug.cgi?id=740900
2014-12-19 13:19:34 -05:00
Sebastian Dröge
d4c4af699e
aggregator: Add a timeout parameter to ::aggregate()
...
When this is TRUE, we really have to produce output. This happens
in live mixing mode when we have to output something for the current
time, no matter if we have enough input or not.
2014-12-17 18:41:41 +01:00
Sebastian Dröge
e82ec36863
audiomixer: Add queues after the (live) sources in the unit test
2014-12-17 18:41:41 +01:00
Tim-Philipp Müller
9d79b65a55
tests: fix aggregator unit test after property renaming
2014-12-16 19:49:56 +00:00
Sebastian Rasmussen
01dc7edd8b
tests/aggregator: Use correct type when setting property
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=741495
2014-12-14 11:29:19 +01:00
Olivier Crête
8cddfe6477
rtponviftimestamp: Automatically discover the ntp-offset by default.
...
This only works if no packets are pushed in before the pipeline goes
to playing. So it helps to have a live source.
https://bugzilla.gnome.org/show_bug.cgi?id=731769
2014-12-11 16:28:43 -05:00
Guillaume Desmottes
189005184c
add rtponvifextract element
...
https://bugzilla.gnome.org/show_bug.cgi?id=731769
2014-12-11 14:00:59 -05:00
Guillaume Desmottes
b424b72df1
add rtponviftimestamp element
...
https://bugzilla.gnome.org/show_bug.cgi?id=731769
2014-12-11 14:00:59 -05:00
Matthew Waters
996f193547
gl/examples: fixup sdl example for gluPerspective removal
2014-12-11 19:41:23 +11:00
Julien Isorce
91efa58371
tests: add glimagesink unit test to .gitignore
2014-12-03 07:46:50 +00:00
Thijs Vermeir
6215b5dd14
gl/cocoa: Fix example on Mac OS X 10.10
...
Using NSApp directly seems to confuse something, as the compiler
was expecting an id<NSFileManagerDelegate>. Switched to using
[NSApplication sharedApplication], and specified the delegate
protocol on the window class as well.
Similar to https://bugzilla.gnome.org/show_bug.cgi?id=738740
2014-12-01 10:59:32 +01:00
Matthew Waters
6bd1150ca8
gl: remove the use of glu
2014-11-28 09:14:26 +11:00
Matthew Waters
810d38c29f
glupload: rearchitecture for non GLMemory inputs/outputs
...
Allows other memory types to be implemented/returned/used by the caller.
2014-11-23 17:13:36 +11:00
Sreerenj Balachandran
b8a2f46a88
examples: relicense opencv gsthanddetect_test to LGPLv2+
...
The GPL3 license header was copy'n'pasted from a
neighbouring source file by mistake, the original
code was not GPL3 licensed, but fell under the
default GStreamer license, which is LGPLv2+.
https://bugzilla.gnome.org/show_bug.cgi?id=685655
2014-11-17 09:20:19 +00:00
Hyunjun Ko
fec8d4e7b2
opencv-example: Use g_snprintf instead of sprintf
...
https://bugzilla.gnome.org/show_bug.cgi?id=739846
2014-11-17 00:47:28 +00:00
Sebastian Dröge
13c8517570
gl/cocoa: Remove GNUStep support
...
Until gcc and GNUStep properly support Objective-C blocks and other
"new" features of Objective-C we can't properly support them without
making the code much more ugly.
https://bugzilla.gnome.org/show_bug.cgi?id=739152
2014-11-13 12:01:19 +01:00
Julien Isorce
92796446a2
tests: add CFLAGS and LADD for glimagesink unit test
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732694
2014-11-12 12:33:11 +01:00
Julien Isorce
7bb1ea7094
gl: add unit test that checks for glimagesink drain query handling
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732694
2014-11-12 00:09:21 +00:00
Sebastian Dröge
67bc805a8d
tests: Add x265enc unit test to .gitignore
2014-11-10 16:01:25 +01:00