Re: Questions about VIDIOC_G_JPEGCOMP / VIDIOC_S_JPEGCOMP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 20 Feb 2009, Jean-Francois Moine wrote:
> So, I propose to remove these ioctls, and to add two controls: one to
> set the JPEG quality (range 15..95 %) and the other to set a webcam
> quality which might be a boolean or any value depending on some
> associated webcam parameter.

A control can have any min, max and step size the driver wants to give it.
So their could easily be a "quality" control that's 15 to 95 on one driver
and 0 to 1 on another.

For zoran, I wonder if it would a good idea to support the existing
V4L2_CID_MPEG_VIDEO_BITRATE_MODE and V4L2_CID_MPEG_VIDEO_BITRATE controls.
Yeah, zoran is MJPEG and not MPEG, but what does one letter in the control
name matter?  IIRC, the zr36060 chip supports both VBR and CBR.  The
hardware is programmed with a bit rate in CBR mode.  The "quality" setting
is just an artificial construct created by the driver for user convenience.

A generic "quality" control would still be useful for hardware that doesn't
support bitrate setting and just as some nebulous quality setting.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux