platform/upstream/gst-plugins-good.git
13 years agov4l2: remove unused variables
Wim Taymans [Wed, 27 Jul 2011 14:46:46 +0000 (16:46 +0200)]
v4l2: remove unused variables

Use the more specialized type for the bufferpool.
Use the size from the driver as the size of the image to read.
Don't configure the pool when created. This will be done in the setup_allocation
method later or by upstream for sinks.
Remove unused properties and variables. Bufferpool sizes are now configured in
the bufferpool by the elements in the pipeline. We might want to influence the
pool size later somehow.

13 years agov4l2bufferpool: remove unused variable
Wim Taymans [Wed, 27 Jul 2011 11:46:09 +0000 (13:46 +0200)]
v4l2bufferpool: remove unused variable

13 years agov4l2src: add metadata
Wim Taymans [Wed, 27 Jul 2011 11:43:08 +0000 (13:43 +0200)]
v4l2src: add metadata

13 years agobufferpool: check for metadata
Wim Taymans [Wed, 27 Jul 2011 11:41:28 +0000 (13:41 +0200)]
bufferpool: check for metadata

Only add video metadata when it was configured in the pool. Fail if there was no
video metadata configured and the strides are not the default ones.

13 years agowarp: add stride support
Wim Taymans [Wed, 27 Jul 2011 11:42:21 +0000 (12:42 +0100)]
warp: add stride support

13 years agov4l2: add colorspace to debug
Wim Taymans [Wed, 27 Jul 2011 11:41:33 +0000 (12:41 +0100)]
v4l2: add colorspace to debug

13 years agortp: fix compilation
Wim Taymans [Tue, 26 Jul 2011 15:45:01 +0000 (17:45 +0200)]
rtp: fix compilation

13 years agov4l2: rename a variable
Wim Taymans [Tue, 26 Jul 2011 14:15:05 +0000 (16:15 +0200)]
v4l2: rename a variable

Rename the size variable to sizeimage and fill it with the size that has been
given to use by the v4l2 driver instead of making something up..

13 years agov4l2: use new setup_allocation vmethod
Wim Taymans [Tue, 26 Jul 2011 11:18:55 +0000 (13:18 +0200)]
v4l2: use new setup_allocation vmethod

13 years agov4l2: implement more bits of RW I/O mode
Wim Taymans [Tue, 26 Jul 2011 09:56:07 +0000 (10:56 +0100)]
v4l2: implement more bits of RW I/O mode

Implement the relaese of RW buffers in the pool.
Warn for unsupported write() mode for sinks.

13 years agov4l2: improve IO mode error handling
Wim Taymans [Tue, 26 Jul 2011 09:54:23 +0000 (10:54 +0100)]
v4l2: improve IO mode error handling

Error out when an unsupported IO mode was selected

13 years agov4l2: remove unused method
Wim Taymans [Mon, 25 Jul 2011 13:51:22 +0000 (15:51 +0200)]
v4l2: remove unused method

13 years agov4l2: fix flushing start and stop
Wim Taymans [Mon, 25 Jul 2011 13:38:38 +0000 (15:38 +0200)]
v4l2: fix flushing start and stop

Move the flushing calls to the right place in the bufferpool.
Fix the min and max buffer sizes.

13 years agov4l2: dequeue buffers when all are queued
Wim Taymans [Mon, 25 Jul 2011 13:47:05 +0000 (14:47 +0100)]
v4l2: dequeue buffers when all are queued

Prefer to always use the default bufferpool queue for the _acquire function
because it properly supports unblocking when setting inactive etc. As a result,
we need to dequeue buffers and put them back in the bufferpool queue when we
have queued all buffers in the sink.
Rename some variables to more meaningfull names to avoid a problem with
freeing the wrong amount of buffers.

13 years agovertigotv: add stride support
Wim Taymans [Mon, 25 Jul 2011 09:10:58 +0000 (10:10 +0100)]
vertigotv: add stride support

13 years agov4l2: only to STREAMOFF when streaming
Wim Taymans [Tue, 19 Jul 2011 17:25:29 +0000 (18:25 +0100)]
v4l2: only to STREAMOFF when streaming

Only call STREAMOFF when we previously called STREAMON

13 years agoreplay: fix for event handler
Wim Taymans [Fri, 22 Jul 2011 19:26:32 +0000 (21:26 +0200)]
replay: fix for event handler

13 years agofixes for event handler changes
Wim Taymans [Fri, 22 Jul 2011 19:19:45 +0000 (21:19 +0200)]
fixes for event handler changes

13 years agov4l2: handle unsupported formats
Wim Taymans [Tue, 19 Jul 2011 17:20:43 +0000 (18:20 +0100)]
v4l2: handle unsupported formats

13 years agov4l2: Fix sink bufferpool handling
Wim Taymans [Tue, 19 Jul 2011 15:59:55 +0000 (16:59 +0100)]
v4l2: Fix sink bufferpool handling

Remove old method, use neww _process method for the sink.
Inform the parent bufferpool class about the settings too. This is needed to let
it know about the max-buffers.
Allocate the negotiated max-buffers and initially mmap min-buffers. The idea is
that the bufferpool will allocate more when needed.
Improve debugging.
Only poll in capture mode, it does not seem to work in playback mode on this
beagleboard.

13 years agov4l2: More work on bufferpools
Wim Taymans [Mon, 18 Jul 2011 16:54:49 +0000 (18:54 +0200)]
v4l2: More work on bufferpools

Add different transport methods to the bufferpool (MMAP and READ/WRITE)
Do more parsing of the bufferpool config.
Start and stop streaming based on the bufferpool state.
Make separate methods for getting a buffer from the pool and filling it with
data. This allows us to fill buffers from other pools too. Either use copy or
read to fill up the target buffers.
Add property to force a transfer mode in v4l2src.
Increase default number of buffers to 4.
Negotiate bufferpool and its properties in v4l2src.

13 years agov4l2: add IO method enum
Wim Taymans [Mon, 18 Jul 2011 08:52:23 +0000 (10:52 +0200)]
v4l2: add IO method enum

13 years agobufferpool: improve _new function
Wim Taymans [Mon, 18 Jul 2011 08:51:21 +0000 (10:51 +0200)]
bufferpool: improve _new function

13 years agoMerge branch 'master' into 0.11
Wim Taymans [Fri, 15 Jul 2011 15:06:39 +0000 (17:06 +0200)]
Merge branch 'master' into 0.11

13 years agov4l2: implement setup_allocation
Wim Taymans [Fri, 15 Jul 2011 14:55:50 +0000 (16:55 +0200)]
v4l2: implement setup_allocation

Implement the setup_allocation vmethod, we'll hopefully do something clever in
there later.

13 years agov4l2: improve bufferpool config setting
Wim Taymans [Fri, 15 Jul 2011 15:26:06 +0000 (16:26 +0100)]
v4l2: improve bufferpool config setting

Pass the caps and the default video size to the bufferpool config.
Don't activate the bufferpool, this will be done by the object that decides to
use the bufferpool.
Improve debugging and error reporting.

13 years agov4l2: handle dequeueing correcly
Wim Taymans [Fri, 15 Jul 2011 12:52:38 +0000 (13:52 +0100)]
v4l2: handle dequeueing correcly

First clean up the buffers in the queue, then the remaining ones in the
device.

13 years agov4l2: unref copied buffer
Wim Taymans [Fri, 15 Jul 2011 12:29:42 +0000 (13:29 +0100)]
v4l2: unref copied buffer

After we copy the incomming buffer to one of our bufferpool buffers, unref the
target buffer after rendering so that it is put back in the pool.

13 years agov4l2: dequeue buffers for the sink
Wim Taymans [Fri, 15 Jul 2011 12:07:11 +0000 (13:07 +0100)]
v4l2: dequeue buffers for the sink

When we have all buffers queued for playback and we need a new empty buffer,
dequeue one and return it.
Set the right size for sink buffers.
Improve counting of queued buffers.

13 years agov4l2: use the parent queue for the sink
Wim Taymans [Fri, 15 Jul 2011 11:35:14 +0000 (12:35 +0100)]
v4l2: use the parent queue for the sink

We want to maintain a queue of free buffers for the sink, use the parent methods
to do that.

13 years agov4l2: fix error messages
Wim Taymans [Fri, 15 Jul 2011 10:00:54 +0000 (12:00 +0200)]
v4l2: fix error messages

13 years agov4l2: add ALLOCATION query to the sink
Wim Taymans [Fri, 15 Jul 2011 09:30:25 +0000 (11:30 +0200)]
v4l2: add ALLOCATION query to the sink

13 years agov4l2: convert to GstBufferPool
Wim Taymans [Fri, 15 Jul 2011 09:27:18 +0000 (11:27 +0200)]
v4l2: convert to GstBufferPool

Extend from GstBufferPool.
Handle the lifetime of the pool buffers correctly with the start/stop vmethods.
Map acquire and release directly to QBUF and DQBUF. We still expose an explicit
qbuf for the v4l2sink for now.

13 years agov4l2: remove experimental markers
Wim Taymans [Fri, 15 Jul 2011 09:18:03 +0000 (11:18 +0200)]
v4l2: remove experimental markers

13 years agortppcmApay/depay: Static clock rates on static payloads, dynamic on dynamic
Olivier Crête [Fri, 15 Jul 2011 00:10:02 +0000 (20:10 -0400)]
rtppcmApay/depay: Static clock rates on static payloads, dynamic on dynamic

Partially reverts 397dc60b

13 years agov4l2: merge code
Wim Taymans [Thu, 14 Jul 2011 14:21:36 +0000 (16:21 +0200)]
v4l2: merge code

13 years agov4l2: Move output details to device object
Wim Taymans [Thu, 14 Jul 2011 14:12:15 +0000 (16:12 +0200)]
v4l2: Move output details to device object

Move the details of how a buffer is rendered to the device object.

13 years agortph264pay: Implement getcaps
Olivier Crête [Fri, 4 Mar 2011 20:41:22 +0000 (15:41 -0500)]
rtph264pay: Implement getcaps

Convert profile-level-id from RTP caps into video/x-h264 style caps (with profile and level)

13 years agov4l2: move capture code to device object
Wim Taymans [Wed, 13 Jul 2011 16:32:00 +0000 (18:32 +0200)]
v4l2: move capture code to device object

Move the details of how to capture to the device object. Remove the
v4l2src_calls.[ch] files because they are empty now.
Provide two simple methods to get and return a buffer to the device.
Also do a slow copy when the buffer is not from our pool.

13 years agov4l2: add some more debug
Wim Taymans [Wed, 13 Jul 2011 14:58:08 +0000 (16:58 +0200)]
v4l2: add some more debug

13 years agov4l2: stop streaming in READY and NULL
Wim Taymans [Wed, 13 Jul 2011 15:56:21 +0000 (16:56 +0100)]
v4l2: stop streaming in READY and NULL

13 years agov4l2: start streaming for the output as well
Wim Taymans [Wed, 13 Jul 2011 14:40:39 +0000 (16:40 +0200)]
v4l2: start streaming for the output as well

13 years agov4l2: Let the device object manage the pool
Wim Taymans [Wed, 13 Jul 2011 14:33:58 +0000 (16:33 +0200)]
v4l2: Let the device object manage the pool

Rename start and stop methods to open and close because that is what they do.
After setting the format on the device object, setup the bufferpools. Move this
code from the v4l2src_calls.c file, it is shared between source and sink.
Make new device start and stop method that merges various bits of common code
spread over several files.

13 years agov4l2: don't store stride in the videoinfo
Wim Taymans [Wed, 13 Jul 2011 12:52:30 +0000 (13:52 +0100)]
v4l2: don't store stride in the videoinfo

We want to keep the default strides in the videoinfo. Keep the stride of the
video frames separate so that we can use both to copy a video frame and do
correct stride conversion.

13 years agov4l2: Use video frame copy for raw video
Wim Taymans [Wed, 13 Jul 2011 11:38:15 +0000 (13:38 +0200)]
v4l2: Use video frame copy for raw video

Use the video frame copy API for raw video frames so that we copy with the right
strides.

13 years agov4l2: add video metadata to raw video buffers
Wim Taymans [Wed, 13 Jul 2011 11:37:58 +0000 (13:37 +0200)]
v4l2: add video metadata to raw video buffers

13 years agov4l2: small cleanups
Wim Taymans [Wed, 13 Jul 2011 11:15:05 +0000 (13:15 +0200)]
v4l2: small cleanups

