Commit graph

910 commits

Author SHA1 Message Date
Tim-Philipp Müller
7892e1e22f videoscale: fix 4-tap scaling for 64-bpp formats
Fix invalid memory access caused by broken pointer arithmetic.

If we have a uint16_t *tmpbuf and add n * dest->stride to it, we
skip twice as much as we intended to because dest->stride is in
bytes and not in pixels. This made us write beyond the end of
our allocated temp buffer, and made the unit test crash.
2012-08-04 22:05:21 +01:00
Tim-Philipp Müller
063dc1712e tag: fix up EXIF writer for GstBuffer -> GstSample 2012-07-28 11:54:38 +01:00
Wim Taymans
dfbe9b43c7 tests: add audio and video orc tests 2012-07-24 09:26:42 +02:00
Tim-Philipp Müller
90d86b542b tests: use multifdsink for streamheader test
Use multifdsink for pipes instead of multisocketsink,
to avoid "creating GSocket from fd 9: Socket operation
on non-socket "criticals from Gio. Test still fails,
but it fails in a different way now.
2012-07-20 10:05:03 +01:00
Mark Nauwelaerts
f89c7b605f videooverlaycomposition: replace API parameters with required video meta on pixel data 2012-07-17 18:08:11 +02:00
Wim Taymans
11a494d5c9 rtp: Add support for multiple memory blocks in RTP
Add support RTP buffers with multiple memory blocks. We allow one block for the
header, one for the extension data, N for data and one memory block for the
padding.
Remove the validate function, we validate now when we map because we need to
parse things in order to map multiple memory blocks.
2012-07-17 16:41:36 +02:00
Tim-Philipp Müller
a0a9ebba43 tests: add videoconvert test that checks formats in template caps 2012-07-17 00:35:28 +01:00
Tim-Philipp Müller
94a9bf10f3 tests: no need to blacklist 64-bit formats in videoscale test any longer
Since we now use videoconvert, which supports these.

Unfortunately videoscale still crashes with 64-bit formats
right now because of a too small temp buffer, but I'm sure
someone is going to fix this real soon now, just like the
other unit tests.
2012-07-17 00:31:57 +01:00
Tim-Philipp Müller
73330fc568 tests: add videoscale test to check pad template formats 2012-07-17 00:31:14 +01:00
Stefan Sauer
2f8b9829c7 adder: add a tests for the aggregation of durations 2012-07-16 11:27:57 +02:00
Stefan Sauer
ff120f6aa9 adder: cleanup test
Use right type for StateChangeReturn and avoid needless G_OBJECT casts.
2012-07-16 11:27:57 +02:00
Tim-Philipp Müller
f46c383818 tag: use GST_TAG_DATE_TIME for storing dates instead of GST_TAG_DATE
So we can express partial dates.
2012-07-15 00:14:36 +01:00
Tim-Philipp Müller
a1d1bd0517 tag: extract year from ID3v1 tag as GstDateTime instead of GDate
So we can signal properly that only the year is valid.
2012-07-14 15:34:56 +01:00
Stefan Sauer
7921f4b26e tests: use more expressive check assertion macros 2012-07-09 19:59:53 +02:00
Tim-Philipp Müller
31a5359fb7 tests: update GstVideoFilter structure size for ABI check on x86 2012-07-09 14:37:11 +01: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
Tim-Philipp Müller
3a1b53c117 tests: update unit test for vorbistag change to GST_TAG_DATE_TIME
https://bugzilla.gnome.org/show_bug.cgi?id=677712
2012-06-27 23:50:07 +01:00
Sebastian Dröge
233622437f elements: Use gst_pad_set_caps() instead of manual event fiddling 2012-06-08 15:51:06 +02:00
Sebastian Dröge
d21591ff36 video: Fix build of unit test 2012-06-04 13:07:36 +02:00
Tim-Philipp Müller
fa832bedb8 tests: don't use GstStructure API on tag lists 2012-05-26 19:56:48 +01:00
Edward Hervey
d7fff5e023 check: Update video test for GST_VIDEO_FORMAT_ENCODED 2012-05-25 16:07:01 +02:00
Edward Hervey
f840383a1a tests: Update ABI libs structure 2012-05-25 16:07:01 +02:00
Wim Taymans
29d24d4658 playbin: add current-*uri properties
Make the uri property getter return the next uri, like it was configured in the
setter.
Make a new current-uri and current-suburi property that reflects the currently
playing uri and suburi.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676665
2012-05-25 15:18:46 +02:00
Tim-Philipp Müller
7e00aca2eb tests: update audiocdsrc test for stricter URI protocol checking incore 2012-05-01 23:09:22 +01:00
Tim-Philipp Müller
f342d956af tests: fix libscpp compilation
Don't include marshaller headers that have gone away and/or
aren't public headers anyway so don't need to be tested for
C++ compiler compatibility.
2012-04-28 19:16:52 +01:00
Stefan Sauer
ad090a612d volume: add a control point for the test 2012-04-25 20:09:17 +02:00
Stefan Sauer
bcbb58ccbd volume: cast outputs to correct type before comparing 2012-04-25 20:09:17 +02:00
Stefan Sauer
0d50fc03cc tests: initialize variables 2012-04-25 09:23:28 +02:00
Sebastian Dröge
a0e3a9e32d Merge remote-tracking branch 'origin/0.10'
Video base classes and theora plugin still needs to be ported again

