Hi Thomas, On Mon, Jul 15, 2013 at 09:30:33AM +0000, Thomas Vajzovic wrote: > Hi Sylwester, > > On 10 July 2013 20:44 Sylwester Nawrocki wrote: > >On 07/07/2013 10:18 AM, Thomas Vajzovic wrote: > >> On 06 July 2013 20:58 Sylwester Nawrocki wrote: > >>> On 07/05/2013 10:22 AM, Thomas Vajzovic wrote: > >>>> > >>>> I am writing a driver for the sensor MT9D131. > > > > As a side note, looking at the MT9D131 sensor datasheet I can see it > > has preview (Mode A) and capture (Mode B) modes. Are you also > > planning adding proper support for switching between those modes ? > > I'm interested in supporting this in standard way in V4L2, as lot's > > of sensors I have been working with also support such modes. > > This camera has more like three modes: > > > preview (context A) up to 800x600, up to 30fps, YUV/RGB > > capture video (context B) up to 1600x1200, up to 15fps, YUV/RGB/JPEG > > capture stills (context B) up to 1600x1200, > sequence of 1 or more frames with no fixed timing, YUV/RGB/JPEG > > > I have implemented switching between the first two of these, but the > choice is forced by the framerate, resolution and format that the user > requests, so I have not exposed any interface to change the context, > the driver just chooses the one that can do what the user wants. > > As for the third mode, I do not currently plan to implement it, but > if I was going to then I think the only API that would be required > is V4L2_MODE_HIGHQUALITY in v4l2_captureparm.capturemode. Is there a practical difference in video and still capture in this case? -- Regards, Sakari Ailus e-mail: sakari.ailus@xxxxxx XMPP: sailus@xxxxxxxxxxxxxx -- 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