platform/upstream/gstreamer.git
13 years agoqtmux: refactor configuring and sending of moov
Mark Nauwelaerts [Tue, 9 Nov 2010 15:49:07 +0000 (16:49 +0100)]
qtmux: refactor configuring and sending of moov

Based on patch by Marc-André Lureau <mlureau@flumotion.com>

13 years agoqtmux: refactor extra top-level atom handling
Mark Nauwelaerts [Tue, 9 Nov 2010 14:54:44 +0000 (15:54 +0100)]
qtmux: refactor extra top-level atom handling

Also check a bit more for possible errors, and free proper items in such case.

13 years agoqtmux: refactor slightly using buffer helper
Mark Nauwelaerts [Tue, 9 Nov 2010 14:01:15 +0000 (15:01 +0100)]
qtmux: refactor slightly using buffer helper

13 years agoqtmux: fix misinforming comment
Mark Nauwelaerts [Fri, 5 Nov 2010 12:48:57 +0000 (13:48 +0100)]
qtmux: fix misinforming comment

13 years agoqtmux: delegate mvex handling to atoms
Mark Nauwelaerts [Fri, 5 Nov 2010 11:08:15 +0000 (12:08 +0100)]
qtmux: delegate mvex handling to atoms

... which keeps qtmux simpler.

13 years agoqtmux: add mvex/trex in header if fragmented
Marc-André Lureau [Mon, 28 Sep 2009 14:11:35 +0000 (16:11 +0200)]
qtmux: add mvex/trex in header if fragmented

One "trex" is added per "trak". We don't support default values,
but the "trex" box is mandatory.

13 years agoqtmux: add a couple of fourcc for fragmented mp4
Marc-André Lureau [Mon, 28 Sep 2009 11:01:30 +0000 (13:01 +0200)]
qtmux: add a couple of fourcc for fragmented mp4

13 years agoqtmux: avoid removing temp file when error occurred
Mark Nauwelaerts [Fri, 5 Nov 2010 10:08:01 +0000 (11:08 +0100)]
qtmux: avoid removing temp file when error occurred

13 years agoqtmux: truncate buffer file after each send
Marc-André Lureau [Wed, 30 Sep 2009 15:16:30 +0000 (17:16 +0200)]
qtmux: truncate buffer file after each send

13 years agoqtmux: remove temp file when reset/finalize
Marc-André Lureau [Mon, 28 Sep 2009 14:53:51 +0000 (16:53 +0200)]
qtmux: remove temp file when reset/finalize

13 years agojpegformat: Push tags after setting srcpad caps
Arun Raghavan [Tue, 17 Aug 2010 20:30:10 +0000 (02:00 +0530)]
jpegformat: Push tags after setting srcpad caps

This patch defers emission of tag events till caps are set on the source
pad of jpegparse, so that these tags can be seen downstream.

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

13 years agompegtsparse: fix compiler warning
Alessandro Decina [Fri, 19 Nov 2010 17:51:32 +0000 (18:51 +0100)]
mpegtsparse: fix compiler warning

13 years agompegtsparse: fix thinko
Andoni Morales Alastruey [Fri, 19 Nov 2010 17:26:59 +0000 (18:26 +0100)]
mpegtsparse: fix thinko

13 years agompegtsparse: fix handling of TOT and TDT sections. Fixes #635281.
Andoni Morales Alastruey [Fri, 19 Nov 2010 16:25:01 +0000 (17:25 +0100)]
mpegtsparse: fix handling of TOT and TDT sections. Fixes #635281.

TDT and TOT sections, with PID=0x14, doesn't extend to several packets
and the section filter is not needed here and shouldn't be used at all
for these tables because the have a different structure.
For example, TDT tables were not parsed for odd hours because this bit
is the 'current_next_indicator' bit for the other sections, and the table
was discarded.

13 years agompegtsparse: don't calculate the CRC for TOT tables. Fixes #635281.
Andoni Morales Alastruey [Fri, 19 Nov 2010 16:22:06 +0000 (17:22 +0100)]
mpegtsparse: don't calculate the CRC for TOT tables. Fixes #635281.

TOT tables, with table_id=0x73, don't have a CRC, so don't calcute it

13 years agodvbbasebin: Add TDT to the initial pids filter for dvbsrc. Fixes #635200.
Andoni Morales Alastruey [Thu, 18 Nov 2010 17:42:38 +0000 (18:42 +0100)]
dvbbasebin: Add TDT to the initial pids filter for dvbsrc. Fixes #635200.

13 years agojpegparse: add gst_jpeg_parse_skip_marker ()
Víctor Manuel Jáquez Leal [Tue, 16 Nov 2010 16:35:36 +0000 (17:35 +0100)]
jpegparse: add gst_jpeg_parse_skip_marker ()

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

13 years agojpegparse: use byte reader accessors
Víctor Manuel Jáquez Leal [Fri, 13 Aug 2010 11:14:30 +0000 (13:14 +0200)]
jpegparse: use byte reader accessors

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

13 years agojpegparse: inline gst_jpeg_parse_sof ()
Víctor Manuel Jáquez Leal [Wed, 17 Nov 2010 09:49:30 +0000 (10:49 +0100)]
jpegparse: inline gst_jpeg_parse_sof ()

No functional changes (hopefully).

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

13 years agojpegparse: fix typo
Víctor Manuel Jáquez Leal [Tue, 16 Nov 2010 16:23:35 +0000 (17:23 +0100)]
jpegparse: fix typo

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

13 years agocamerabin: Do not use audio clock after stopping video capture
Aleksey Lim [Thu, 18 Nov 2010 13:58:06 +0000 (10:58 -0300)]
camerabin: Do not use audio clock after stopping video capture

Adda provide clock function to camerabin to make it not
provide the audio clock of the record bin when no video
recording is happening

Fixes #613379

13 years agobaseparse: use correct offset when adding index entry
Mark Nauwelaerts [Wed, 17 Nov 2010 15:23:42 +0000 (16:23 +0100)]
baseparse: use correct offset when adding index entry

... bearing in mind that BUFFER_OFFSET is media specific and may not
reflect the basic offset after having been parsed.

13 years agobaseparse: enhancements for timestamp marked framed formats
Mark Nauwelaerts [Wed, 17 Nov 2010 13:30:09 +0000 (14:30 +0100)]
baseparse: enhancements for timestamp marked framed formats

That is, as such formats allow subclass to extract position from frame,
it is possible to extract duration (if not otherwise provided)
from (near) last frame, and a seek can fairly accurately target the required
position.

Fixes #631389.

13 years agobaseparse: refactor frame scanning peformed by _loop
Mark Nauwelaerts [Tue, 16 Nov 2010 16:06:14 +0000 (17:06 +0100)]
baseparse: refactor frame scanning peformed by _loop

13 years agobaseparse: slightly optimize sending of pending newsegment events
Mark Nauwelaerts [Tue, 16 Nov 2010 17:04:00 +0000 (18:04 +0100)]
baseparse: slightly optimize sending of pending newsegment events

13 years agobaseparse: minor fixes and enhancements
Mark Nauwelaerts [Tue, 16 Nov 2010 16:04:35 +0000 (17:04 +0100)]
baseparse: minor fixes and enhancements

Arrange for upstream as well as downstream flushing when seeking.
Also determine upstream size as well as seekability.  Adjust some comments
to reality and employ debug statement in proper order.

13 years agoaacparse: minor cleanups
Mark Nauwelaerts [Wed, 17 Nov 2010 14:33:36 +0000 (15:33 +0100)]
aacparse: minor cleanups

13 years agoaacparse: fix regression in ADIF src caps setting
Mark Nauwelaerts [Wed, 17 Nov 2010 14:24:37 +0000 (15:24 +0100)]
aacparse: fix regression in ADIF src caps setting

13 years agoflacparse: parse seektable
Mark Nauwelaerts [Tue, 16 Nov 2010 11:11:53 +0000 (12:11 +0100)]
flacparse: parse seektable

Fixes #631389 (partially).

13 years agoflacparse: minor refactor and enable default baseparse segment clipping
Mark Nauwelaerts [Tue, 16 Nov 2010 11:08:54 +0000 (12:08 +0100)]
flacparse: minor refactor and enable default baseparse segment clipping