Conflicts:
	docs/libs/gst-plugins-base-libs-docs.sgml
	docs/libs/gst-plugins-base-libs-sections.txt
	docs/libs/gst-plugins-base-libs.types
	ext/theora/gsttheoradec.c
	ext/theora/gsttheoradec.h
	ext/theora/gsttheoraenc.c
	ext/theora/gsttheoraenc.h
	gst-libs/gst/video/Makefile.am
	gst-libs/gst/video/video.c
	gst-libs/gst/video/video.h
	gst/playback/gsturidecodebin.c
	tests/check/libs/video.c
	tests/check/pipelines/theoraenc.c
	win32/common/libgstvideo.def
2012-04-24 18:14:31 +02:00
Edward Hervey
416029a006 tests: Remove theoraenc discont test
It should be fixed differently, see
https://bugzilla.gnome.org/show_bug.cgi?id=663262
2012-04-24 17:03:41 +02:00
Edward Hervey
8f00d76c97 video: Backport GstVideoInfo/GstVideoFormatInfo from 0.11 2012-04-24 10:44:44 +02:00
Mark Nauwelaerts
8f2a048e5f Revert "tests: TEMP"
This reverts commit e9fbabbb86.
2012-04-16 17:03:01 +02:00
Mark Nauwelaerts
e9fbabbb86 tests: TEMP 2012-04-16 16:30:46 +02:00
Tim-Philipp Müller
91b8f10a92 tests: fix navigation test linking 2012-04-15 23:04:07 +01:00
Sebastian Dröge
69b18ab09d gst-libs: Remove interfaces libs and mixer/tuner interfaces
The navigation interface is now in the video library.
2012-04-13 13:14:13 +02:00
Mark Nauwelaerts
67b29f85a2 tests: videorate: remove obsolete color-matrix caps field 2012-04-13 12:21:34 +02:00
Edward Hervey
5fd3f8f2c1 check: Fix one leak in volume test 2012-04-12 15:06:15 +02:00
Wim Taymans
84b69fa921 tests: remove GstNetAddress
Really, really remove all mention of GstNetBuffer

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=673510
2012-04-11 16:59:25 +02:00
Mark Nauwelaerts
8da252a21c tests: plug some more object and caps leaks 2012-04-04 19:57:35 +02:00
Sebastian Dröge
65307dd132 gst: Update versioning 2012-04-04 14:55:15 +02:00
Mark Nauwelaerts
0acef1dbe9 tests: various fixes
... such as setting input caps, ensuring to unmap and bearing in
mind that gst_buffer_make_writable usually does not provide
a separate memory copy/area.
2012-04-03 18:31:27 +02:00
Mark Nauwelaerts
fd9b69fb33 tests: videoscale: fix passthrough unit test
... to really only test the indicated scaling method rather than
all of them.
2012-04-02 17:03:48 +02:00
Wim Taymans
345dc31f20 update for buffer api change 2012-03-30 18:15:30 +02:00
Mark Nauwelaerts
9289476e77 tests: plug various caps leaks 2012-03-30 16:56:45 +02:00
Edward Hervey
8d90932ad4 tests: Check return value of byte write methods 2012-03-30 12:06:09 +02:00
Edward Hervey
4935af23e7 tests: Fix subparse test
It wasn't checking the srt_input2
2012-03-30 11:56:18 +02:00
Edward Hervey
2325a2beae videoscale: Fix comparision 2012-03-30 11:56:18 +02:00
Edward Hervey
7ed834ced7 test: Enable ABI check and update 64bit file 2012-03-29 17:42:50 +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
Wim Taymans
8e13d30a5a tests: don't include element header files 2012-03-21 13:19:50 +01:00
Wim Taymans
a619d3a8b0 update for memory api changes 2012-03-20 13:20:36 +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
Tim-Philipp Müller
f234923c07 tests: remove ASSERT_CRITICAL disablement in overlay composition unit test
No idea why that was there.
2012-03-14 18:04:37 +00:00
Wim Taymans
679b9b166f tests: update for caps api changes 2012-03-12 17:16:46 +01:00
Wim Taymans
d5ace1d855 tests: fix for caps change 2012-03-12 12:40:09 +01:00
Tim-Philipp Müller
29c266ccff Merge remote-tracking branch 'origin/master' into 0.11
Conflicts:
	common
	docs/libs/gst-plugins-base-libs.types
	ext/pango/gsttextoverlay.c
	ext/vorbis/gstvorbisdec.c
	gst/playback/gstplaysink.c
	gst/playback/gstplaysinkconvertbin.c
	sys/ximage/ximagesink.c
	sys/xvimage/xvimagesink.c
2012-03-08 20:31:34 +00:00
Edward Hervey
752ba3149f check: Disable another lanczos videoscale test
Segfaults hard
2012-03-08 15:25:02 +01:00
Wim Taymans
591ff74d7d tests: deal with lists of formats 2012-03-08 10:59:48 +01:00
Tim-Philipp Müller
85a7b8f562 tests: add test to check discoverer return code for missing plugins case
https://bugzilla.gnome.org/show_bug.cgi?id=671047
2012-03-03 13:54:53 +00:00
Sebastian Dröge
f7939bb43f Merge branch 'master' into 0.11
Conflicts:
	NEWS
	RELEASE
	configure.ac
	docs/plugins/gst-plugins-base-plugins.args
	docs/plugins/gst-plugins-base-plugins.hierarchy
	docs/plugins/gst-plugins-base-plugins.interfaces
	docs/plugins/inspect/plugin-adder.xml
	docs/plugins/inspect/plugin-alsa.xml
	docs/plugins/inspect/plugin-app.xml
	docs/plugins/inspect/plugin-audioconvert.xml
	docs/plugins/inspect/plugin-audiorate.xml
	docs/plugins/inspect/plugin-audioresample.xml
	docs/plugins/inspect/plugin-audiotestsrc.xml
	docs/plugins/inspect/plugin-cdparanoia.xml
	docs/plugins/inspect/plugin-encoding.xml
	docs/plugins/inspect/plugin-ffmpegcolorspace.xml
	docs/plugins/inspect/plugin-gdp.xml
	docs/plugins/inspect/plugin-gio.xml
	docs/plugins/inspect/plugin-gnomevfs.xml
	docs/plugins/inspect/plugin-libvisual.xml
	docs/plugins/inspect/plugin-ogg.xml
	docs/plugins/inspect/plugin-pango.xml
	docs/plugins/inspect/plugin-playback.xml
	docs/plugins/inspect/plugin-subparse.xml
	docs/plugins/inspect/plugin-tcp.xml
	docs/plugins/inspect/plugin-theora.xml
	docs/plugins/inspect/plugin-typefindfunctions.xml
	docs/plugins/inspect/plugin-uridecodebin.xml
	docs/plugins/inspect/plugin-videorate.xml
	docs/plugins/inspect/plugin-videoscale.xml
	docs/plugins/inspect/plugin-videotestsrc.xml
	docs/plugins/inspect/plugin-volume.xml
	docs/plugins/inspect/plugin-vorbis.xml
	docs/plugins/inspect/plugin-ximagesink.xml
	docs/plugins/inspect/plugin-xvimagesink.xml
	gst-libs/gst/app/gstappsink.c
	gst-libs/gst/audio/mixer.c
	gst-libs/gst/audio/mixer.h
	gst-libs/gst/tag/gstxmptag.c
	gst-libs/gst/video/colorbalance.c
	gst-libs/gst/video/colorbalance.h
	gst/adder/gstadder.c
	gst/playback/gstplaybasebin.c
	gst/playback/gstplaybin2.c
	gst/playback/gstplaysink.c
	gst/videoscale/gstvideoscale.c
	tests/check/elements/videoscale.c
	tests/examples/seek/seek.c
	tests/examples/v4l/probe.c
	win32/common/_stdint.h
	win32/common/audio-enumtypes.c
	win32/common/config.h
2012-03-02 10:00:55 +01:00
Stefan Sauer
22bef18b96 test: improve adder test on event handling
Use new consitency checker api to test event handling in more detail.
2012-02-29 21:51:00 +01:00
Edward Hervey
59918e841f Suppress deprecation warnings in selected files, for g_value_array_* mostly 2012-02-27 14:28:15 +01:00
Tim-Philipp Müller
2b0b1e4ece tests: add some videoscale tests for new Lanczos-based method
Some crash. Others show invalid memory access in valgrind.
2012-02-26 23:46:50 +00:00
Tim-Philipp Müller
63d1316c0f videoscale: fix negotiation after addition of new formats and methods
Now that we no longer support all methods for all formats, we
need to cater for that in the transform function: we can't
transform formats not supported by the currently-selected
mehod.

make check, folks. It's da bomb.
2012-02-26 23:46:50 +00:00
Tim-Philipp Müller
92ebd6bd2a videoscale: fix videoscale test for new methods
Not all scaling methods are supported for all formats, so
can't just iterate over the template caps.
2012-02-26 23:46:50 +00:00
Tim-Philipp Müller
7bf7b32cd5 tests: add multisocketsink test binary to .gitignore 2012-02-25 13:01:53 +00:00
Tim-Philipp Müller
290605451a tests: fix capsfilter-renegotiation test
videotestsrc has no peer-alloc property any longer, and
renegotiation should work regardless in 0.11.
2012-02-25 01:04:07 +00:00
Tim-Philipp Müller
8f6d23d6ed tests: fix multisocketsink unit test
Activate pad properly before using it.
2012-02-25 00:49:27 +00:00
Wim Taymans
63f3f27164 update for new memory api 2012-02-22 02:05:24 +01:00
Tim-Philipp Müller
a350c28aed tests: activate pad in multifdsink test before pushing on it 2012-02-17 19:29:10 +00:00
Wim Taymans
d1beba8b6d tests: fix after baseparse api change 2012-02-14 10:50:45 +01:00
Thomas Vander Stichele
a69a438d6c fix up tests 2012-02-12 22:28:31 +01:00
Thomas Vander Stichele
029b9b49de multihandle: rename num-fds/-sockets to num-handles 2012-02-12 22:23:45 +01:00
Thomas Vander Stichele
d4429ecef9 tests multihandle: verify number of handles 2012-02-12 22:23:45 +01:00
Thomas Vander Stichele
14ac8bb585 multihandlesink: rework to use GST_TYPE_FORMAT 2012-02-12 22:23:44 +01:00
Thomas Vander Stichele
8b6ade8113 multisocketsink: fix tests by setting units properly 2012-02-12 22:23:44 +01:00
Thomas Vander Stichele
16a675081d test: use more literal enums 2012-02-12 22:23:44 +01:00
Thomas Vander Stichele
020739664a multihandlesink: further refactoring 2012-02-12 22:23:44 +01:00
Thomas Vander Stichele
99185cc8f5 multisocketsink: fix refcounting bug 2012-02-12 22:17:56 +01:00
Thomas Vander Stichele
d21c42a709 multihandlesink: fix one bug in multisocketsink refactoring 2012-02-12 22:10:51 +01:00
Thomas Vander Stichele
684aa4baaf gst/tcp: Factor out common symbols; fix tests. 2012-02-12 22:07:29 +01:00
Thomas Vander Stichele
3b0fae73ae multifdsink: put back multifdsink before refactoring 2012-02-12 22:07:29 +01:00
Thomas Vander Stichele
34ce295d3b multisocketsink: copy over multifdsink unit tests, with FIXME 2012-02-12 22:07:28 +01:00
Wim Taymans
be22feb106 tests: don't run with unsupported formats
videoconvert does not work with GRAY formats yet so don't try to run the unit
test with it.
2012-02-10 15:41:36 +01:00
Wim Taymans
c3478b2da0 Merge branch 'master' into 0.11
Conflicts:
	ext/vorbis/gstvorbisparse.c
	gst-libs/gst/video/video.c
	gst/videoscale/gstvideoscale.c
	sys/v4l/gstv4lxoverlay.c
	sys/v4l/v4l_calls.c
	sys/v4l/v4lsrc_calls.c
	tests/check/libs/video.c
2012-02-10 15:41:06 +01:00
Wim Taymans
a75e9102c5 GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING 2012-02-08 15:17:49 +01:00
Wim Taymans
1f4b819a90 tests: fix volume test 2012-02-03 15:01:50 +01:00
Wim Taymans
a8a4ff9428 tests: video testsrc unit test 2012-02-03 12:53:49 +01:00
Wim Taymans
d8b6baacae tests: fix more unit tests 2012-02-03 12:41:10 +01:00
Wim Taymans
62b43b3bcd tests: don't set NULL caps 2012-02-03 12:09:34 +01:00
Wim Taymans
c24df0e50f gdp: fixup unit tests 2012-02-03 11:38:55 +01:00
Wim Taymans
48b190c7be tests: fix audioresample test 2012-02-03 10:47:22 +01:00
Wim Taymans
8c894ce8b4 tests: fix audiorate test
We need to add the layout to the audio caps.
2012-02-03 09:57:21 +01:00
Wim Taymans
29cc1d2ce1 tests: fix audioresample formats 2012-01-31 17:56:04 +01:00
Wim Taymans
f95d340758 tests: improve tests 2012-01-31 17:47:40 +01:00
Wim Taymans
a948398e85 tests: fix some more tests 2012-01-31 16:56:03 +01:00
Wim Taymans
d389b12df9 tests: update after controller changes 2012-01-31 16:12:33 +01:00
Stefan Sauer
ace90e6e2b controller: adapt to control-source type changes 2012-01-31 12:28:30 +01:00
Stefan Sauer
1696b14f8f controller: rename control-bindings
gst_control_binding_xxx -> gst_xxx_control_binding for consistency.
2012-01-30 21:38:41 +01:00
Wim Taymans
be0cadac03 update for HEADER flag changes 2012-01-30 17:16:17 +01:00
George Kiagiadakis
6f6f079dd9 tests: test 16-bit rgb formats in test_parse_caps_rgb
https://bugzilla.gnome.org/show_bug.cgi?id=667681
2012-01-30 15:56:45 +00:00
Olivier Crête
cb044668d3 rtcpbuffer: Set the map.size to the current size of the RTCP packet
maxsize is the maximum size
2012-01-27 19:01:55 +01:00
Wim Taymans
fcdc385aa1 port to new map API 2012-01-25 12:30:53 +01:00
Stefan Sauer
b55d67b1d2 controller: move from control-binding to control-binding-direct 2012-01-23 11:03:53 +01:00
Stefan Sauer
ee434b8471 controller: adapt to control_binding changes 2012-01-20 14:44:19 +01:00
Stefan Sauer
0e370d4902 controller: adapt to controller api changes
Don't use the convenience api for control sources.
2012-01-20 11:39:10 +01:00
Wim Taymans
ea9ef0ee63 tests: fix some tests 2012-01-19 15:32:52 +01:00
Sebastian Dröge
317894d314 gio: Move to gst subdirectory
It's a plugin without external dependencies now because we
unconditionally depend on GIO anyway.
2012-01-18 16:21:14 +01:00
Sebastian Dröge
cd3eeed6b3 tcp: Remove remaining unused stuff 2012-01-16 11:31:46 +01:00
Tim-Philipp Müller
e96aaec6bb GST_TYPE_DATE -> G_TYPE_DATE 2012-01-12 23:35:44 +00:00
Tim-Philipp Müller
0461ed2ada Merge remote-tracking branch 'origin/master' into 0.11
Conflicts:
	gst-libs/gst/pbutils/gstdiscoverer-types.c
	gst-libs/gst/pbutils/gstdiscoverer.c
	tests/check/Makefile.am
