platform/upstream/gst-plugins-base.git
12 years agoalsasink: fix rate match message mistaking error code for sample rate
Vincent Penquerc'h [Mon, 16 Jan 2012 11:40:47 +0000 (11:40 +0000)]
alsasink: fix rate match message mistaking error code for sample rate

12 years agoalsasink: log API errors along with the error code and string
Vincent Penquerc'h [Mon, 16 Jan 2012 11:40:16 +0000 (11:40 +0000)]
alsasink: log API errors along with the error code and string

12 years agoAndroid, Add explicit path for zlib
Reynaldo H. Verdejo Pinochet [Fri, 13 Jan 2012 19:57:15 +0000 (16:57 -0300)]
Android, Add explicit path for zlib

This change fixes building gst-libs/gst/tag/ code with
the Android buildsystem.

12 years agoFix wrong access to undefined struct member
Reynaldo H. Verdejo Pinochet [Fri, 13 Jan 2012 17:50:49 +0000 (14:50 -0300)]
Fix wrong access to undefined struct member

For the USE_TREMOLO case, GstVorbisDec doesn't have
a vb member. Besides, Tremolo's vorbis_dsp_synthesis()
expects a vorbis_dsp_state to be passed as first
argument. Not a vorbis_block.

12 years agoFix TREMELO -> TREMOLO typo
Reynaldo H. Verdejo Pinochet [Fri, 13 Jan 2012 17:47:13 +0000 (14:47 -0300)]
Fix TREMELO -> TREMOLO typo

12 years agoxvimagesink: fix leak when images are freed after the X context
Vincent Penquerc'h [Fri, 13 Jan 2012 16:52:23 +0000 (16:52 +0000)]
xvimagesink: fix leak when images are freed after the X context

I'm not 100% sure this is valid on any other X server than mine,
but since the XFree call does not take the context as a parameter,
it seems pretty certain it's the right thing to do, but I'll put
this caveat here in case someone checks in the future.

12 years agotests: discoverer test is now valgrind clean
Tim-Philipp Müller [Thu, 12 Jan 2012 17:31:44 +0000 (17:31 +0000)]
tests: discoverer test is now valgrind clean

12 years agotheoraparse: fix array leak
Vincent Penquerc'h [Thu, 12 Jan 2012 16:24:01 +0000 (16:24 +0000)]
theoraparse: fix array leak

12 years agodiscoverer: fix structure leak
Vincent Penquerc'h [Thu, 12 Jan 2012 14:26:05 +0000 (14:26 +0000)]
discoverer: fix structure leak

I hit the 'misc' one, but let's also make sure the topology
one get freed as well, though I do not know if this can happen
twice.

12 years agoAdd missing DEFAULT_INCLUDES on androgenizer call
Reynaldo H. Verdejo Pinochet [Wed, 11 Jan 2012 23:47:00 +0000 (20:47 -0300)]
Add missing DEFAULT_INCLUDES on androgenizer call

Fix building of the libgstvideo module on Android by adding the
missing and needed $(DEFAULT_INCLUDES) to CFLAGS for the
androgenizer call on gst-libs/gst/video/Makefile.am

Before this change, building was failing due to gst-plugins-base/
and gst-plugins-base/gst-libs/gst/video being left out of the
include path.

12 years agooggdemux: fix push mode chain leak
Vincent Penquerc'h [Wed, 11 Jan 2012 16:17:42 +0000 (16:17 +0000)]
oggdemux: fix push mode chain leak

When I first implemented push mode seeking, I removed the chain
freeing there as it could be used later. The current code does not
seem to do that though, so I'm restoring the previous freeing,
which plugs the leak while apparently not reintroducing use of
freed data with chained and normal files, both with gst-launch
playbin2 and Totem.

12 years agodiscoverer: fix leaks caused by some base class dtors not being called
Vincent Penquerc'h [Wed, 11 Jan 2012 12:52:17 +0000 (12:52 +0000)]
discoverer: fix leaks caused by some base class dtors not being called