13 years agocelvideosrc: fix nasty deadlock
Ole André Vadla Ravnås [Thu, 11 Nov 2010 23:40:33 +0000 (00:40 +0100)]
celvideosrc: fix nasty deadlock

We cannot call any CMBufferQueue functions while holding the lock that
our callback also depends on. So now we make use of CMBufferQueue's
trigger API in order to get notified when the queue has data.

13 years agocmapi: cover CMBufferQueue's trigger API
Ole André Vadla Ravnås [Thu, 11 Nov 2010 22:41:44 +0000 (23:41 +0100)]
cmapi: cover CMBufferQueue's trigger API

13 years agocelvideosrc: unlock should also notify
Ole André Vadla Ravnås [Thu, 11 Nov 2010 20:42:03 +0000 (21:42 +0100)]
celvideosrc: unlock should also notify

Otherwise we depend on being woken up by the CoreMedia queue getting
its next buffer.

13 years agoapplemedia: don't push synchronously from callback
Ole André Vadla Ravnås [Wed, 10 Nov 2010 22:16:51 +0000 (23:16 +0100)]
applemedia: don't push synchronously from callback

The codec that called us might be holding locks to shared resources, so
we should never push downstream from within its buffer callback.

Note that a GstBufferList is not used here because we need to preserve
the buffer metadata held by our GstBuffer subclasses.

13 years agovtenc: bump H.264 level from 1.3 to 3.0
Ole André Vadla Ravnås [Wed, 10 Nov 2010 19:52:47 +0000 (20:52 +0100)]
vtenc: bump H.264 level from 1.3 to 3.0

This should be turned into a property.

13 years agocelvideosrc: add basic device selection support
Ole André Vadla Ravnås [Wed, 10 Nov 2010 19:44:15 +0000 (20:44 +0100)]
celvideosrc: add basic device selection support

13 years agocvapi: add wrapper for IO surface access
Ole André Vadla Ravnås [Wed, 10 Nov 2010 19:51:27 +0000 (20:51 +0100)]
cvapi: add wrapper for IO surface access

To be used in a future video sink for zero-copy rendering.

13 years agocelapi: add capture port type constants
Ole André Vadla Ravnås [Wed, 10 Nov 2010 19:25:28 +0000 (20:25 +0100)]
celapi: add capture port type constants

13 years agoassrender: Remove unused src_stride variable from blit functions
Mart Raudsepp [Tue, 9 Nov 2010 20:43:14 +0000 (22:43 +0200)]
assrender: Remove unused src_stride variable from blit functions

13 years agowin32: Adding photography interface .def file
Thiago Santos [Tue, 9 Nov 2010 21:10:43 +0000 (18:10 -0300)]
win32: Adding photography interface .def file

Adds check-exports to -bad to have photography interface
.def file created

Fixes #578629

13 years agompegaudioparse: fix silly leak in _reset
Mark Nauwelaerts [Tue, 9 Nov 2010 18:38:25 +0000 (19:38 +0100)]
mpegaudioparse: fix silly leak in _reset

13 years agoapplemedia: biplanar is actually NV12, not I420
Ole André Vadla Ravnås [Mon, 8 Nov 2010 22:54:31 +0000 (23:54 +0100)]
applemedia: biplanar is actually NV12, not I420

D'oh!

13 years agovtenc: remove keyframe enforcement workaround
Ole André Vadla Ravnås [Mon, 8 Nov 2010 20:22:13 +0000 (21:22 +0100)]
vtenc: remove keyframe enforcement workaround

Was only needed for old iOS where the H.264 encoder didn't support
kVTEncodeFrameOptionKey_ForceKeyFrame.

13 years agocvapi: add a few extra bits of wrapping
Ole André Vadla Ravnås [Mon, 8 Nov 2010 17:56:52 +0000 (18:56 +0100)]
cvapi: add a few extra bits of wrapping

13 years agoapplemedia: lock CVPixelBuffer read-only
Ole André Vadla Ravnås [Mon, 8 Nov 2010 14:08:19 +0000 (15:08 +0100)]
applemedia: lock CVPixelBuffer read-only

