Michael Olbrich
3466796f10
v4l2: add support for mpeg4 and H.263
...
https://bugzilla.gnome.org/show_bug.cgi?id=698826
2013-04-26 14:26:15 +02:00
Philipp Zabel
305023fe9d
v4l2: handle ENODATA return value for VIDIOC_ENUMSTD
...
In kernel v3.7-rc1, VIDIOC_ENUMSTD returns ENODATA if the current input
does not support the STD API.
https://bugzilla.gnome.org/show_bug.cgi?id=698827
2013-04-25 15:40:59 +02:00
Michael Olbrich
2e80c0d2c0
v4l2: bufferpool: reset buffer size in release_buffer
...
The buffer might still be in use elsewhere when dequeuing buffers for
outputs.
https://bugzilla.gnome.org/show_bug.cgi?id=698822
2013-04-25 12:34:24 +02:00
Michael Olbrich
8f9cc96a69
v4l2: bufferpool: remove unused includes
...
The hacks that needed these are long gone.
https://bugzilla.gnome.org/show_bug.cgi?id=698821
2013-04-25 11:30:48 +01:00
Todd Agulnick
a30634a248
osxaudio: Use gst_audio_channel_positions_to_mask() to create mask
...
https://bugzilla.gnome.org/show_bug.cgi?id=698807
2013-04-25 09:57:26 +02:00
Todd Agulnick
e7710c2655
osxaudio: Remove unused code
2013-04-25 09:56:57 +02:00
Diogo Carbonera Luvizon
0a7d4afc1b
v4l2: save the format correctly
...
If TRY_FMT is not implemented, gst_v4l2_object_get_nearest_size will
use S_FMT and will change the device's operation mode. To save the
old device mode we need to set the type field or else it will fail
to save the previous format.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=685209
2013-04-24 16:00:24 +02:00
Sebastian Dröge
3230182a61
osxaudio: Include gstaudioringbuffer.h to fix compilation in 1.0
2013-04-18 09:37:30 +02:00
Philippe Normand
d352201a34
osxaudiosink: channel-mask configuration fixes
...
Set channel-mask according to sink's layout in case of stereo layout.
Also initialize and reset the mask when an unrecognized channel is detected.
https://bugzilla.gnome.org/show_bug.cgi?id=698224
2013-04-18 09:16:19 +02:00
Olivier Crête
b5a9ed20e1
v4l2src: Disable renegotiation in the negotiate method
...
This way, we don't block the initial negotiation.
Thanks to Jeremy Whiting for doing all the testing.
https://bugzilla.gnome.org/show_bug.cgi?id=695981
2013-04-17 17:04:11 -04:00
Olivier Crête
3340baa374
Revert "v4l2: disable renegotiation"
...
This reverts commit d1b26e1d59
.
This causes the initial negotiation to never happen if a reconfigure
event is received after gst_base_src_start_complete() but before the loop
starts.
https://bugzilla.gnome.org/show_bug.cgi?id=695981
2013-04-17 17:02:08 -04:00
Sebastian Dröge
27248393e4
osxaudio: Fix merge conflicts
2013-04-17 20:24:48 +02:00
Sebastian Dröge
2b1f967101
osxaudioringbuffer: First check the type, then cast
2013-04-17 09:52:14 +02:00
Takashi Nakajima
ce5246ed71
osxaudio: use GST_IS_OSX_AUDIO_SINK in ring buffer.
2013-04-17 09:52:14 +02:00
Takashi Nakajima
efda79b084
osxaudio: call set_channel_positions() in osxaudioringbuffer acquire()
2013-04-17 09:52:14 +02:00
Todd Agulnick
c2c85a094a
osxaudio: use GST_AUDIO_INFO_* accessors
...
Changes include the following:
* Update classname references
* Replace GST_BOILERPLATE_FULL with G_DEFINE_TYPE
* Use new GstAudioInfo struct and methods
* Use new buffer memory allocation scheme
Conflicts:
sys/osxaudio/gstosxaudioringbuffer.c
2013-04-17 09:52:13 +02:00
Todd Agulnick
ed94ef79f9
osxaudio: adjust for changes to glib mutex api.
2013-04-17 09:52:13 +02:00
Takashi Nakajima
09e980d2c9
osxaudio: try to fix up according to Sebastian's comments
2013-04-17 09:52:13 +02:00
Philippe Normand
ab64837bf2
osxaudio: build fixes
...
Enable the osxaudio plugin build in configure.ac and fix some
include directive order issues.
2013-04-17 09:52:13 +02:00
ted-n
d5d53ec611
osxaudio: fix layout for osxaudiosrc
2013-04-17 09:52:13 +02:00
ted-n
b217b6fdfb
osxaudio: port to v.1.0
2013-04-17 09:52:13 +02:00
Andoni Morales Alastruey
baa23d314d
osxvideosink: fix segfault accessing osxwindow when not set yet
2013-04-16 14:54:06 +02:00
Sebastian Dröge
b0b0557c48
gst: Add better support for static plugins
2013-04-15 15:54:11 +02:00
Josep Torra
0d6602eaaf
osxaudio: Fixes error: "GST_LEVEL_DEFAULT" redefined
2013-04-15 08:41:34 +02:00
Josep Torra
220a9ff102
osxaudio: fixes implicit declaration of function 'getpid'
2013-04-15 08:41:28 +02:00
Todd Agulnick
a30476497f
osxvideo: include pthread.h to fix compiler warning
...
https://bugzilla.gnome.org/show_bug.cgi?id=697303
2013-04-05 09:34:23 +01:00
Wim Taymans
14300e5805
v4l2: free all queued buffers
...
Don't just loop over the first num_queued buffers but loop over
all the buffers and check if they need to be freed. It is possible that
not all buffers are queued and then the entry in our array will be NULL.
Those buffers that are not queued were freed in stop().
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=696651
2013-04-03 11:14:41 +02:00
Wim Taymans
0dfc88d893
v4l2: improve debug
2013-04-03 11:14:41 +02:00
Tim-Philipp Müller
60302a57a4
v4l2: fix printf format compiler warning in debug message
2013-04-02 23:36:22 +01:00
Sebastian Dröge
78acb51dc8
directsoundsink: Check for a subset instead of non-empty intersection in accept-caps
2013-03-26 14:44:36 +01:00
Sebastian Dröge
4f58287aca
directsoundsink: Properly handle the filter caps in get_caps()
2013-03-26 14:40:16 +01:00
Sebastian Dröge
0265b0f6a3
directsoundsink: Don't unnecessarily get the parent class in class_init
...
The trampoline generated by G_DEFINE_TYPE does that already.
2013-03-26 14:40:16 +01:00
Bastien Nocera
8e633d2059
v4l2: fix compilation against newer kernel headers as on FC19
2013-03-18 14:59:35 +00:00
Andoni Morales Alastruey
c853d8dac0
osxaudio: add support for iOS using the RemoteIO AudioUnit
2013-03-08 12:13:56 +01:00
Andoni Morales Alastruey
9621074006
osxaudio: add a façade for the CoreAudio API
2013-03-08 12:13:55 +01:00
Benjamin Gaignard
e29ab42922
v4l2: Add support of dmabuf
...
v4l has add a new IOCTL to export a buffer by using dmabuf.
This patch allow to use this new IOTCL if it has been defined in videodev2.h
I introduce a new IO mode (GST_V4L2_IO_DMABUF) to enable this way of working.
https://bugzilla.gnome.org/show_bug.cgi?id=693826
2013-02-19 12:57:07 +01:00
Benjamin Gaignard
59e583b59f
v4l2: don't check stride for encoded formats
...
Don't try to check the stride for encoded formats. Some drivers output
something != 0 and then we don't want to fail on that.
2013-02-15 16:23:23 +01:00
Alexey Chernov
63235d1054
osxvideosink: Make GstNavigation key input events in osxvideosink compatible with x(v)imagesink ones
2013-01-31 11:44:22 +01:00
Olivier Crête
a31649e357
ximagesrc: Set the pixel aspect ratio correctly in the caps
2013-01-23 21:35:25 -05:00
Sjoerd Simons
00eed11d6a
v4l2: Re-enable prepare-format emission
...
With the port to gstreamer 1.0 the prepare-format signal stopped being
emitted. Start emitting this again for use in uvch264src. While there
change the emission to include the caps for extra flexibility instead of
fource, width, height.
https://bugzilla.gnome.org/show_bug.cgi?id=692042
2013-01-23 21:06:16 -05:00
Alexey Chernov
a8fe984d65
osxvideosink: Fix crash in osxvideosink with external window output
2013-01-16 11:43:56 +01:00
Alexey Chernov
77fde4b8ba
osxvideosink: Make GstGLView propagate input events to its parent view
...
Fixes bug #691832
2013-01-16 11:38:16 +01:00
Robert Krakora
ad2f74afbc
v4l2: Also handle the new ENOENT return value of VIDIOC_QUERYCTRL
...
https://bugzilla.gnome.org/show_bug.cgi?id=691098
2013-01-04 10:04:26 +01:00
Tim-Philipp Müller
644c939fcb
oss4sink: notify "volume" property on open to make apps query initial volume
...
The initial volume might not be the property default, so
emit a notify on the volume property to make apps get
an up-to-date reading of the current volume.
https://bugzilla.gnome.org/show_bug.cgi?id=631053
2012-12-25 16:52:19 +00:00
Koop Mast
0bcf8ecd93
v4l2: Teach where the videodev2.h header lives on freebsd.
...
https://bugzilla.gnome.org/show_bug.cgi?id=690233
2012-12-17 11:17:01 +01:00
Руслан Ижбулатов
fc81ddc8ee
directsound, waveform: fix compilation errors caused by circular includes
...
https://bugzilla.gnome.org/show_bug.cgi?id=690124
2012-12-12 22:42:51 +00:00
Sebastian Dröge
0726b71ceb
ext/sys: Fix some compilation errors caused by circular includes
2012-12-12 17:35:04 +00:00
Alexey Chernov
d4622c974f
osxvideosink: Fix resizing the Cocoa window on receiving new caps
...
Fixes bug #689732 .
2012-12-10 11:45:10 +00:00
Tim-Philipp Müller
527c218533
v4l2src: link against -lrt for clock_gettime()
...
Need to explicitly link against -lrt for clock_gettime(), which
we don't get in the libs any more, because core moved the
gmodule-no-export-2.0 bit into Requires.Private.
Not required for newer glibc, but for older ones, so check for that.
2012-11-30 23:18:12 +00:00
Tim-Philipp Müller
e672123621
v4l2: remove unused define
2012-11-25 16:05:11 +00:00
Tim-Philipp Müller
230cf41cc9
Fix FSF address
...
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-04 00:07:18 +00:00
Michael Smith
b04b1b5089
meta info: threadsafe registration using g_once
2012-10-03 10:51:45 -07:00
Sjoerd Simons
5d1ed54814
v4l2src: handle latency query before setting up the bufferpool
...
Fixes crash if no bufferpool is set up yet.
https://bugzilla.gnome.org/show_bug.cgi?id=684430
2012-09-20 13:49:42 +01:00
Arun Raghavan
c9821d31f8
osxaudiosink: Specify endianness in IEC 61937 payloading
...
Corresponds to an API change in gst-plugins-base. This needs to be fixed
to query the expected byte order using appropriate API.
https://bugzilla.gnome.org/show_bug.cgi?id=678021
2012-09-19 09:18:19 +05:30
Arun Raghavan
333d568ec7
directsoundsink: Specify endianness in IEC 61937 payloading
...
DirectSound expects native endian byte order.
https://bugzilla.gnome.org/show_bug.cgi?id=678021
2012-09-19 09:18:19 +05:30
Mark Nauwelaerts
3a7b7efe99
replace _get_caps_reffed with _get_caps
2012-09-14 17:55:16 +02:00
Wim Taymans
e6ce9c226f
v4l2: remove unused properties
2012-09-13 10:56:27 +02:00
Wim Taymans
d1b26e1d59
v4l2: disable renegotiation
...
We can't yet wait for the bufferpool to DRAIN before starting renegotiation so
disable it for now.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=682770
2012-09-11 15:41:10 +02:00
Mark Nauwelaerts
fd162372f1
directsoundsink: port to the new GLib thread API
2012-09-11 12:54:41 +02:00
Wim Taymans
497ff16355
update for audio base src api change
2012-09-10 11:32:25 +02:00
Wim Taymans
d154743949
v4l2: remove unused code.
2012-09-06 10:43:52 +02:00
Tim-Philipp Müller
4bb52bbadf
docs: gst-launch -> gst-launch-1.0 and ffmpegcolorspace -> videoconvert
2012-08-27 21:20:30 +01:00
Martin Ertsaas
7fcbf88ced
osxvideosink: Make osxvideosink use the non-deprecated threading api from glib.
...
https://bugzilla.gnome.org/show_bug.cgi?id=682446
2012-08-22 11:09:55 +01:00
Huacai Chen
05d4f81834
v4l2: make gst_v4l2_fill_lists() adapt to kernel 3.3+
...
When do v4l2_ioctl() with VIDIOC_ENUMINPUT fails on some devices,
kernels before 3.3.0 return EINVAL, but newer kernels return ENOTTY.
This patch make those devices work well on kernel 3.3+.
Related kernel commit:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=07d106d0a33d6063d2061305903deb02489eba20
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Rui Wang <wangr@lemote.com>
Signed-off-by: Jie Chen <chenj@lemote.com>
2012-08-21 23:09:33 +01:00
Matthias Clasen
9f2aa8d47f
v4l2: fix build with recent kernels, the v4l2_buffer input field was removed
...
This was unused apparently and removed in the kernel in commit:
From 2b719d7baf490e24ce7d817c6337b7c87fda84c1 Mon Sep 17 00:00:00 2001
From: Sakari Ailus <sakari.ailus@iki.fi>
Date: Wed, 2 May 2012 09:40:03 -0300
Subject: [PATCH] [media] v4l: drop v4l2_buffer.input and V4L2_BUF_FLAG_INPUT
Remove input field in struct v4l2_buffer and flag V4L2_BUF_FLAG_INPUT which
tells the former is valid. The flag is used by no driver currently.
https://bugzilla.gnome.org/show_bug.cgi?id=681491
Conflicts:
sys/v4l2/gstv4l2bufferpool.c
2012-08-09 08:40:33 +01:00
Tim-Philipp Müller
787c314ec3
Silence some 'variable may be used uninitialized' compiler warnings
...
When compiling with -DG_DISABLE_ASSERT
2012-08-08 11:31:59 +01:00
Andoni Morales Alastruey
6b7f165190
osxvideosink: add a better detection for the main run loop
2012-08-06 10:59:09 +02:00
Xavi Artigas
ec2e962323
directsoundsink: Do not overwrite the DS buffer when testing for AC3 support
...
https://bugzilla.gnome.org/show_bug.cgi?id=680706
Conflicts:
sys/directsound/gstdirectsoundsink.c
2012-08-06 10:59:01 +02:00
Wim Taymans
2052cabdc4
fix for allocator API changes
2012-07-09 16:28:41 +02:00
Wim Taymans
16b8e2d171
update for query api changes
2012-07-06 11:50:50 +02:00
Wim Taymans
8eadb9c12c
update for query api changes
2012-07-06 11:26:46 +02:00
Wim Taymans
77813e67e1
update for allocation query changes
2012-07-06 11:05:11 +02:00
Руслан Ижбулатов
b64849550d
directsoundsink: Fix query function implementation; more debugging
2012-07-04 19:54:55 +02:00
Руслан Ижбулатов
dc2ce73a3e
directsoundsink: Fix spec stuff in directsoundsink
2012-07-04 19:54:55 +02:00
Andoni Morales Alastruey
c38fa466c3
directsoundsink: fix access to invalid pointer in set_volume
2012-07-04 19:54:55 +02:00
Sebastian Dr=C3=B6ge
f72a55319d
directsoundsink: Fix caps leaks
2012-07-04 19:54:55 +02:00
Andoni Morales Alastruey
1c6d1bd29a
directsoundsink: fix acceptcaps check
2012-07-04 19:54:55 +02:00
Andoni Morales Alastruey
ed8ad7bffe
directsoundsink: use helper function to check for spdif formats
2012-07-04 19:54:55 +02:00
Andoni Morales Alastruey
a9dff8adb9
directsoundsink: add support for DTS
2012-07-04 19:54:55 +02:00
Andoni Morales Alastruey
e815d08342
directsoundsink: force 48000 kHz force AC-3 over spdif
2012-07-04 19:54:51 +02:00
Andoni Morales Alastruey
7d64e16b30
directsoundsink: add support for ac-3 over spdif
2012-07-04 19:54:43 +02:00
Tim-Philipp Müller
b2b3de569a
osxvideosink: default to force-aspect-ratio=true
2012-06-29 11:51:30 +01:00
Wim Taymans
56690cf021
v4l2: improve debug
2012-06-26 13:19:02 +02:00
Wim Taymans
77f33e591f
Revert "v4l2: free kernel buffers before allocating new ones"
...
This reverts commit 1b09bc609a
.
Seems to make libv4l2 complain, maybe because we call REQBUFS with 0 buffers
before we allocated buffers.
2012-06-26 13:02:13 +02:00
Wim Taymans
1b09bc609a
v4l2: free kernel buffers before allocating new ones
...
See https://bugzilla.gnome.org/show_bug.cgi?id=670257
2012-06-26 12:07:47 +02:00
Wim Taymans
9fd4af2164
v4l2src: improve debug
2012-06-26 12:07:29 +02:00
Wim Taymans
f4e3ae65ab
v4l2: setup strides and offsets for all planes
2012-06-26 11:14:59 +02:00
Josep Torra
d2c6cc3a39
osxaudiosink: respect the prefered channel layout
...
In OSX is allowed to configure the default audio output device,
prefered channel layout and speaker positions through the tool
"Audio MIDI Setup".
2012-06-19 12:55:37 +01:00
Josep Torra
59191412eb
osxaudiosink: Add support for SPDIF output
...
A big refactoring to allow passthrough AC3/DTS over SPDIF.
Several random cleanups and minor fixes.
2012-06-14 08:46:34 +02:00
Hans de Goede
b9676944bb
v4l2object: Don't probe UVC devices for being interlaced
...
UVC devices are never interlaced, and doing VIDIOC_TRY_FMT on them
causes expensive and slow USB IO, so don't probe them for interlaced.
This shaves 2 seconds of the startup time of cheese with a Logitech
Webcam Pro 9000.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=677722
2012-06-11 11:23:34 +02:00
Wim Taymans
f65495d405
update for audio api change
2012-06-08 10:11:12 +02:00
Thiago Santos
44d010277c
osxvideo: straightforward port to 0.11
2012-06-05 17:53:58 -03:00
Josep Torra
cfd9071f79
osxaudiosink: Handle endianness correctly
2012-06-04 11:54:46 +02:00
Josep Torra
85102c49d5
osxaudiosink: Add support for int audio
2012-06-01 16:38:22 +02:00
Michael Jones
fa95cec825
v4l2: add missing G_END_DECLS
...
G_BEGIN_DECLS didn't have matching G_END_DECLS
https://bugzilla.gnome.org/show_bug.cgi?id=677165
2012-05-31 13:13:45 +02:00
Josep Torra
bb8cdf4cc5
osxvideosink: Really fix the build on 10.5
...
The API that we use to run the Cocoa loop in another
thread does not exist in 10.5 or earlier.
2012-05-31 10:26:27 +02:00
Alessandro Decina
f20cdcd36b
osxvideosink: fix race in starting the runloop thread
...
Block gst_osx_video_sink_run_cocoa_loop until the loop thread has started and
finished initializing NSApp. Fixes occasional warnings/crashes due to two
threads going inside NSApp before finishLaunching had completed.
2012-05-31 10:26:10 +02:00
Josep Torra
76b7998e4f
osxvideosink: Fix last commit to actually work
...
MAC_OS_X_VERSION_10_6 is obviously not defined on 10.5.
2012-05-30 16:03:55 +02:00
Sebastian Dröge
88554404e6
osxvideosink: Put the right flags in the right variable
2012-05-30 13:51:35 +02:00
Sebastian Dröge
efab9e6aa3
osxvideosink: NSWindowDelegate is available in all OSX versions newer than 10.6
2012-05-30 12:43:37 +02:00
Josep Torra
c106a3653b
osxvideosink: Fix build with older OSX versions
2012-05-30 12:40:57 +02:00
Sebastian Dröge
6bd61f861c
configure: Add OBJC specific compiler flags
...
See bug #643939 .
2012-05-30 11:28:33 +02:00
Andoni Morales Alastruey
5b3d3b0885
osxvideosink: make sure all selectors are performed on the same thread
...
When we are using a dedicated thread to run the main run loop we
must make sure that all selectors are performed on this same thread.
For instance if performSelectorOnMainThread is called from the real
main thread, it will not go through the message queue and will be
executed from the real main thread. By forcing the target thread,
we ensure that all functions will be called either from the real
main thread when the main run loop is running or from our thread
spinning the main loop.
2012-05-25 11:07:35 +02:00
Alessandro Decina
57e43aeb21
osxvideosink: start the loop before calling [gstview haveSuperview]
...
...as haveSuperview requires the mainloop to be running
2012-05-24 14:36:13 +02:00
Alessandro Decina
dc8de54cce
osxvideosink: fix indentation
2012-05-24 14:36:09 +02:00
Alessandro Decina
fdf5fd9f16
osxvideosink: enable running the cocoa main runloop in a thread
2012-05-24 14:36:03 +02:00
Alessandro Decina
718837d914
osxvideosink: add code to optionally run the cocoa main runloop in a separate thread
...
Add a little hack to run the cocoa main runloop from a separate thread _when_
the main runloop is not being run (which means that the app doesn't use cocoa).
Runloops are thread specific, so the hack boils down to getting the runloop for
the main thread and setting it as the runloop for our dedicated thread.
2012-05-24 14:35:59 +02:00
Alessandro Decina
e3cba62b7e
osxvideosink: reset app_started to FALSE when shutting down
2012-05-24 14:35:55 +02:00
Alessandro Decina
645b37e80a
osxvideosink: rename cocoa runloop helper funcs
2012-05-24 14:35:51 +02:00
Alessandro Decina
7f576b923a
osxvideosink: don't create application menus
2012-05-24 14:35:46 +02:00
Andoni Morales Alastruey
a3cf0ab5f5
osxvideosink: reset the embed property for backward compatilibity
2012-05-24 14:35:42 +02:00
Andoni Morales Alastruey
7cc93e9195
osxvideosink: fix navigation when force-aspect-ratio is activated
2012-05-24 14:35:37 +02:00
Andoni Morales Alastruey
fd19abf9ee
osxvideosink: add force-aspect-ratio property
2012-05-24 14:35:32 +02:00
Andoni Morales Alastruey
9b8bfe9b9e
osxvideosink: start internal window if no view is provided
2012-05-24 14:35:27 +02:00
Andoni Morales Alastruey
ba5d55dd69
osxvideosink: implement the navigation interface
2012-05-24 14:35:21 +02:00
Andoni Morales Alastruey
088bc6b056
osvideosink: create, destroy, resize and draw from the main thread
2012-05-24 14:35:16 +02:00
Peter Seiderer
65a28698db
v4l2src: fix v4l2_std_id logging
...
input.std is of type v4l2_std_id which is defined as 64-bit unsigned integer.
Casting to uint means the higher bits, wich are used for the private video
standards of the TI video capture/display driver for example, are lost.
2012-05-09 15:12:28 +01:00
Руслан Ижбулатов
cb4f470c7e
waveform: No more gstinterfaces
...
Fixes #675319
2012-05-03 09:33:29 +02:00
Руслан Ижбулатов
ccc0c9c313
directsound: No more gstinterfaces
...
Fixes #675319
2012-05-03 09:33:29 +02:00
Sebastian Dröge
982148c07c
v4l2src: Update for basesrc API changes
2012-05-01 13:33:46 +02:00
Wim Taymans
a473750350
v4l2: improve timestamp code
...
Sample the pipeline clock and device clock closer to eachother to reduce jitter.
Don't subtract the frame duration from the timestamp when we can use the device
timestamps.
Assume a delay of 1 frame in read-write mode.
2012-04-25 09:41:46 +02:00
Wim Taymans
46045316ce
v4l2: use driver timestamps
...
Use the drive timestamps for timestamping outgoing buffers.
2012-04-24 12:37:33 +02:00
Wim Taymans
eecb9a96a6
v4l2: Improve buffer management
...
Query the amount of available buffers when doing set_config(). This allows us to
configure the parent bufferpool with the number of buffers to preallocate.
Keep track of the provided allocator and use it when we need to allocate a
buffer in RW mode.
When we are can not allocate the requested max_buffers amount of buffers, make
sure we keep 2 buffers around in the pool and copy them into an output buffer.
This makes sure that we always have a buffer to capture into. We also need to
detect those copied buffers and unref them when they return to the pool.
2012-04-23 18:10:33 +02:00
Wim Taymans
713ddbf541
v4l2: free the queued buffers
...
Only free the queued buffers that we keep track of in our buffer array. for rw
io-mode, we do allocate buffers but we don't keep track of them in the buffer
array.
2012-04-23 18:10:33 +02:00
Wim Taymans
5d7d4e0d9b
v4l2: mark memory as no-share
...
We don't support sharing our mmapped memory so mark it as NO_SHARE.
2012-04-23 18:10:33 +02:00
Wim Taymans
9fe11d0d11
v4l2: remove old unused file
2012-04-23 18:10:33 +02:00
Wim Taymans
37e7a41771
v4l2: remove unused function
2012-04-23 18:10:33 +02:00
Mart Raudsepp
8719375be7
docs: Add Since tag for new GstV4l2Src::prepare-format signal
2012-04-23 11:24:19 +02:00
Mark Nauwelaerts
a5ff454e6a
oss4: port to 0.11
2012-04-20 18:18:54 +02:00
Mark Nauwelaerts
c4c3736e1a
oss: port to 0.11
2012-04-20 18:18:54 +02:00
Wim Taymans
f08bab4e86
v4l2: update for video api change
2012-04-19 14:16:01 +02:00
Wim Taymans
85d4dde9d1
v4l2: fix compilation on older v4l2
...
Fix compilation on systems where the H264 format is not defined.
2012-04-19 12:38:58 +02:00
Sebastian Dröge
04b70571e5
video: Update for libgstvideo API changes
2012-04-19 12:20:59 +02:00
Youness Alaoui
09dabd4be6
v4l2src: Allow mpeg-ts cameras to negociate format
...
This removes an ugly hack until the reason for the hack can be documented
2012-04-19 10:31:18 +02:00
Sebastian Dröge
e7a76badc5
v4l2src: Fix merge
2012-04-19 09:50:25 +02:00
Sebastian Dröge
deb7cdcdda
v4l2src: Rename pre-set-format signal to prepare-format
2012-04-19 09:50:01 +02:00
Youness Alaoui
a63451ecd7
v4l2src: Add H264 encoded stream support to the caps
...
This is not enough to properly support H264 cameras, but it will
allow an H264 stream to be generated by v4l2src using the default
settings of the camera. If used with the pre-set-format signal, the
H264 encoder can be fully configured.
Conflicts:
sys/v4l2/gstv4l2object.c
2012-04-19 09:49:33 +02:00
Youness Alaoui
06d64c7792
v4l2src: Adding a pre-set-format signal
...
In order to support UVC H264 encoding cameras, an H264 Probe&Commit
must happen before the normal v4l2 set-format. This new signal is
meant to allow an external application or bin to do it.
It also serves to expose the file descriptor used by v4l2src in case
some custom ioctls need to be called.
Conflicts:
sys/v4l2/Makefile.am
sys/v4l2/gstv4l2src.c
sys/v4l2/v4l2src_calls.c
2012-04-19 09:45:49 +02:00
Víctor Manuel Jáquez Leal
8c5d8b52ea
v4l2: ensure autogenerated files are created
...
The tuner marshal and enumtypes are autogenerated, and they need
to be created before the compilation of gstv4l2tuner.c
This patch adds the automake instruction for ensuring the
autogeneration of those files previous the compilation.
2012-04-13 17:13:22 +02:00
Sebastian Dröge
d99eb6d2cb
Update everything for the removal of the interface library and mixer/tuner interfaces
2012-04-13 13:15:11 +02:00
Руслан Ижбулатов
f0685dd026
Remove unused variable
...
Fixes #673859
2012-04-10 22:41:04 +01:00
Tim-Philipp Müller
e09ae5736d
Use new gst_element_class_set_static_metadata()
2012-04-10 00:51:41 +01:00
Sebastian Dröge
aa2cd462da
gst: Update for GST_PLUGIN_DEFINE() API changes
2012-04-05 17:36:38 +02:00
Sebastian Dröge
5cdd49bf25
gst: Update versioning
2012-04-04 14:37:47 +02:00
Wim Taymans
3d61d12e03
update for buffer api change
2012-03-30 18:15:34 +02:00
Wim Taymans
e310ee8218
caps: improve caps handling
...
Avoid caps copy and leaks
2012-03-27 16:42:41 +02:00
Wim Taymans
098d8ceae7
v4l2: update for get_param
...
Remove const from the GstCaps.
Plug some GstStructure leaks
2012-03-27 12:44:46 +02:00
Wim Taymans
01838ff975
v4l2src: don't error in shutdown
...
Don't log with the ERROR category when we are stopping because we are shutting
down.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=672824
2012-03-26 16:00:42 +02:00
Wim Taymans
cfe58e7156
v4l2: fix latency
2012-03-26 15:51:28 +02:00
Wim Taymans
fa436c0799
v4l2: called base class start
...
Chain up to the base class start method so that metadata is properly tagged.
Remove an unused variable.
fixes: https://bugzilla.gnome.org/show_bug.cgi?id=672813
2012-03-26 15:33:59 +02:00
Wim Taymans
c44cd8f55b
Merge branch 'master' into 0.11
...
unport gdkpixbuf
not merged: https://bugzilla.gnome.org/show_bug.cgi?id=654850
Conflicts:
docs/plugins/Makefile.am
docs/plugins/gst-plugins-good-plugins-docs.sgml
docs/plugins/gst-plugins-good-plugins-sections.txt
docs/plugins/gst-plugins-good-plugins.hierarchy
docs/plugins/inspect/plugin-avi.xml
docs/plugins/inspect/plugin-png.xml
ext/flac/gstflacdec.c
ext/flac/gstflacdec.h
ext/libpng/gstpngdec.c
ext/libpng/gstpngenc.c
ext/speex/gstspeexdec.c
gst/audioparsers/gstflacparse.c
gst/flv/gstflvmux.c
gst/rtp/gstrtpdvdepay.c
gst/rtp/gstrtph264depay.c
2012-03-22 11:53:24 +01:00
Wim Taymans
ced47580b7
update for bufferpool changes
2012-03-15 22:11:17 +01:00
Wim Taymans
f3a770a20c
update for allocation query changes
2012-03-15 20:37:56 +01:00
Wim Taymans
6ed3bc109b
update for bufferpool api change
2012-03-15 14:06:40 +01:00
Wim Taymans
ecaea36c3d
update for memory api changes
2012-03-15 13:36:17 +01:00
Wim Taymans
751fcf035b
take padding into account
2012-03-14 19:56:56 +01:00
Wim Taymans
80dca40c35
fix for _do_simplify changes
2012-03-12 10:43:57 +01:00
Wim Taymans
a32d944a38
fix for caps api changes
2012-03-11 19:06:37 +01:00
Sebastian Dröge
9d5e5ea553
ximagesrc: Fix 'comparison of unsigned expression >= 0 is always true'
...
This variable can never be below zero anyway.
2012-03-06 14:23:05 +01:00
Mark Nauwelaerts
26dd999b68
Merge branch 'master' into 0.11
...
Conflicts:
ext/wavpack/gstwavpackparse.c
sys/v4l2/gstv4l2bufferpool.c
sys/v4l2/gstv4l2bufferpool.h
sys/v4l2/gstv4l2videooverlay.c
2012-03-05 13:29:59 +01:00
Wim Taymans
2adc948d18
x-raw-bayer -> x-bayer
2012-03-05 12:43:17 +01:00
Oleksij Rempel (Alexey Fisher)
a83d2f7047
v4l2sink: don't use deprecated XKeycodeToKeysym
...
https://bugzilla.gnome.org/show_bug.cgi?id=671299
Signed-off-by: Oleksij Rempel (Alexey Fisher) <bug-track@fisher-privat.net>
2012-03-05 11:34:36 +00:00
Wim Taymans
1dada15ccf
ximage: use new style caps
2012-03-05 12:03:01 +01:00
Tim-Philipp Müller
6f707fcbca
v4l2: clear DISCONT flag when recycling buffers into the buffer pool
...
The base class may have set the DISCONT flag on the first buffer pushed
out. We need to clear that when recycling buffers back into the buffer
pool, otherwise we constantly push out buffers with the discont flag
set, which might upset downstream elements, esp. for compressed
formats like mpeg-ts.
2012-03-03 13:07:45 +00:00
Oleksij Rempel (Alexey Fisher)
4cd9255f0a
v4l2src: fix v4l2_munmap() for compressed formats
...
Make sure we always call munmap() with the same size we called mmap()
with before.
Current v4l2src uses the same structure for VIDIOC_QUERYBUF, VIDIOC_QBUF
and v4l2_munmap calls. The problem is that the video buffer size (length)
may vary for compressed or emulated bufs. VIDIOC_QBUF will change it if
we pass the pointer of a v4l2_buffer. This is why we should avoid using
same variable for mmap and video buffers.
https://bugzilla.gnome.org/show_bug.cgi?id=671126
2012-03-03 13:07:40 +00:00
Sebastian Dröge
3299f39179
mixer/colorbalance: Update for API changes
2012-03-02 10:13:08 +01:00
Mark Nauwelaerts
f189f62b13
Merge branch 'master' into 0.11
...
Conflicts:
ext/wavpack/gstwavpackenc.c
tests/check/elements/audioiirfilter.c
tests/examples/v4l2/probe.c
2012-03-01 11:29:50 +01:00
Wim Taymans
9c789aa434
update for metadata API changes
2012-02-29 17:26:01 +01:00
Wim Taymans
dda3219e4c
update for metadata tags
2012-02-28 11:38:59 +01:00
Edward Hervey
9beda57c3a
Suppress deprecation warnings in selected files, for g_value_array_* mostly
2012-02-27 14:47:25 +01:00
Wim Taymans
c17aa1565a
v4l2: use public api
...
instead of poking into the private structures of the base class
2012-02-27 09:21:27 +01:00
Wim Taymans
0ab5677107
update for metadata change
2012-02-24 10:26:26 +01:00
Wim Taymans
ca9532ccc5
update for new memory api
2012-02-22 02:10:33 +01:00
Wim Taymans
6623ab258b
Merge branch 'master' into 0.11
2012-02-16 14:23:50 +01:00
Gary Ching-Pang Lin
c1c858f273
v4l2src: failure to query some optional controls is not a fatal error
...
Don't post a (fatal) error message on the bus just because we
failed to query some control. Fixes issue with built-in
Suyin Corp webcam for HP notebook (usbid 064e:e28a) on
OpenSuse 12.1, where querying red/blue balance fails.
https://bugzilla.gnome.org/show_bug.cgi?id=670197
2012-02-16 13:10:47 +00:00
Tuukka Pasanen
ef37bb48bc
v4l2src: fix for webcamstudio vloopback
...
Because vlooback emits 25 - ENOTTY and no EINVAL v4l2src thought it
can't handle this and does not work.
https://bugzilla.gnome.org/show_bug.cgi?id=669455
2012-02-16 12:59:10 +00:00
Wim Taymans
9365f12d6e
GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING
2012-02-08 16:43:30 +01:00
Raimo Järvi
697dcc60b4
directsoundsink: Fix compiling
...
https://bugzilla.gnome.org/show_bug.cgi?id=669607
2012-02-07 23:20:19 +00:00
Raimo Järvi
b7b3161c26
waveformsink: Port to 0.11
...
https://bugzilla.gnome.org/show_bug.cgi?id=669612
2012-02-07 22:56:47 +00:00
Andoni Morales Alastruey
83090f6530
direcsoundsink: Port element to 0.11
2012-01-27 18:26:18 +01:00
Sebastian Dröge
0b517ce9fb
Merge branch '0.11' of ssh://git.freedesktop.org/git/gstreamer/gst-plugins-good into 0.11
2012-01-25 12:49:34 +01:00
Sebastian Dröge
10554b271f
Merge branch 'master' into 0.11
...
Conflicts:
ext/flac/gstflacdec.c
ext/jpeg/gstjpegenc.c
ext/pulse/pulsesink.c
sys/v4l2/gstv4l2src.c
2012-01-25 12:49:11 +01:00
Wim Taymans
b4630dd3e0
more memory API porting
2012-01-25 12:30:29 +01:00
Tim-Philipp Müller
7cb9b7ab9d
Use new GLib API unconditionally
2012-01-22 23:15:19 +00:00
Wim Taymans
1584806634
port to new gthread API
2012-01-19 11:33:53 +01:00
Vincent Penquerc'h
f799fb2c90
oss4: fix caps leaks
2012-01-13 17:43:49 +00:00
Vincent Penquerc'h
b0608128b1
v4l2src: fix caps leak
2012-01-13 17:25:59 +00:00
Stig Sandnes
ffe010ee4d
osxvideo: Fix leak of NSOpenGLPixelFormat object
...
https://bugzilla.gnome.org/show_bug.cgi?id=667818
2012-01-13 10:14:34 +00:00
Havard Graff
150403ab13
v4l2src: Don't assert when the interface is not implemented.
...
Simply return FALSE instead.
https://bugzilla.gnome.org/show_bug.cgi?id=667817
2012-01-13 10:07:20 +00:00
Raimo Järvi
e886ef8f5b
waveformsink: Fix mingw warnings
...
https://bugzilla.gnome.org/show_bug.cgi?id=667719
2012-01-13 09:43:47 +00:00
Sebastian Dröge
93e3ed5a86
Merge branch 'master' into 0.11
...
Conflicts:
ext/cairo/gsttextoverlay.c
ext/pulse/pulseaudiosink.c
gst/audioparsers/gstaacparse.c
gst/avi/gstavimux.c
gst/flv/gstflvmux.c
gst/interleave/interleave.c
gst/isomp4/gstqtmux.c
gst/matroska/matroska-demux.c
gst/matroska/matroska-mux.c
gst/matroska/matroska-mux.h
gst/matroska/matroska-read-common.c
gst/multifile/gstmultifilesink.c
gst/multipart/multipartmux.c
gst/shapewipe/gstshapewipe.c
gst/smpte/gstsmpte.c
gst/udp/gstmultiudpsink.c
gst/videobox/gstvideobox.c
gst/videocrop/gstaspectratiocrop.c
gst/videomixer/videomixer.c
gst/videomixer/videomixer2.c
gst/wavparse/gstwavparse.c
po/ja.po
po/lv.po
po/sr.po
tests/check/Makefile.am
tests/check/elements/qtmux.c
tests/check/elements/rgvolume.c
2012-01-10 14:32:32 +01:00
Sebastian Dröge
177dd68d06
oss: Port to the new multichannel caps and the raw audio caps interleaved field
2012-01-05 10:30:30 +01:00
Tim-Philipp Müller
2be912cb45
waveformsink: fix compiler warnings with MingW
...
https://bugzilla.gnome.org/show_bug.cgi?id=666485
2011-12-27 22:59:03 +00:00
Yaakov Selkowitz
e72b55b6ac
waveform: add autotools bits for waveform plugin
...
https://bugzilla.gnome.org/show_bug.cgi?id=666485
2011-12-26 22:22:59 +00:00
Wim Taymans
4b8975f867
update for removed property probe
2011-12-21 11:59:46 +01:00
Wim Taymans
4f42f58565
v4l2: update for new interlaced caps
2011-12-19 19:03:52 +01:00
Tim-Philipp Müller
330d984288
Use g_thread_try_new() instead of g_thread_crate() with newer glib versions
2011-12-12 09:46:27 +00:00
Tim-Philipp Müller
66f6e12888
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.
2011-12-12 09:46:27 +00:00
Tim-Philipp Müller
668e15598b
Merge remote-tracking branch 'origin/master' into 0.11
...
Conflicts:
sys/v4l2/gstv4l2object.c
2011-12-08 01:28:26 +00:00
Vincent Penquerc'h
687d6138d1
v4l2src: do not ignore the highest frame interval
...
https://bugzilla.gnome.org/show_bug.cgi?id=665387
2011-12-07 13:41:12 +00:00