12 years agodiscoverer: fix caps and discoverer object ref leaks
Vincent Penquerc'h [Wed, 11 Jan 2012 12:16:28 +0000 (12:16 +0000)]
discoverer: fix caps and discoverer object ref leaks

12 years agodiscoverer: add a few consts where appropriate
Vincent Penquerc'h [Wed, 11 Jan 2012 11:55:59 +0000 (11:55 +0000)]
discoverer: add a few consts where appropriate

12 years agodiscoverer: fix pad leak
Vincent Penquerc'h [Wed, 11 Jan 2012 11:55:36 +0000 (11:55 +0000)]
discoverer: fix pad leak

12 years agoRevert "oggmux: fix pad leak"
Vincent Penquerc'h [Tue, 10 Jan 2012 19:01:11 +0000 (19:01 +0000)]
Revert "oggmux: fix pad leak"

This reverts commit 5df30c1b905edce16f2258e414a0a4afb540d0f1.

I must have dreamt the Valgrind logs, reverting this reintroduces
no leak, and gets rid of the test failures it introduced :S

12 years agodiscoverer: use GST_TYPE_TAG_LIST for tag lists
Tim-Philipp Müller [Tue, 10 Jan 2012 18:27:19 +0000 (18:27 +0000)]
discoverer: use GST_TYPE_TAG_LIST for tag lists

They may not be structures in 0.11/1.0.

12 years agodiscoverer: fix potential tag list leaks
Tim-Philipp Müller [Tue, 10 Jan 2012 18:07:19 +0000 (18:07 +0000)]
discoverer: fix potential tag list leaks

Not that I have ever seen these in practice, but if they
can't happen we may just as well just assign the new tag
list. Merge properly to be on the safe side, and also
avoid a useless tag list copy in the normal case where
there is no tag list yet.

12 years agodiscoverer: fix potential caps leak
Tim-Philipp Müller [Tue, 10 Jan 2012 17:48:44 +0000 (17:48 +0000)]
discoverer: fix potential caps leak

in last else chunk.

12 years agooggstream: fix tag list leak
Vincent Penquerc'h [Tue, 10 Jan 2012 16:57:04 +0000 (16:57 +0000)]
oggstream: fix tag list leak

12 years agooggdemux: fix pad leak
Vincent Penquerc'h [Tue, 10 Jan 2012 16:51:09 +0000 (16:51 +0000)]
oggdemux: fix pad leak

12 years agooggdemux: fix hang on small truncated files
Vincent Penquerc'h [Tue, 10 Jan 2012 16:14:29 +0000 (16:14 +0000)]
oggdemux: fix hang on small truncated files

A first hang was happening when trying to locate a page backwards,
where we'd sync forever on the same page.
With that fixed, a second hang would happen after preparing an EOS
event, but with no chain created yet to send it to, the pipeline
would stay idle forever.
An element error is now emitted for this case.

12 years agooggmux: fix pad leak
Vincent Penquerc'h [Tue, 10 Jan 2012 14:35:31 +0000 (14:35 +0000)]
oggmux: fix pad leak

12 years agoplayback: document DEINTERLACE flag
Mark Nauwelaerts [Mon, 9 Jan 2012 11:31:02 +0000 (12:31 +0100)]
playback: document DEINTERLACE flag

12 years agortspconnection: make hostname lookup more thread-safe
Tim-Philipp Müller [Sat, 7 Jan 2012 20:12:17 +0000 (20:12 +0000)]
rtspconnection: make hostname lookup more thread-safe

Don't write IP number string to return into a static
array which is shared amongst all threads (note: of
course a copy is returned).

https://bugzilla.gnome.org/show_bug.cgi?id=666711

12 years agodiscoverer: make is_subtitle_caps thread-safe
Tim-Philipp Müller [Sat, 7 Jan 2012 19:39:42 +0000 (19:39 +0000)]
discoverer: make is_subtitle_caps thread-safe

12 years agotests: add ogg test file and some proper unit tests for discoverer
Tim-Philipp Müller [Sat, 7 Jan 2012 16:43:26 +0000 (16:43 +0000)]
tests: add ogg test file and some proper unit tests for discoverer

Leaks when re-used, so blacklisted for valgrind for now.

12 years agowin32: .def file should be sorted for make check-exports
Tim-Philipp Müller [Sat, 7 Jan 2012 14:44:51 +0000 (14:44 +0000)]
win32: .def file should be sorted for make check-exports

12 years agovideo: overlays may now have premultiplied alpha
Vincent Penquerc'h [Wed, 14 Dec 2011 14:14:47 +0000 (14:14 +0000)]
video: overlays may now have premultiplied alpha

https://bugzilla.gnome.org/show_bug.cgi?id=666177

12 years agoFix various unlikely, but still potential memoryleaks in error code paths
Havard Graff [Tue, 1 Nov 2011 16:57:59 +0000 (17:57 +0100)]
Fix various unlikely, but still potential memoryleaks in error code paths

https://bugzilla.gnome.org/show_bug.cgi?id=667311

12 years agoappsrc: implement get_caps vfunc
Havard Graff [Sat, 22 Oct 2011 14:41:23 +0000 (16:41 +0200)]
appsrc: implement get_caps vfunc

This allows downstream elements to query what caps are available.

https://bugzilla.gnome.org/show_bug.cgi?id=667312

12 years agotools: avoid unportable vararg macro construct in gst-discoverer
Tim-Philipp Müller [Thu, 5 Jan 2012 12:23:08 +0000 (12:23 +0000)]
tools: avoid unportable vararg macro construct in gst-discoverer

https://bugzilla.gnome.org/show_bug.cgi?id=667306

12 years agobuild: Run platform check for platform specific configuration.
Idar Tollefsen [Sun, 1 Jan 2012 19:44:08 +0000 (20:44 +0100)]
build: Run platform check for platform specific configuration.

12 years agortcpbuffer: prevent overflow of 16bit header length.
Pascal Buhler [Wed, 12 Oct 2011 09:28:10 +0000 (11:28 +0200)]
rtcpbuffer: prevent overflow of 16bit header length.

RTCP header can be  (2^16 + 1) * 4 bytes long, so when validating a bogus
packet it was possible to get a 16bit overflow resulting in a length of 0.
This would put the gst_rtcp_buffer_validate_data function in a endless loop.

https://bugzilla.gnome.org/show_bug.cgi?id=667313

12 years agovideotestsrc: keep the calculation fixed-point
Havard Graff [Sat, 24 Sep 2011 12:05:42 +0000 (14:05 +0200)]
videotestsrc: keep the calculation fixed-point

https://bugzilla.gnome.org/show_bug.cgi?id=667315

12 years agopango: changes includes from brackets to quotes for local files
Idar Tollefsen [Thu, 4 Aug 2011 09:30:05 +0000 (11:30 +0200)]
pango: changes includes from brackets to quotes for local files

https://bugzilla.gnome.org/show_bug.cgi?id=667316

12 years agodocs: add win32 code snippets to GstXOverlay Gtk+ example
Philip Flarsheim [Thu, 5 Jan 2012 01:51:35 +0000 (01:51 +0000)]
docs: add win32 code snippets to GstXOverlay Gtk+ example

12 years agovideotestsrc: don't build generate_sine_table utility by default
Tim-Philipp Müller [Tue, 3 Jan 2012 21:20:04 +0000 (21:20 +0000)]
videotestsrc: don't build generate_sine_table utility by default

12 years agostreamsynchronizer: force fallback buffer_alloc when other pad not available
Mark Nauwelaerts [Tue, 3 Jan 2012 10:04:23 +0000 (11:04 +0100)]
streamsynchronizer: force fallback buffer_alloc when other pad not available

... to avoid unnecessary spurious errors (upon e.g. shutdown).
If a real error is applicable in this unusual circumstance (missing other pad),
other (STREAM_LOCK protected) call paths can take care of that.

12 years agostreamsynchronizer: avoid crashing when operating on released pad
Mark Nauwelaerts [Tue, 3 Jan 2012 10:02:17 +0000 (11:02 +0100)]
streamsynchronizer: avoid crashing when operating on released pad

12 years agotag: add function to check whether a string is a valid language code
Tim-Philipp Müller [Mon, 2 Jan 2012 00:59:39 +0000 (00:59 +0000)]
tag: add function to check whether a string is a valid language code

API: gst_tag_check_language_code()

12 years agoaudio, rtsp: remove private/protected gtk-doc markup for enums
Tim-Philipp Müller [Tue, 20 Dec 2011 21:48:29 +0000 (21:48 +0000)]
audio, rtsp: remove private/protected gtk-doc markup for enums

This confuses glib-mkenums, and is not really useful anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=666618

12 years agooggmux: fix leak when initializing pads
Thiago Santos [Tue, 27 Dec 2011 17:37:26 +0000 (14:37 -0300)]
oggmux: fix leak when initializing pads

Pads are initialized twice: when requesting pads and when
initializing collectpads. Avoid double initialization by
checking if collectpads are still going to be initialized when
creating request pads.

12 years agotheoraenc: fix template caps creation on big endian systems
Tim-Philipp Müller [Fri, 23 Dec 2011 22:51:59 +0000 (22:51 +0000)]
theoraenc: fix template caps creation on big endian systems

12 years agotag: fix writing of Exif tag payloads <= 4 bytes
Tim-Philipp Müller [Fri, 23 Dec 2011 22:24:44 +0000 (22:24 +0000)]
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.

12 years agoaudioencoder: add a few more debug statements
Mark Nauwelaerts [Thu, 22 Dec 2011 15:54:18 +0000 (16:54 +0100)]
audioencoder: add a few more debug statements

12 years agoaudiodecoder: tweak documentation
Mark Nauwelaerts [Thu, 22 Dec 2011 15:53:49 +0000 (16:53 +0100)]
audiodecoder: tweak documentation

12 years agotag: xmp: Keep compatibility with our old generated xmp
Thiago Santos [Thu, 22 Dec 2011 10:53:39 +0000 (07:53 -0300)]
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
96d2120c2bb0b29e1849098198f5fbef81939cdd

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.

12 years agogstvideo: fix a RGB ordering mixup in colorspace conversion code
Vincent Penquerc'h [Wed, 14 Dec 2011 16:34:39 +0000 (16:34 +0000)]
gstvideo: fix a RGB ordering mixup in colorspace conversion code

12 years agotheoraenc: add "dup-on-gap" option
Oleksij Rempel (Alexey Fisher) [Mon, 19 Dec 2011 16:41:23 +0000 (17:41 +0100)]
theoraenc: add "dup-on-gap" option

This option will produce duplicate frames if we get
a frame with GAP flag. This will reduce CPU load and file size.

This option should be disabled for real time applications, because it
collects GAP frames and waits until it gets a non GAP frame to start
encoding.

v30.06.2011: make some spell changes.
v03.07.2011: add handling of EOS and discontinuous for dup-on-gap.
v19.12.2011: fix pointer dangling in theora_timefifo_free
v20.12.2010: fix timestamp bug for dup-on-gap=0

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=627459

Signed-off-by: Oleksij Rempel (Alexey Fisher) <bug-track@fisher-privat.net>
12 years agoaudiodecoder: set a non-zero default maximum tolerated errors
Mark Nauwelaerts [Tue, 20 Dec 2011 11:42:18 +0000 (12:42 +0100)]
audiodecoder: set a non-zero default maximum tolerated errors

Whereas the previous default 0 was backwards compatible in that it lead
to erroring out immediately upon any error, elements that are really
ported and using the base class error macro can be assumed to intend to
improve behaviour rather than maintaining the old one.  So, make it easy
on those and any future one and tolerate some errors by default, as intended.

Fixes #666579.

12 years agoadder: do not send too many flush-stop events
Vincent Penquerc'h [Fri, 16 Dec 2011 17:32:41 +0000 (17:32 +0000)]
adder: do not send too many flush-stop events

GstCollectPads2 now allows us to override the event function,
so we can withhold flush stop events if none are to be sent.

https://bugzilla.gnome.org/show_bug.cgi?id=666379

12 years agoadder: use the stream lock where appropriate
Vincent Penquerc'h [Fri, 16 Dec 2011 17:31:06 +0000 (17:31 +0000)]
adder: use the stream lock where appropriate

GstCollectPads2 locking was changed from GstCollectPads to use
the stream lock instead of the object lock for those cases, so
change it so here as well to match.

https://bugzilla.gnome.org/show_bug.cgi?id=666379

12 years agoadder: send a flush event before trying to get the stream lock
Vincent Penquerc'h [Fri, 16 Dec 2011 17:25:10 +0000 (17:25 +0000)]
adder: send a flush event before trying to get the stream lock

This avoids hanging when the streaming thread is busy in _chain
waiting for preroll.

https://bugzilla.gnome.org/show_bug.cgi?id=666379

12 years agooggdemux: assume live stream if byte size cannot be determined
Vincent Penquerc'h [Fri, 16 Dec 2011 15:27:24 +0000 (15:27 +0000)]
oggdemux: assume live stream if byte size cannot be determined

This prevents trying to seek and failing, then ending up unable
to stream because we can't get back at the headers.
A more robust way would be to find a good place to reinject the
headers when a seek fails, but I can't seem to get this to work.

12 years agotag: exif: do not include \0 in size passed to g_convert
Thiago Santos [Thu, 15 Dec 2011 14:01:01 +0000 (11:01 -0300)]
tag: exif: do not include \0 in size passed to g_convert

When using g_convert, we should only pass the length
of the string content (without the \0) as g_convert will
only parse the real contents when changing formats. Including
the \0 causes it to add another \0, increasing the string
size when not needed.

For example, when writting a North geo location ref entry, that should
be a string with a single N letter, it would write:
"N\0\0", causing the string to have size 3, instead of 2 as expected.

In our case, we can pass -1 and let g_convert calculate the strlen as
we don't use the length anywhere else.

This fixes jifmux's tests on gst-plugins-bad.

12 years agoadder: port to GstCollectPads2
Vincent Penquerc'h [Wed, 14 Dec 2011 18:26:07 +0000 (18:26 +0000)]
adder: port to GstCollectPads2

12 years agodecodebin2: tweak chain topology description
Mark Nauwelaerts [Mon, 3 Oct 2011 12:51:56 +0000 (14:51 +0200)]
decodebin2: tweak chain topology description

... to also properly indicate chain's endpad if no elements are in the
chain (due to the endpad being a raw demuxer pad, or one setup without
decoders since uridecodebin or higher up decided not to need those).

12 years agobaseaudiosink: fix late buffer leak
Vincent Penquerc'h [Tue, 13 Dec 2011 12:55:45 +0000 (12:55 +0000)]
baseaudiosink: fix late buffer leak

12 years agosubtitleoverlay: Refactor code to check if a property exists on an element
Sebastian Dröge [Tue, 13 Dec 2011 12:28:47 +0000 (13:28 +0100)]
subtitleoverlay: Refactor code to check if a property exists on an element

12 years agosubtitleoverlay: Refactor autoplugging code and select overlay element by rank too
Sebastian Dröge [Tue, 13 Dec 2011 12:20:24 +0000 (13:20 +0100)]
subtitleoverlay: Refactor autoplugging code and select overlay element by rank too

Previously we always used textoverlay for rendering the output of
a parser, now the same code as for the renderers is used and the
element with the highest rank is used.

Fixes bug #663822.

12 years agoglib-compat: Add license boilerplate for LGPL
Sebastian Dröge [Mon, 12 Dec 2011 10:54:56 +0000 (11:54 +0100)]
glib-compat: Add license boilerplate for LGPL

12 years agopo: update translations
Tim-Philipp Müller [Sat, 10 Dec 2011 01:36:14 +0000 (01:36 +0000)]
po: update translations

12 years agoAdd latest header file to spec file
Christian Fredrik Kalager Schaller [Fri, 9 Dec 2011 15:39:12 +0000 (15:39 +0000)]
Add latest header file to spec file

12 years agotypefindfunctions: only typefind text with a BOM as text/utf16 or text/utf32
Tim-Philipp Müller [Fri, 9 Dec 2011 01:31:20 +0000 (01:31 +0000)]
typefindfunctions: only typefind text with a BOM as text/utf16 or text/utf32

We added the utf typefinder because the mp3 typefinder was a tad
overzealous when it came to typefinding things as mp3, and replaced
it with even more overzealous utf16/32 typefinders.

Fixes unit test.

12 years agovideo: make composition_blend() return a boolean
Tim-Philipp Müller [Wed, 7 Dec 2011 18:45:28 +0000 (18:45 +0000)]
video: make composition_blend() return a boolean

Not that anyone will ever check that, and it's not clear what
they're supposed to do if it fails, but at least it's there.

12 years agodocs: add new API to docs
Tim-Philipp Müller [Wed, 7 Dec 2011 18:31:58 +0000 (18:31 +0000)]
docs: add new API to docs

12 years agovideo: add seqnum getters for overlay compositions and rectangles
Tim-Philipp Müller [Wed, 7 Dec 2011 17:57:08 +0000 (17:57 +0000)]
video: add seqnum getters for overlay compositions and rectangles

API: gst_video_overlay_composition_get_seqnum()
API: gst_video_overlay_rectangle_get_seqnum()

12 years agovideo: support any type of video in _parse_caps
Thibault Saunier [Wed, 23 Nov 2011 18:45:57 +0000 (15:45 -0300)]
video: support any type of video in _parse_caps

Slight change in semantics for convenience. Shouldn't cause any
problems since this function is usually only used on pre-filtered
caps and not random caps, and it's hard to imagine a situation
where someone would want to rely on the previous behaviour.

12 years agovideorate: don't leak previous buffer when shutting down
Tim-Philipp Müller [Tue, 6 Dec 2011 21:57:32 +0000 (21:57 +0000)]
videorate: don't leak previous buffer when shutting down

Implement stop vfunc after port to basetransform, so we
can clean up properly. Fixes make elements/videorate.valgrind

12 years agotests: fix calculation of last pixel offset in video unit test
Tim-Philipp Müller [Tue, 6 Dec 2011 20:30:55 +0000 (20:30 +0000)]
tests: fix calculation of last pixel offset in video unit test

And check the right buffer (pix2) in one case.

12 years agoexamples: fix build of fft example
Tim-Philipp Müller [Tue, 6 Dec 2011 15:01:05 +0000 (15:01 +0000)]
examples: fix build of fft example

Should link against our own libgstfft-0.10.

12 years agovideo: fix leak in gst_video_format_new_template_caps()
Tim-Philipp Müller [Tue, 6 Dec 2011 14:55:38 +0000 (14:55 +0000)]
video: fix leak in gst_video_format_new_template_caps()

g_value_reset() is not the same as g_value_unset()

12 years agosubtitleoverlay: add suport for hardware accelerated videos
Thibault Saunier [Wed, 23 Nov 2011 18:43:46 +0000 (15:43 -0300)]
subtitleoverlay: add suport for hardware accelerated videos

Don't plug converters for non-raw video.

12 years agovideo: don't use deprecated GStaticMutex with newer glib versions
Tim-Philipp Müller [Mon, 5 Dec 2011 15:48:07 +0000 (15:48 +0000)]
video: don't use deprecated GStaticMutex with newer glib versions

12 years agoexamples: dist fft sub-directory
Tim-Philipp Müller [Mon, 5 Dec 2011 15:34:42 +0000 (15:34 +0000)]
examples: dist fft sub-directory

12 years agotextoverlay: unpremultiply text image
Thibault Saunier [Mon, 28 Nov 2011 13:05:50 +0000 (10:05 -0300)]
textoverlay: unpremultiply text image

The GstVideoOverlayComposition only supports unpremultiplied ARGB
(for now anyway, support for pre-multiplied alpha is planned.)