As per Apple's docs, this may improve performance by avoiding redundant
invalidations of existing caches of the buffer contents.

13 years agoexamples: camerabin: Remove gstring leak
Lasse Laukkanen [Mon, 8 Nov 2010 13:33:58 +0000 (10:33 -0300)]
examples: camerabin: Remove gstring leak

Simplify gst-camerabin-test by removing GString and replacing
with gchar for the filename handling. Also removes a leak of
the GString data.

13 years agorsvgdec: avoid reffing the element in chain
Stefan Kost [Mon, 8 Nov 2010 14:00:21 +0000 (16:00 +0200)]
rsvgdec: avoid reffing the element in chain

13 years agorsvgdec: add some minimal logging to track what it is doing
Stefan Kost [Mon, 8 Nov 2010 13:45:48 +0000 (15:45 +0200)]
rsvgdec: add some minimal logging to track what it is doing

13 years agocelvideosrc: put planar first in template caps
Ole André Vadla Ravnås [Mon, 8 Nov 2010 12:52:49 +0000 (13:52 +0100)]
celvideosrc: put planar first in template caps

13 years agoapplemedia: improve vtenc/vtdec performance
Ole André Vadla Ravnås [Mon, 8 Nov 2010 12:49:04 +0000 (13:49 +0100)]
applemedia: improve vtenc/vtdec performance

Profiling of H.264 encode and decode revealed that conversions
between packed and planar were happening behind the scenes.

Hence we now choose I420 instead of YUY2.

13 years agoexamples: add async bus handler to gst-camerabin-test
Lasse Laukkanen [Fri, 22 Oct 2010 15:07:00 +0000 (18:07 +0300)]
examples: add async bus handler to gst-camerabin-test

Splits the bus handler into sync and async, keeping the
prepare-xwindow handling at the sync for faster handling and
moving the others to the async handler

13 years agoconfigure: we still require Gtk+ >= 2.14.0 when compiling against 2.0
Tim-Philipp Müller [Sat, 6 Nov 2010 12:27:32 +0000 (12:27 +0000)]
configure: we still require Gtk+ >= 2.14.0 when compiling against 2.0

The check for the minor version was dropped in one of the previous
commits.

13 years agocelvideosrc: measure fps when statistics is enabled
Ole André Vadla Ravnås [Fri, 5 Nov 2010 15:51:57 +0000 (16:51 +0100)]
celvideosrc: measure fps when statistics is enabled

Also refactor timestamping slightly.

13 years agocelvideosrc: update to new Celestial and MediaToolbox APIs
Ole André Vadla Ravnås [Fri, 5 Nov 2010 14:14:08 +0000 (15:14 +0100)]
celvideosrc: update to new Celestial and MediaToolbox APIs

This means celvideosrc is no longer compatible with iOS 3.x.

13 years agocelvideosrc: fix debug category description
Ole André Vadla Ravnås [Fri, 5 Nov 2010 14:08:56 +0000 (15:08 +0100)]
celvideosrc: fix debug category description

13 years agocelapi: update to reflect new API on iOS 4.x
Ole André Vadla Ravnås [Fri, 5 Nov 2010 14:08:02 +0000 (15:08 +0100)]
celapi: update to reflect new API on iOS 4.x

Also add remaining property constants for device and stream.

13 years agomtapi: update to reflect new API on iOS 4.x
Ole André Vadla Ravnås [Fri, 5 Nov 2010 14:07:38 +0000 (15:07 +0100)]
mtapi: update to reflect new API on iOS 4.x

Also add remaining property constants for device and stream.

13 years agocolorspace: Update generated ORC sources
Sebastian Dröge [Fri, 5 Nov 2010 09:56:51 +0000 (10:56 +0100)]
colorspace: Update generated ORC sources

13 years agocamerabin: Adds 'idle' property
Thiago Santos [Thu, 26 Aug 2010 20:08:19 +0000 (17:08 -0300)]
camerabin: Adds 'idle' property

Adds 'idle', a read-only boolean property that tells applications
if there is any capturing/saving/encoding going on in camerabin. If
not, it is safe to set it to NULL and release resources without
losing data.

