Re: Multiple Rectangle cropping

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

 



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
--
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