gstreamer/sys
Nicolas Dufresne b3e089d415 v4l2src: Speedup camera startup by skipping try_fmt
In this commit, we enabled skip_try_fmt_probes quirk in order to speed
up the start which is known to be disastrously slow with certain USB
cameras.

This has the side effect that we needed to rewrite the entire
negotiation process in a way that we iterate over the possible caps
until we find one that works.

The new negotiation method consist of extracting a preferred structure
from the peer caps and using this to fixate and sort the caps. To
reflect the old behaviour, we sort all resolution strictly bigger
to the preferred one with the closes one first. The rest is appended,
keeping the same order. We then normalize the caps in case there was
some list of interlace-mode or colorimetry left. We finally iterate
over all fixed caps and try it. 99% of the time, the first or the
second one should work, whit the result of a single S_FMT being issues.

From there, it will be relatively easy to introduce new negotiation
algorithm. The current algorithm is made for optimal image quality
with a scaling sink that sets it's window resolution as preference.
This the case if for:

  v4l2src ! videoconvert ! videoscale ! ximagesink

Other strategy would be needed to optimize for non-scaling sink like
ximagesink or kmssink when the driver does not scale.

https://bugzilla.gnome.org/show_bug.cgi?id=785156
2017-07-21 15:29:10 -04:00
..
directsound directsound: Fix .c file name in Makefile 2017-07-20 17:21:05 -04:00
oss meson: build oss plugin 2017-06-23 19:34:16 +01:00
oss4 meson: build oss4 plugin 2017-06-23 19:36:03 +01:00
osxaudio osxaudio: fixes playback of mono streams with no channel-mask field in caps 2017-05-20 18:33:42 +02:00
osxvideo osxvideo: fix macOS 10.12 deprecation warnings 2017-05-20 11:37:27 +02:00
v4l2 v4l2src: Speedup camera startup by skipping try_fmt 2017-07-21 15:29:10 -04:00
waveform waveform: Fix DLL name to match plugin name 2017-07-20 15:46:38 -04:00
ximage Remove plugin specific static build option 2017-05-16 14:41:19 -04:00
Makefile.am sys: remove sunaudio plugin 2017-06-23 20:02:43 +01:00
meson.build sys: remove sunaudio plugin 2017-06-23 20:02:43 +01:00