13 years agocamerabin: Add "ready-for-capture" property
Lasse Laukkanen [Wed, 5 May 2010 10:58:07 +0000 (13:58 +0300)]
camerabin: Add "ready-for-capture" property

Add "ready-for-capture" property to indicate if preparing a new
capture is possible.

"ready-for-capture" changes before the 'image-done' signal, so
the application can be notified that it can do a new capture
even before the previous one has finished encoding/saving.

13 years agoconfigure: don't even check for Gtk+ if --disable-examples is specified
Tim-Philipp Müller [Fri, 5 Nov 2010 00:32:35 +0000 (00:32 +0000)]
configure: don't even check for Gtk+ if --disable-examples is specified

There are Gtk+-based examples in plugin dirs and tests/icles/ too, and
we want to disable those as well then.

13 years agoconfigure: add --with-gtk option and default to Gtk+ 2.0 while the 3.0 API is still...
Tim-Philipp Müller [Fri, 5 Nov 2010 00:24:31 +0000 (00:24 +0000)]
configure: add --with-gtk option and default to Gtk+ 2.0 while the 3.0 API is still in flux

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

13 years agotests: add very simple zbar unit test
Tim-Philipp Müller [Wed, 3 Nov 2010 00:04:27 +0000 (00:04 +0000)]
tests: add very simple zbar unit test

Not valgrind clean yet (could be zbar's fault though).

13 years agoapplemedia: make video source element details consistent
Ole André Vadla Ravnås [Thu, 4 Nov 2010 18:25:24 +0000 (19:25 +0100)]
applemedia: make video source element details consistent

Inspired by the v4l2src element details.

13 years agoapplemedia: consistently use gst_element_class_set_details_simple
Ole André Vadla Ravnås [Thu, 4 Nov 2010 18:11:04 +0000 (19:11 +0100)]
applemedia: consistently use gst_element_class_set_details_simple

13 years agocelvideosrc: update e-mail address
Ole André Vadla Ravnås [Thu, 4 Nov 2010 18:02:50 +0000 (19:02 +0100)]
celvideosrc: update e-mail address

13 years agoapplemedia: rename iphonecamerasrc to celvideosrc
Ole André Vadla Ravnås [Thu, 4 Nov 2010 17:59:44 +0000 (18:59 +0100)]
applemedia: rename iphonecamerasrc to celvideosrc

This is in order to improve consistency with the other three sources.

13 years agoavfvideosrc: don't explicitly empty the buffer queue
Ole André Vadla Ravnås [Thu, 4 Nov 2010 16:58:36 +0000 (17:58 +0100)]
avfvideosrc: don't explicitly empty the buffer queue

We're holding the only reference to it so there's no need to explicitly
empty it right before letting go of our reference.

13 years agoavfvideosrc: make buffer offset start from zero
Ole André Vadla Ravnås [Thu, 4 Nov 2010 16:50:33 +0000 (17:50 +0100)]
avfvideosrc: make buffer offset start from zero

13 years agoqtkitvideosrc: implement zero-copy by using buffer-factory
Ole André Vadla Ravnås [Thu, 4 Nov 2010 16:47:25 +0000 (17:47 +0100)]
qtkitvideosrc: implement zero-copy by using buffer-factory

This means we'll wrap each CoreVideo buffer inside a GstBuffer instead of
making a copy.

13 years agobufferfactory: add support for wrapping CVBuffer
Ole André Vadla Ravnås [Thu, 4 Nov 2010 16:44:12 +0000 (17:44 +0100)]
bufferfactory: add support for wrapping CVBuffer

13 years agoqtkitvideosrc: fix up refcounting
Ole André Vadla Ravnås [Thu, 4 Nov 2010 16:24:03 +0000 (17:24 +0100)]
qtkitvideosrc: fix up refcounting

Should keep a strong reference to the device, but we don't need to manage
the reference count of elements of an NSMutableArray as it takes care of
that for us.

13 years agoqtkitvideosrc: simplify timestamping algorithm
Ole André Vadla Ravnås [Thu, 4 Nov 2010 16:16:05 +0000 (17:16 +0100)]
qtkitvideosrc: simplify timestamping algorithm

Aligning timestamps on duration boundaries, skipping frames and so forth
are clearly things that fall outside the scope of a video source.

13 years agoapplemedia: add new iOS video source based on AVFoundation
Ole André Vadla Ravnås [Thu, 4 Nov 2010 13:14:09 +0000 (14:14 +0100)]
applemedia: add new iOS video source based on AVFoundation

This element makes use of the documented AVFoundation framework made
available starting with iOS 4.0, and hence this means we can finally
capture video using a public API.

13 years agoapplemedia: fix stream-format caps used for H.264
Ole André Vadla Ravnås [Thu, 4 Nov 2010 13:24:36 +0000 (14:24 +0100)]
applemedia: fix stream-format caps used for H.264

The stream-format's "avc-sample" member is now called just "avc".

13 years agoapplemedia: update e-mail addresses
Ole André Vadla Ravnås [Thu, 4 Nov 2010 13:29:37 +0000 (14:29 +0100)]
applemedia: update e-mail addresses

13 years agocolorspace: Inverse -base version check logic to actually make sense
Sebastian Dröge [Thu, 4 Nov 2010 13:18:29 +0000 (14:18 +0100)]
colorspace: Inverse -base version check logic to actually make sense

13 years agopcapparse: Add support for Linux Cooked Capture (SLL) frames
Olivier Crête [Wed, 3 Nov 2010 22:34:28 +0000 (18:34 -0400)]
pcapparse: Add support for Linux Cooked Capture (SLL) frames

13 years agopcapparse: Fail on unknown version or linktype
Olivier Crête [Wed, 3 Nov 2010 22:23:27 +0000 (18:23 -0400)]
pcapparse: Fail on unknown version or linktype

The element only knows about major version 2 and only decodes linktype ethernet

13 years agopcapparse: Send error GstMessage if stream doesn't have the expected magic
Olivier Crête [Wed, 3 Nov 2010 22:02:49 +0000 (18:02 -0400)]
pcapparse: Send error GstMessage if stream doesn't have the expected magic

13 years agompegtsparse: send TDT tables messages in a serialized event downstream
Andoni Morales Alastruey [Wed, 3 Nov 2010 15:16:24 +0000 (16:16 +0100)]
mpegtsparse: send TDT tables messages in a serialized event downstream

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

13 years agocolorspace: Add support for IYU1
Sebastian Dröge [Wed, 3 Nov 2010 14:37:48 +0000 (15:37 +0100)]
colorspace: Add support for IYU1

13 years agocolorspace: First version of YUV9 and YVU9 implementation
Sebastian Dröge [Wed, 3 Nov 2010 14:12:42 +0000 (15:12 +0100)]
colorspace: First version of YUV9 and YVU9 implementation

13 years agocolorspace: Use GST_CHECK_PLUGINS_BASE_VERSION() instead of other hacks
Sebastian Dröge [Wed, 3 Nov 2010 08:20:15 +0000 (09:20 +0100)]
colorspace: Use GST_CHECK_PLUGINS_BASE_VERSION() instead of other hacks

13 years agompegvideoparse: fix timestamp generation
Thijs Vermeir [Mon, 18 Oct 2010 13:32:14 +0000 (15:32 +0200)]
mpegvideoparse: fix timestamp generation

Use information from the gop header and picture
header to calculate the picture timestamp. (time_code
and temporal_reference) and adapt to upstream timestamps if
provided.

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

13 years agoapplemedia: switch vtapi to CFTypeRef style typedefs
Ole André Vadla Ravnås [Tue, 2 Nov 2010 22:08:30 +0000 (23:08 +0100)]
applemedia: switch vtapi to CFTypeRef style typedefs

13 years agoapplemedia: support public version of CoreMedia
Ole André Vadla Ravnås [Tue, 2 Nov 2010 21:53:33 +0000 (22:53 +0100)]
applemedia: support public version of CoreMedia

Also rename the relevant API so we mirror the public API more closely, and
switch to CoreFoundation CFTypeRef style typedefs. We still support the old
private CoreMedia in order to not break OS X support.

This means that vtenc and vtdec are now compatible with iOS 4.x, and in
theory also future versions of OS X, where this API may turn public like
it has on iOS.

13 years agozbar: handle more formats that start with an 8-bit Y plane
Tim-Philipp Müller [Tue, 2 Nov 2010 17:46:11 +0000 (17:46 +0000)]
zbar: handle more formats that start with an 8-bit Y plane

We can handle most planar YUV layouts too, as long as we don't
tell zbar about the chroma planes.

13 years agozbar: use correct stride
Tim-Philipp Müller [Tue, 2 Nov 2010 17:18:52 +0000 (17:18 +0000)]
zbar: use correct stride

Fixes detection for images with a width that's not a multiple of four.

Based on patch by: Kaj-Michael Lang <milang@tal.org>
Based on patch by: Stefan Kost <ensonic@users.sf.net>

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

13 years agocolorspace: fix build with current git of gst-plugins-base
Tim-Philipp Müller [Tue, 2 Nov 2010 16:54:59 +0000 (16:54 +0000)]
colorspace: fix build with current git of gst-plugins-base

ifdef tests don't work so well if we define them in the code
above in case they aren't defined.

13 years agozbar: minor clean-up
Tim-Philipp Müller [Tue, 2 Nov 2010 16:35:57 +0000 (16:35 +0000)]
zbar: minor clean-up

Fix typo and use DEFAULT_FOO define for property default.

13 years agozbar: disable cache by default
Tim-Philipp Müller [Tue, 2 Nov 2010 16:32:55 +0000 (16:32 +0000)]
zbar: disable cache by default

Since it breaks still image bar code detection.

13 years agocolorspace: Add support for 8 bit paletted RGB
Sebastian Dröge [Tue, 2 Nov 2010 15:05:37 +0000 (16:05 +0100)]
colorspace: Add support for 8 bit paletted RGB

This needs the 8 bit paletted support from -base
which will be committed after release. Without this
the 8 bit parts are disabled.

13 years agocamerabin: Add missing change to previous commits
Thiago Santos [Tue, 2 Nov 2010 13:24:49 +0000 (10:24 -0300)]
camerabin: Add missing change to previous commits

Forgot to add this change to the latest commits. This fixes the build.

13 years agocamerabin: Fix leaks in the preview handling
Thiago Santos [Tue, 2 Nov 2010 12:39:49 +0000 (09:39 -0300)]
camerabin: Fix leaks in the preview handling

Remember to unref the bus after adding the watch.
Remember to unref the element after getting it with
gst_bin_get_by_name.

13 years agocamerabin: Do not leak a caps
Lasse Laukkanen [Tue, 2 Nov 2010 12:38:20 +0000 (09:38 -0300)]
camerabin: Do not leak a caps

gst_caps_replace doesn't take ownership, but refs the caps. So we
unref the remaining caps.

13 years agocamerabin: Reset pre-night-mode stored fps when mode changes
Thiago Santos [Fri, 24 Sep 2010 19:28:13 +0000 (16:28 -0300)]
camerabin: Reset pre-night-mode stored fps when mode changes

When switching between video/still modes the pre-night-mode fps
should be reset to prevent it being used in the incorrect mode, causing
the videosource to fail configuring itself

13 years agoexamples: camerabin: add support for setting many post-processing elements
Teemu Katajisto [Tue, 21 Sep 2010 13:23:47 +0000 (16:23 +0300)]
examples: camerabin: add support for setting many post-processing elements

Instead of taking a single element as input for the image post
processing option, take a list of comma separated elements
that will be used.

13 years agocamerabin: Store app preferred capture parameters separately
Thiago Santos [Mon, 20 Sep 2010 14:54:20 +0000 (11:54 -0300)]
camerabin: Store app preferred capture parameters separately

Store width/height/fps for video captures in a separate variable
than the one that stores the currently used value.

This prevents the user preferences to be lost when resetting
the currently used dimensions for night mode, for example

13 years agocamerabin: cleanup used caps when going to NULL
Thiago Santos [Mon, 20 Sep 2010 11:42:41 +0000 (08:42 -0300)]
camerabin: cleanup used caps when going to NULL

Resets used caps so that camerabin doesn't try to use them
when restarting, where elements/properties might have changed
and the old caps be incompatible