12 years agotextoverlay: Attach OverlayComposition to buffers when needed
Thibault Saunier [Wed, 23 Nov 2011 15:49:02 +0000 (12:49 -0300)]
textoverlay: Attach OverlayComposition to buffers when needed

Add video/x-surface support in the caps
We should then attach it whenever the sink supports it, but this
is working for the time being

12 years agotextoverlay: Make the text_image data a buffer
Thibault Saunier [Fri, 18 Nov 2011 16:22:52 +0000 (13:22 -0300)]
textoverlay: Make the text_image data a buffer

This way we won't free data that would be attached to some buffer.

12 years agotextoverlay: Sync the caps with the new supported formats
Thibault Saunier [Fri, 18 Nov 2011 14:04:47 +0000 (11:04 -0300)]
textoverlay: Sync the caps with the new supported formats

Thanks to the use of the new video composition library, we gain support to
more colospaces and formats, let's state it.

12 years agotextoverlay: Make use of the new video blending utility
Thibault Saunier [Wed, 16 Nov 2011 20:54:43 +0000 (17:54 -0300)]
textoverlay: Make use of the new video blending utility

12 years agotests: add basic unit test for video overlay composition and rectangles
Tim-Philipp Müller [Fri, 25 Nov 2011 16:46:09 +0000 (16:46 +0000)]
tests: add basic unit test for video overlay composition and rectangles

12 years agovideo: add video overlay composition API for subtitles
Tim-Philipp Müller [Sat, 12 Nov 2011 14:59:35 +0000 (14:59 +0000)]
video: add video overlay composition API for subtitles

Basic API to attach overlay rectangles to buffers,
or blend them directly onto raw video buffers.

To be used primarily for things like subtitles or
logo overlays, not meant to replace videomixer.

Allows us to associate subtitle overlays with
non-raw video surface buffers, so that subtitles
are not lost and can instead be rendered later
when those surfaces are displayed or converted,
whilst re-using all the existing overlay plugins
and not having to teach them about our special
video surfaces. Could also have been made part
of the surface buffer abstraction of course, but
a secondary goal was to consolidate the blending
code for raw video into libgstvideo, and this
kind of API allows us to do both in a way that's
minimally invasive to existing elements, and at
the same time is fairly intuitive.

More features and extensions like the ability to
pass the source data or text/markup directly will
be added later.

https://bugzilla.gnome.org/show_bug.cgi?id=665080

API: gst_video_buffer_get_overlay_composition()
API: gst_video_buffer_set_overlay_composition()

API: gst_video_overlay_composition_new()
API: gst_video_overlay_composition_add_rectangle()
API: gst_video_overlay_composition_n_rectangles()
API: gst_video_overlay_composition_get_rectangle()
API: gst_video_overlay_composition_make_writable()
API: gst_video_overlay_composition_copy()
API: gst_video_overlay_composition_ref()
API: gst_video_overlay_composition_unref()

API: gst_video_overlay_composition_blend()

API: gst_video_overlay_rectangle_new_argb()
API: gst_video_overlay_rectangle_get_pixels_argb()
API: gst_video_overlay_rectangle_get_pixels_unscaled_argb()
API: gst_video_overlay_rectangle_get_render_rectangle()
API: gst_video_overlay_rectangle_set_render_rectangle()
API: gst_video_overlay_rectangle_copy()
API: gst_video_overlay_rectangle_ref()
API: gst_video_overlay_rectangle_unref()

12 years agovideo: hide private video-blend.[ch] from gobject-introspection
Tim-Philipp Müller [Wed, 23 Nov 2011 00:31:18 +0000 (00:31 +0000)]
video: hide private video-blend.[ch] from gobject-introspection

And remove unused fields from helper structure.

12 years agovideo: add fallbacks for compilation without orc
Tim-Philipp Müller [Tue, 15 Nov 2011 18:00:00 +0000 (18:00 +0000)]
video: add fallbacks for compilation without orc

12 years agovideo: add some internal helper functions for image blending
Thibault Saunier [Mon, 17 Oct 2011 15:25:11 +0000 (17:25 +0200)]
video: add some internal helper functions for image blending

This could be improved if we decide we don't need it to
be this generic/flexible.

12 years agoxoverlay: Fix mistakes in the sample code
Sebastian Dröge [Mon, 5 Dec 2011 08:38:33 +0000 (09:38 +0100)]
xoverlay: Fix mistakes in the sample code

Fixes bug #665430.

12 years agoSuppress deprecation warnings in selected files, for g_static_rec_mutex_* mostly
Tim-Philipp Müller [Sun, 4 Dec 2011 20:50:25 +0000 (20:50 +0000)]
Suppress deprecation warnings in selected files, for g_static_rec_mutex_* mostly

GStaticRecMutex is part of our API/ABI, not much we can do here
in 0.10 for most of these.

12 years agoalsamixer: use GRectMutext instead of GStaticRecMutex with newer glib versions
Tim-Philipp Müller [Sun, 4 Dec 2011 20:38:19 +0000 (20:38 +0000)]
alsamixer: use GRectMutext instead of GStaticRecMutex with newer glib versions

12 years agoalsamixer: embed static mutexes into the mixer structure
Tim-Philipp Müller [Sun, 4 Dec 2011 20:21:26 +0000 (20:21 +0000)]
alsamixer: embed static mutexes into the mixer structure

instead of allocating them dynamically

12 years agotools, tests: g_thread_init() is deprecated in glib master
Tim-Philipp Müller [Sun, 4 Dec 2011 17:02:39 +0000 (17:02 +0000)]
tools, tests: g_thread_init() is deprecated in glib master

It's not needed any longer.

12 years agoWork around deprecated thread API in glib master
Tim-Philipp Müller [Sun, 4 Dec 2011 16:43:38 +0000 (16:43 +0000)]
Work around deprecated thread API in glib master

Add private replacements for deprecated functions such as
g_mutex_new(), g_mutex_free(), g_cond_new() etc., mostly
to avoid the deprecation warnings. We'll change these
over to the new API once we depend on glib >= 2.32.

Replace g_thread_create() with g_thread_try_new().

12 years agoxmpwriter: update for thread API deprecations in glib master
Tim-Philipp Müller [Sun, 4 Dec 2011 15:23:21 +0000 (15:23 +0000)]
xmpwriter: update for thread API deprecations in glib master

12 years agofft-example: re-add Makefile.am
Stefan Sauer [Sun, 4 Dec 2011 12:43:06 +0000 (13:43 +0100)]
fft-example: re-add Makefile.am

12 years agoconfigure: trim trailing whitespace
Stefan Sauer [Fri, 2 Dec 2011 22:35:50 +0000 (23:35 +0100)]
configure: trim trailing whitespace

12 years agotests: add a test for fft result value-ranges
Stefan Sauer [Fri, 2 Dec 2011 22:34:47 +0000 (23:34 +0100)]
tests: add a test for fft result value-ranges

Add a small example that uses ffts of various types and parameters and check the
result value ranges.

12 years agovarious: typo fixes
Piotr Fusik [Tue, 13 Sep 2011 19:10:43 +0000 (21:10 +0200)]
various: typo fixes

Fix typos in code and docs. Fixes. #658984

12 years agoadder: be more graceful in the clipfunction
Stefan Sauer [Thu, 1 Dec 2011 10:59:17 +0000 (11:59 +0100)]
adder: be more graceful in the clipfunction

Doing dynamic pipelines is hard in 0.10. As we don't have the sticky events in
0.10 and sending such events in special elements like adder and tee was outvoted
on last attempt, be graceful to the misbehaviour instead.

12 years agotests: fix caps leak in audioresample tests
Tim-Philipp Müller [Thu, 1 Dec 2011 01:22:19 +0000 (01:22 +0000)]
tests: fix caps leak in audioresample tests

12 years agotests: fix memory leak in basetime test
Tim-Philipp Müller [Thu, 1 Dec 2011 01:07:26 +0000 (01:07 +0000)]
tests: fix memory leak in basetime test