Nicolas Dufresne
4956b46bab
v4l2object: Split _v4l2fourcc_to_video_format
...
https://bugzilla.gnome.org/show_bug.cgi?id=720568
2014-01-10 17:13:22 -05:00
Nicolas Dufresne
e1be685c34
v4l2bufferpool: Request buffers only once
...
VIDIOC_REQBUFS allocates buffer, it has no place inside set_config. Also, some driver do
no allow multiple calls to this ioctl.
https://bugzilla.gnome.org/show_bug.cgi?id=720568
2014-01-10 17:13:22 -05:00
Nicolas Dufresne
b80169a16a
v4l2object: Don't validate dimension for encoded format
...
We set the dimensions just in case but don't validate them
afterwards. For some codecs the dimensions are *not* in the
bitstream, IIRC VC1 in ASF mode for example.
https://bugzilla.gnome.org/show_bug.cgi?id=720568
2014-01-10 17:13:22 -05:00
Nicolas Dufresne
4a85f90c79
v4l2object: Quirks for dev without initial format
...
Most M2M have undefined behaviour initially when VIDIOC_G_FMT is called.
https://bugzilla.gnome.org/show_bug.cgi?id=720568
2014-01-10 17:13:22 -05:00
Nicolas Dufresne
080f58166e
v4l2object: Add gst_v4l2_object_open_shared()
...
https://bugzilla.gnome.org/show_bug.cgi?id=720568
2014-01-10 17:13:22 -05:00
Nicolas Dufresne
cf32d6ec43
v4l2object: Implement gst_v4l2_dup()
...
This will duplicated the FD from another object and copy over the probed result.
https://bugzilla.gnome.org/show_bug.cgi?id=720568
2014-01-10 17:13:22 -05:00
Nicolas Dufresne
7fd6dc08b9
v4l2object: make IO_MODE enum public
...
This is to allow adding a second io-mode property on M2M device like decoder so
input and output can be controlled separatly.
https://bugzilla.gnome.org/show_bug.cgi?id=720568
2014-01-10 17:13:22 -05:00
Nicolas Dufresne
203e245134
v4l2: better handle quirks activation
...
This way we can activate deactivate those quirks all at once at one
place.
https://bugzilla.gnome.org/show_bug.cgi?id=720568
2014-01-10 17:13:22 -05:00
Nicolas Dufresne
092e7605d3
v4l2: Fix h264 caps
...
V4L2_PIX_FMT_H264 is documentated as byte-stream (with start code). The ensure proper
negotiation with element like h264parse.
https://bugzilla.gnome.org/show_bug.cgi?id=720568
2014-01-10 17:13:22 -05:00
Nicolas Dufresne
e821de3494
v4l2object: Split caps in different categories
...
This is need to correctly expose capabilities on specialized devices
like decoders and encoders.
https://bugzilla.gnome.org/show_bug.cgi?id=720568
2014-01-10 17:13:13 -05:00
Sebastian Rasmussen
3f8b423516
v4l2: Handle v4l2_ioctl() errors even in error handling
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=721268
2014-01-03 10:59:57 +01:00
Jeremy Huddleston Sequoia
2bc631bcd0
osxvideo: unifdef -DRUN_NS_APP_THREAD
2014-01-02 10:01:54 +01:00
Jeremy Huddleston Sequoia
6fe2115d77
osxvideo: Assume SDK and deployment target are at least Snow Leopard
2014-01-02 10:01:28 +01:00
Sebastian Dröge
5b1c0a4cfd
osx: Make OSX version checks more consistent
...
And especially also consider update versions, e.g. 10.5 with updates
will be 1051 or similar and thus bigger than MAC_OS_X_VERSION_10_5 but
still won't have the API we want to use.
2013-12-31 10:11:24 +01:00
Jeremy Huddleston
3d163680f0
osxvideosink: Fix build on updated OS X Leopard
...
https://bugzilla.gnome.org/show_bug.cgi?id=721245
2013-12-31 10:11:24 +01:00
Alessandro Decina
fdf8ac40d8
osxvideosink: fix segfault when dealing with padded frames
...
Fixes crashes with vtdec ! osxvideosink where VideoToolbox outputs padded UYVY
2013-12-08 16:51:00 +01:00
Julien Isorce
3c70741e45
v4l2bufferpool: add support for multi-planar V4l2 API in DMABUF mode
...
Fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=712754
2013-12-04 09:28:25 +00:00
Julien Isorce
303cec48db
v4l2: refactor by emulating one v4l2_plane in non-MPLANE mode
...
so that the buffer informations can be retrieved the same way
in both MPLANE and non-MPLANE mode.
Here "emulating" means "manually fill in the plane".
Fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=712754
2013-12-04 09:28:08 +00:00
Julien Isorce
61ae84b50d
v4l2: add support for multi-planar V4L2 API
...
This api is in linux kernel since version 2.6.39,
and present in all version 3.
The commit that adds the API in master branch of the
linux kernel source is:
f8f3914cf9
v4l2 doc: "Some devices require data for each input
or output video frame to be placed in discontiguous
memory buffers"
There are newer structures 'struct v4l2_pix_format_mplane'
and 'struct v4l2_plane'.
So the pixel format is not setup with the same API when using
multi-planar.
Also for gst-v4l2, one of the difference is that in GstV4l2Meta
there are now one mem pointer for each maped plane.
When not using multi-planar, this commit takes care of keeping
the same code path than previously. So that the 2 cases are
in two different blocks triggered from V4L2_TYPE_IS_MULTIPLANAR.
Fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=712754
2013-12-04 09:27:20 +00:00
Nicolas Dufresne
90ac945dcc
v4l2object: Use space instead of tabs
...
https://bugzilla.gnome.org/show_bug.cgi?id=712754
2013-11-25 13:44:50 -05:00
Nicolas Dufresne
f18290226a
v4l2object: Fix header indentation so it's readable again
...
It's unfortunate to have to do this, but with the mix of tabs and space, plus all the random
indentation this header has become very hard to read.
https://bugzilla.gnome.org/show_bug.cgi?id=712754
2013-11-25 13:44:35 -05:00
Michael Olbrich
f8f2fc3e86
v4l2: clear cached caps on close
...
A different device with different caps may be used for the next open.
https://bugzilla.gnome.org/show_bug.cgi?id=712611
2013-11-21 14:14:24 -05:00
Tim-Philipp Müller
d506409af5
docs: get rid of 'Since: 0.10.x' markers
...
And some gtk-doc markup fixes.
2013-11-18 14:47:35 +00:00
Marc Leeman
be01e80e6b
v4l2object: print FOURCC_FORMAT when enumerating
...
https://bugzilla.gnome.org/show_bug.cgi?id=712206
2013-11-13 13:52:49 +01:00
Marc Leeman
bc87f39a90
v4l2: init v4l2_buffer to 0x0 before ioctl
...
https://bugzilla.gnome.org/show_bug.cgi?id=712137
2013-11-12 13:08:33 -05:00
Andoni Morales Alastruey
619f4f5c5a
osxaudiosink: fix segfault when we can't get the channels layout
2013-11-07 00:53:48 +01:00
Matthieu Bouron
d57b9628fc
osxvideosink: fix missing selector name warnings
...
The spaces matter in ObjC
https://bugzilla.gnome.org/show_bug.cgi?id=711013
2013-10-28 14:40:16 +00:00
Peter Korsgaard
94f3d6fc07
v4l2bufferpool: O_CLOEXEC needs _GNU_SOURCE
...
On some systems (E.G. uClibc and older Glibc versions), O_CLOEXEC is only
defined when _GNU_SOURCE is specified, so do so.
_GNU_SOURCE needs to be defined before any system headers are included,
so move the fcntl.h section up.
https://bugzilla.gnome.org/show_bug.cgi?id=709423
2013-10-04 14:33:43 +02:00
Tim-Philipp Müller
51ff79842d
v4l2src: print probed caps as caps again in debug log
...
This got lost during refactoring.
2013-10-03 18:33:01 +01:00
Andoni Morales Alastruey
05f6c094fa
osxvideosink: fix segfault releasing the sink
...
show_frame is deferred to the main thread and can be called
when the sink has been released, so we need to keep an extra ref
on ObjectiveC object helper.
https://bugzilla.gnome.org/show_bug.cgi?id=708501
2013-09-24 09:59:51 +02:00
Robert Krakora
141a1fc296
v4l2bufferpool: Restore original GstMemory in buffer if it has been changed
...
https://bugzilla.gnome.org/show_bug.cgi?id=706083
2013-09-23 11:58:39 -04:00
Olivier Crête
19021e7176
v4l2: Remove commented out line
2013-09-19 17:39:17 -04:00
Olivier Crête
d1e16f7b0c
v4l2bufferpool: dmabuf is not a singleton anymore
...
https://bugzilla.gnome.org/show_bug.cgi?id=707793
2013-09-18 15:13:59 -04:00
Mathieu Duponchelle
374a97a3e9
v4l2: Use newly #defined metadata names.
2013-09-09 15:39:17 +02:00
Sebastian Dröge
478f0dcfe7
v4l2bufferpool: Fix missing condition in previous commit
2013-09-09 14:46:42 +02:00
Sebastian Dröge
1e7c3e4520
v4l2bufferpool: Also fix strides for other semi-planar video formats
2013-09-09 14:45:55 +02:00
Andreea Fulger
78adf28a61
v4l2bufferpool: Fix stride for NV12/NV21
...
https://bugzilla.gnome.org/show_bug.cgi?id=707758
2013-09-09 14:45:55 +02:00
Tim-Philipp Müller
1dfc1f2686
Don't use setlocale in plugins()
...
Only apps should call setlocale(), not libraries.
2013-09-01 21:18:38 +01:00
Sebastian Dröge
7692e9e569
directsoundsink: WAVEFORMATEX is unsigned for 8 bit integers, and signed for others
...
Probably fixes
https://bugzilla.gnome.org/show_bug.cgi?id=705477
2013-08-21 16:41:21 +02:00
Olivier Crête
d595c08aca
v4l2: Add forward declaration for gst_v4l2_object_get_format_list
2013-08-19 13:19:42 -04:00
Olivier Crête
48caa1712a
v4l2: De-duplicate caps probing between src and sink
2013-08-19 13:08:18 -04:00
Olivier Crête
24286f1612
v4l2: Use G_DEFINE_ macros for added thread safety
2013-08-19 12:48:35 -04:00
Tim-Philipp Müller
fdddc35f20
v4l2: remove unused enumtypes and use generic marshaller
2013-08-04 11:03:49 +01:00
Alessandro Decina
0df7af07ce
osxaudiosink: intersect the probed caps with the filter passed to get_caps()
2013-07-25 08:24:45 +02:00
Andoni Morales Alastruey
fbafca49f8
osxvideosink: warn about the future deprecation of the "embed" property
2013-07-17 13:29:42 +02:00
Andoni Morales Alastruey
d57ef52cad
osxvideosink: defer the window handle setup to the main thread
2013-07-10 17:43:00 +02:00
Andoni Morales Alastruey
34a5b93637
osxvideosink: default to the main in case we are not setup yet
2013-07-10 17:43:00 +02:00
Andoni Morales Alastruey
0e321b87d4
osxvideosink: close the internal window correctly
2013-07-10 17:43:00 +02:00
Andoni Morales Alastruey
213fa3af0d
osxvideosink: only create the NS app thread for Cocoa once
...
The helper thread for Cocoa, in case no NS run loop is running,
should be started only once and shared across all the instances
running
2013-07-10 17:42:59 +02:00
Michael Olbrich
07e4dd3424
v4l2: bufferpool: don't forget to release buffer on error
...
If the pool is stopped while gst_v4l2_buffer_pool_dqbuf() waits for a
buffer then the return value is GST_FLOW_FLUSHING. In this case the buffer
to queue must also be released. Otherwise is will never be deleted or
returned to its pool.
https://bugzilla.gnome.org/show_bug.cgi?id=703764
2013-07-08 16:27:19 +02:00