13 years agov4l2: improve caps parsing
Wim Taymans [Wed, 13 Jul 2011 11:00:42 +0000 (13:00 +0200)]
v4l2: improve caps parsing

Use GstVideoInfo to store the parsed caps.
Remove outsize from the caps parsing code, it's wrong because it does not use
the stride given by the driver.

13 years agov4l2: use errno
Wim Taymans [Wed, 13 Jul 2011 10:40:11 +0000 (11:40 +0100)]
v4l2: use errno

13 years agov4l2: handle EINVAL without posting a warning
Wim Taymans [Wed, 13 Jul 2011 09:36:54 +0000 (11:36 +0200)]
v4l2: handle EINVAL without posting a warning

EINVAL means that a call is not supported, we only want to post a WARNING when
something is really wrong.

13 years agov4l2: only set framerate for capture for now
Wim Taymans [Wed, 13 Jul 2011 09:29:26 +0000 (11:29 +0200)]
v4l2: only set framerate for capture for now

13 years agov4l2: Move configuration of framerate to _set_format
Wim Taymans [Wed, 13 Jul 2011 09:19:28 +0000 (11:19 +0200)]
v4l2: Move configuration of framerate to _set_format

Move the configuration of the framerate to where we set the other format
parameters.
Remove hack to check if the device is active.
Store streamparm in the device info.
Use some macros to access the current device configuration.
Remove some duplicate fields in src and sink and use the device configuration
instead.

13 years agov4l2: fix return value...
Wim Taymans [Tue, 12 Jul 2011 17:13:45 +0000 (19:13 +0200)]
v4l2: fix return value...

13 years agov4l2: simplify setting the capture format
Wim Taymans [Tue, 12 Jul 2011 18:03:32 +0000 (19:03 +0100)]
v4l2: simplify setting the capture format

Pass the caps to the set_format function and make _set_format parse the caps.
Also keep the parsed values in the v4l2object so that we can refer to them when
we want.

13 years agov4l2: remove more unused parameters
Wim Taymans [Tue, 12 Jul 2011 17:41:47 +0000 (18:41 +0100)]
v4l2: remove more unused parameters

13 years agov4l: handle object out of the normal flow
Wim Taymans [Tue, 12 Jul 2011 17:29:35 +0000 (18:29 +0100)]
v4l: handle object out of the normal flow

13 years agov4l2: Let the bufferpool own the V4l2Object
Wim Taymans [Tue, 12 Jul 2011 16:13:42 +0000 (18:13 +0200)]
v4l2: Let the bufferpool own the V4l2Object

Keep track of the currently configured format and setting in the
v4l2object.
Pass the v4l2object to the bufferpool constructor so that the bufferpool can
know everything about the currently configured settings. This also allows us
to remove some awkward code.

13 years agov4l: remove caps argument, it's not needed
Wim Taymans [Tue, 12 Jul 2011 15:06:41 +0000 (17:06 +0200)]
v4l: remove caps argument, it's not needed

Remove the caps parameter, we don't need it anymore because we don't set
caps on buffers anymore.

13 years agov4l: pass the bytesperline around
Wim Taymans [Tue, 12 Jul 2011 15:46:21 +0000 (16:46 +0100)]
v4l: pass the bytesperline around

When setting a format, return the bytesperline to the caller so that it can be
used to allocate buffers.

13 years agopool: make buffer writable
Wim Taymans [Tue, 12 Jul 2011 15:43:04 +0000 (16:43 +0100)]
pool: make buffer writable

We need writable buffers when we need to do a slow memcpy.

13 years agortspsrc: fix seeking regression
Mark Nauwelaerts [Tue, 12 Jul 2011 13:04:38 +0000 (15:04 +0200)]
rtspsrc: fix seeking regression

... introduced when shuffling around code for the async implementation
by setting state of source (and udp sources) in _play before downstream
flushing is undone.

13 years agoac3parse: fix buffer duration on blocks-per-frame change
René Stadler [Mon, 11 Jul 2011 12:23:41 +0000 (15:23 +0300)]
ac3parse: fix buffer duration on blocks-per-frame change

