• Rémi Denis-Courmont's avatar
    v4l2: rewrite frame rate and resolution negotiation · 590f52e6
    Rémi Denis-Courmont authored
     * 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.
     * --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.
demux.c 19.1 KB