On Fri, Sep 16, 2011 at 10:44:00AM +0800, Cliff Cai wrote: > On Fri, Sep 16, 2011 at 1:14 AM, Sakari Ailus <sakari.ailus@xxxxxx> wrote: > > Cliff Cai wrote: > >> Dear guys, > > > > Hi Cliff, > > > >> I'm currently working on a camera/ISP Linux driver project.Of course,I > >> want it to be a V4L2 driver,but I got a problem about how to design > >> the driver framework. > >> let me introduce the background of this ISP(Image signal processor) a > >> little bit. > >> 1.The ISP has two output paths,first one called main path which is > >> used to transfer image data for taking picture and recording,the other > >> one called preview path which is used to transfer image data for > >> previewing. > >> 2.the two paths have the same image data input from sensor,but their > >> outputs are different,the output of main path is high quality and > >> larger image,while the output of preview path is smaller image. > > > > Is the ISP able to process images which already are in memory, or is > > this only from the sensor? > > yes,it has another DMA to achieve this. If you wish to support this, there would need to be an additional video node. What about the image processing performed by this ISP? Does it e.g. do scaling or cropping? They also should be configured using the V4L2 subdev interface. The OMAP 3 ISP is a good example of this; the technical reference manual is publicly available and the driver is exemplary. Your original message hints such functionality is available. It would be very helpful to know what kind of processing (scaling, pixel format conversion, crop, etc.) is supported by the ISP and what are the exact data paths through it. That defines what the media device graph implemented by the ISP driver should be. If you could show a graphical representation of this, all the better. Kind regards, -- Sakari Ailus e-mail: sakari.ailus@xxxxxx jabber/XMPP/Gmail: 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