2012-01-12 23:21:17 +00:00
Tim-Philipp Müller
70c6c2ae0c tests: discoverer test is now valgrind clean 2012-01-12 17:31:44 +00:00
Sebastian Dröge
dc8984d76c Merge branch 'master' into 0.11
Conflicts:
	gst-libs/gst/app/gstappsrc.c
	gst-libs/gst/audio/multichannel.h
	gst-libs/gst/video/videooverlay.c
	gst/playback/gstplaysink.c
	gst/playback/gststreamsynchronizer.c
	tests/check/Makefile.am
	win32/common/libgstvideo.def
2012-01-10 13:15:12 +01:00
Tim-Philipp Müller
aa16155172 tests: add ogg test file and some proper unit tests for discoverer
Leaks when re-used, so blacklisted for valgrind for now.
2012-01-07 16:45:53 +00:00
Edward Hervey
1863308a8e tests: Remove dead header include 2012-01-06 15:16:00 +01:00
Sebastian Dröge
d7c1b90a50 audioconvert: Update unit test for the new multichannel caps 2012-01-05 10:34:20 +01:00
Sebastian Dröge
b23ff1b515 audio: Add tests for the new multichannel caps and reordering function 2012-01-05 10:27:21 +01:00
Wim Taymans
a01fad7024 tests: port and enable more unit tests 2012-01-04 16:41:53 +01:00
Wim Taymans
e9c23ca4fb tests: small cleanup 2012-01-02 18:31:05 +01:00
Wim Taymans
65aaa66f35 tests: fix a unit test
The ogg muxer now has video and audio pads
2012-01-02 15:42:39 +01:00
Tim-Philipp Müller
26e612aeda playback, mixerutils: gst_registry_get_default() -> gst_registry_get() 2012-01-02 14:32:11 +00:00
Wim Taymans
73c4a4ffc6 tests: remove unsupported formats
Remove tests for a format that is no longer supported
2012-01-02 15:00:51 +01:00
Wim Taymans
21bf4f04f3 video: fix some video formats
Rename the offset field in GstVideoFormatInfo to poffset to avoid confusion with
the offset of the plane in the buffer. The poffset is the offset in the plane
where the first byte of the component data can be found.
Properly implement the COMP_OFFSET calculations.
Fix YV12 and YVU9, simply use the same offsets as the regular I420 and YUV9
variants, we use the plane info to reorder components already.
Improve the unit test.
2012-01-02 13:30:53 +01:00
Tim-Philipp Müller
76cc8b8f2a tag: add function to check whether a string is a valid language code
API: gst_tag_check_language_code()
2012-01-02 01:04:00 +00:00
Stefan Sauer
68c362c0e5 controller: port to latest API changes 2011-12-31 09:59:08 +01:00
Tim-Philipp Müller
536e34cb31 tests: disable direct structure access in audiocd test 2011-12-30 16:47:13 +00:00
Edward Hervey
f562a29284 Merge remote-tracking branch 'origin/master' into 0.11
Conflicts:
	ext/theora/gsttheoraenc.c
	gst-libs/gst/tag/gstexiftag.c
	gst/adder/gstadder.c
	gst/adder/gstadder.h
	gst/playback/gstdecodebin2.c
	gst/playback/gstsubtitleoverlay.c
	tests/check/libs/tag.c
2011-12-30 13:21:35 +01:00
Edward Hervey
7ed96ea16a check/video: Caps have "interlace-mode=progressive" by default 2011-12-28 16:34:57 +01:00
Edward Hervey
b6d3b1ac97 check/decodebin: Fix callback signature
The "gboolean last" argument is gone.
2011-12-28 16:34:56 +01:00
Tim-Philipp Müller
862d9f741e gdp: move dataprotocol library into gdp plugin and make private
We have removed things like protocol=gdp in the tcp elements
in favour of explicit gdppay/depay elements, so there's no need
to keep a public API and library for now. We can still add it
back later. Someone needs to think hard about 0.11 and gdp
anyway one of these days.
2011-12-25 23:25:42 +00:00
Tim-Philipp Müller
bb351f404e tests: remove more propertyprobe cruft 2011-12-25 21:37:42 +00:00
Tim-Philipp Müller
dfa23662e1 tag: fix writing of Exif tag payloads <= 4 bytes
When the payload for an Exif tag is less than or equal to 4 bytes,
the data is simply put into the offset field. Fix writing these
kinds of payloads on big endian systems (and possibly also on
little endian systems). The caller will have already formatted
the bytes in memory according to the writer's endianness, so just
write out the bytes as they are in this case. Fixes tags unit test
on big endian systems.
2011-12-23 22:24:44 +00:00
Thiago Santos
77353dad21 tag: xmp: Keep compatibility with our old generated xmp
We used to add a trailing \n to the end of generated xmp packets.
Windows viewer was unhappy with it and we fixed it in
96d2120c2b

The problem is that this caused xmp generated before this fix
to not be recognized and parsed anymore. This patch makes it
recognize xmp with the trailing \n and without, fixing the
regression. Also adds tests for it.
2011-12-22 08:12:28 -03:00
Stefan Sauer
6e1b51d02c controller: port to new interpolation-mode api 2011-12-19 23:41:25 +01:00
Stefan Sauer
1e14fb131e controller: port to new controller api 2011-12-19 22:53:14 +01:00
Tim-Philipp Müller
06f51b9a96 tests: disable composition tests in video unit test for now 2011-12-09 15:06:51 +00:00
Tim-Philipp Müller
e286db3ce6 Revert "tests: fix audiocdsrc for changed preroll behaviour"
This reverts commit 2c9d442d51.

Behaviour changed again, so revert this.
2011-12-08 01:21:18 +00:00
Tim-Philipp Müller
fb6d09055a Merge remote-tracking branch 'origin/master' into 0.11
Conflicts:
	ext/alsa/gstalsadeviceprobe.c
	ext/alsa/gstalsamixer.c
	ext/pango/gsttextoverlay.c
	ext/pango/gsttextoverlay.h
	gst-libs/gst/audio/gstaudiobasesink.c
	gst-libs/gst/audio/gstaudioringbuffer.c
	gst-libs/gst/audio/gstaudiosrc.c
	gst-libs/gst/video/Makefile.am
	gst-libs/gst/video/video.c
	gst/encoding/gststreamcombiner.c
	gst/encoding/gststreamsplitter.c
	gst/playback/gstplaybasebin.c
	gst/playback/gststreamsynchronizer.c
	gst/playback/gstsubtitleoverlay.c
	gst/playback/gsturidecodebin.c
	sys/xvimage/xvimagesink.c
	tests/examples/Makefile.am
	win32/common/libgstvideo.def

Video overlay composition disabled for now, needs
porting to buffer meta.
2011-12-08 01:19:03 +00:00
Tim-Philipp Müller
5037b39883 video: add seqnum getters for overlay compositions and rectangles
API: gst_video_overlay_composition_get_seqnum()
API: gst_video_overlay_rectangle_get_seqnum()
2011-12-07 17:57:08 +00:00
Tim-Philipp Müller
b58b8b1ba5 tests: fix calculation of last pixel offset in video unit test
And check the right buffer (pix2) in one case.
2011-12-06 20:31:54 +00:00
Tim-Philipp Müller
00d6ffd9f5 tests: add basic unit test for video overlay composition and rectangles 2011-12-05 15:37:02 +00:00
Tim-Philipp Müller
177525f89f Merge remote-tracking branch 'origin/master' into 0.11
Conflicts:
	gst-libs/gst/netbuffer/gstnetbuffer.c
	gst/ffmpegcolorspace/avcodec.h
	gst/ffmpegcolorspace/gstffmpegcodecmap.c
	gst/ffmpegcolorspace/imgconvert.c
	gst/ffmpegcolorspace/imgconvert_template.h
	gst/ffmpegcolorspace/mem.c
	gst/playback/README
	gst/playback/gstplaybasebin.c
	gst/playback/gstplaybasebin.h
	gst/playback/gstplaybin.c
	sys/v4l/v4lmjpegsrc_calls.c
	sys/v4l/videodev_mjpeg.h
	tests/check/elements/gnomevfssink.c
2011-12-02 11:10:17 +00:00
Piotr Fusik
14644457b0 various: typo fixes
Fix typos in code and docs. Fixes. #658984
2011-12-02 12:03:27 +01:00