[vlc-commits] v4l2: rewrite frame rate and resolution negotiation

Rémi Denis-Courmont git at videolan.org
Thu Apr 5 22:01:07 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr  5 22:52:57 2012 +0300| [590f52e6d06ba442f98a260c2c3bc1ecaf008761] | committer: Rémi Denis-Courmont

v4l2: rewrite frame rate and resolution negotiation

 * Enumerate frame sizes once rather than twice.
 * Do not enumerate frame rates if not supported.
 * Get actual frame rate from the device driverr.
 * Get exact fractional frame rate rather than round to single precision
   floating point.

Notes:
 * --v4l2-fps becomes totally redumdant. It should probably be redefined
   to select a maximum capture frame rate.
 * --v4l2-width and --v4l2-height are ignored. This is a regression.
   Maybe they should be redefined as maxima as well as --v4l2-fps.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=590f52e6d06ba442f98a260c2c3bc1ecaf008761
---

 modules/access/v4l2/demux.c |  283 +++++--------------------------------------
 modules/access/v4l2/v4l2.h  |    5 +
 modules/access/v4l2/video.c |  200 ++++++++++++++++++++++++++++++
 3 files changed, 236 insertions(+), 252 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=590f52e6d06ba442f98a260c2c3bc1ecaf008761


More information about the vlc-commits mailing list