Hello In fact, is the sensor, the one that supports multiple Areas of Interest. Unfortunatelly the userland v4l2 api only supports one area of interest for doing croping (or that is what I believe). Is there any plan to support multiple AOI? or I have to make my own ioctl? Regards On Fri, Oct 12, 2012 at 12:32 AM, Sakari Ailus <sakari.ailus@xxxxxx> wrote: > Hi Ricardo, > > On Thu, Oct 11, 2012 at 12:40:03PM +0200, Ricardo Ribalda Delgado wrote: >> I want to port an old driver for an fpga based camera to the new media >> infrastructure. >> >> By reading the doc. I think it has almost all the capabilities needed. >> The only one I am missing is the habilty to select multiple rectangles >> from the sensor. ie: I have a 100x50 sensor and I want a 100x20 image >> with the pixels from 0,0->100,10 and then 0,40->100,50 >> >> Any suggestion about how to implement this with the media api? > > I suppose your FPGA does the cropping. You can use the V4L2 subdev selection > interface and crop on the source pads. Each will then have a link to a > capture video device. > > <URL:http://hverkuil.home.xs4all.nl/spec/media.html#subdev> > > Kind regards, > > -- > Sakari Ailus > e-mail: sakari.ailus@xxxxxx XMPP: sailus@xxxxxxxxxxxxxx -- Ricardo Ribalda -- 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