The gst_base_parse_set_frame_rate call was predicated on a change to
sample rate, duration or profile. However, the block count per frame can
also change between packets, which would result in incorrect buffer
durations.

13 years agov4l2sink: handle pools
Wim Taymans [Mon, 11 Jul 2011 11:51:52 +0000 (13:51 +0200)]
v4l2sink: handle pools

Create a new pool in setcaps and stop/destroy the old one.
Remove buffer_alloc functions.
Check that we have v4l2 metadata in show_frame and fall back to memcpy into a
buffer from our pool if we don't receive one of our own buffers.

13 years agov4l2: various cleanups
Wim Taymans [Mon, 11 Jul 2011 10:04:57 +0000 (12:04 +0200)]
v4l2: various cleanups

Various cleanups, avoids useless casts, move error handling outside of the main
code flow.
Negotiate to a resonable resolution instead of the max resolution.

13 years agortp: port remaining to 0.11
Mark Nauwelaerts [Sun, 10 Jul 2011 19:50:19 +0000 (21:50 +0200)]
rtp: port remaining to 0.11

13 years agoximage: port to 0.11
Wim Taymans [Sun, 10 Jul 2011 12:56:00 +0000 (14:56 +0200)]
ximage: port to 0.11

13 years agoy4m: port some more
Wim Taymans [Sun, 10 Jul 2011 11:44:49 +0000 (13:44 +0200)]
y4m: port some more

Use video helpers.

13 years agoy4m: port to 0.11
Wim Taymans [Sun, 10 Jul 2011 11:28:27 +0000 (13:28 +0200)]
y4m: port to 0.11

13 years agomultipart: port to 0.11
Wim Taymans [Sun, 10 Jul 2011 10:46:03 +0000 (12:46 +0200)]
multipart: port to 0.11

13 years agoMerge branch 'master' into 0.11
Wim Taymans [Sun, 10 Jul 2011 09:42:37 +0000 (11:42 +0200)]
Merge branch 'master' into 0.11

13 years agodebug: port to 0.11, disable others
Wim Taymans [Sun, 10 Jul 2011 09:40:40 +0000 (11:40 +0200)]
debug: port to 0.11, disable others

Diasable the efence and capsdebug elements, port them later.

13 years agomultifilesrc: Improve looping
David Schleef [Sun, 10 Jul 2011 02:23:41 +0000 (19:23 -0700)]
multifilesrc: Improve looping

Add start-index and stop-index properties.

13 years agomultifile: add loop property to multifilesrc
Jonny Lamb [Thu, 16 Jun 2011 12:57:03 +0000 (13:57 +0100)]
multifile: add loop property to multifilesrc

Fixes: #652727

Signed-off-by: Jonny Lamb <jonnylamb@jonnylamb.com>
Signed-off-by: David Schleef <ds@schleef.org>
13 years agodirectsoundsink: 16-bit audio is signed, 8-bit is unsigned.
Philip Jägenstedt [Fri, 20 Nov 2009 09:07:43 +0000 (10:07 +0100)]
directsoundsink: 16-bit audio is signed, 8-bit is unsigned.

Pretending to handle 8-bit signed causes distorted audio when
actually given such audio, which you will get if passing 8-bit
unsigned through audioconvert ! audioresample, as audioresample
only handles 8-bit signed.  Fixes #605834.

Signed-off-by: David Schleef <ds@schleef.org>
13 years agov4l2: fix gray format, use filter in getcaps
Wim Taymans [Fri, 8 Jul 2011 14:37:11 +0000 (16:37 +0200)]
v4l2: fix gray format, use filter in getcaps

13 years agov4l2: port and enable v4l2sink
Wim Taymans [Fri, 8 Jul 2011 14:10:47 +0000 (16:10 +0200)]
v4l2: port and enable v4l2sink

13 years agov4l2src: port to new video formats
Wim Taymans [Fri, 8 Jul 2011 12:34:40 +0000 (14:34 +0200)]
v4l2src: port to new video formats

13 years agoMerge branch 'master' into 0.11
Wim Taymans [Fri, 8 Jul 2011 10:51:14 +0000 (12:51 +0200)]
Merge branch 'master' into 0.11

13 years agov4l2: port to 0.11
Wim Taymans [Fri, 8 Jul 2011 10:49:12 +0000 (12:49 +0200)]
v4l2: port to 0.11

13 years agomatroskademux: handle blocks with duration=0
Alexey Fisher [Thu, 7 Jul 2011 16:27:36 +0000 (18:27 +0200)]
matroskademux: handle blocks with duration=0

Some video frames, for example alt-ref frame in VP8, will be
never displayed. This is why it has duration=0.

This patch allow to use this duration.

Bug: 654175
Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
13 years agoqtmux: Add direct dirac mapping
David Schleef [Thu, 7 Jul 2011 00:18:05 +0000 (17:18 -0700)]
qtmux: Add direct dirac mapping

13 years agoeffectv: port last effectv element to 0.11
Wim Taymans [Thu, 7 Jul 2011 15:59:04 +0000 (17:59 +0200)]
effectv: port last effectv element to 0.11

13 years agoeffectv: port streaktv to 0.11
Wim Taymans [Thu, 7 Jul 2011 15:49:34 +0000 (17:49 +0200)]
effectv: port streaktv to 0.11

13 years agoeffectv: port radioactv to 0.11
Wim Taymans [Thu, 7 Jul 2011 15:40:22 +0000 (17:40 +0200)]
effectv: port radioactv to 0.11

13 years agoeffectv: fix docs
Wim Taymans [Thu, 7 Jul 2011 15:29:58 +0000 (17:29 +0200)]
effectv: fix docs

13 years agoeffectv: port op to 0.11
Wim Taymans [Thu, 7 Jul 2011 15:29:44 +0000 (17:29 +0200)]
effectv: port op to 0.11

13 years agoeffectv: port quark tv
Wim Taymans [Thu, 7 Jul 2011 15:18:21 +0000 (17:18 +0200)]
effectv: port quark tv

13 years agoeffectv: port revtv to 0.11
Wim Taymans [Thu, 7 Jul 2011 14:57:39 +0000 (16:57 +0200)]
effectv: port revtv to 0.11

13 years agoeffectv: port vertigotv to 0.11
Wim Taymans [Thu, 7 Jul 2011 14:46:51 +0000 (16:46 +0200)]
effectv: port vertigotv to 0.11

13 years agoeffectv: port shagadelictv to 0.11
Wim Taymans [Thu, 7 Jul 2011 14:38:10 +0000 (16:38 +0200)]
effectv: port shagadelictv to 0.11

13 years agoauparse: use ALWAYS src pad rather than SOMETIMES
Mark Nauwelaerts [Thu, 7 Jul 2011 09:22:26 +0000 (11:22 +0200)]
auparse: use ALWAYS src pad rather than SOMETIMES

13 years agoauparse: port to 0.11
Mark Nauwelaerts [Thu, 7 Jul 2011 09:14:16 +0000 (11:14 +0200)]
auparse: port to 0.11

13 years agoshapewipe: beginnings of porting
Wim Taymans [Wed, 6 Jul 2011 17:03:52 +0000 (19:03 +0200)]
shapewipe: beginnings of porting

13 years agowarptv: port to 0.11
Wim Taymans [Wed, 6 Jul 2011 16:50:26 +0000 (18:50 +0200)]
warptv: port to 0.11

13 years agodice: keep track of info
Wim Taymans [Wed, 6 Jul 2011 16:50:15 +0000 (18:50 +0200)]
dice: keep track of info

13 years agoeffectv: port dice
Wim Taymans [Wed, 6 Jul 2011 16:32:45 +0000 (18:32 +0200)]
effectv: port dice

13 years agoeffectv: port agingtv
Wim Taymans [Wed, 6 Jul 2011 16:09:49 +0000 (18:09 +0200)]
effectv: port agingtv

13 years agoaasink: port to new video API
Wim Taymans [Wed, 6 Jul 2011 15:50:54 +0000 (17:50 +0200)]
aasink: port to new video API

13 years agocacasink: port to 0.11
Wim Taymans [Wed, 6 Jul 2011 15:40:20 +0000 (17:40 +0200)]
cacasink: port to 0.11

13 years agojpeg: beginnings of porting to 0.11
Wim Taymans [Wed, 6 Jul 2011 14:50:32 +0000 (16:50 +0200)]
jpeg: beginnings of porting to 0.11