Adding a cropping capability to the atmel-isc driver

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

 



>From reading the discussion of the comparison of the selection API
with the cropping API, (at
https://linuxtv.org/downloads/v4l-dvb-apis/uapi/v4l/selection-api-005.html)
it seems that the cropping API has been deprecated in favor of the
selection API, so if I want to add a cropping capability to the
atmel-isc, I should look at adding support for vidio_g_selection and
vidio_s_selction to the driver.

How do I manage the fact that the video frame size (from which I
should derive TGT_CROP_BOUNDS, TGT_CROP_DEFAULT, and perhaps even
TGT_NATIVE_SIZE) must be specified by atmel-isc's sub device?  Should
I v4l2subdev_call the get_selection function of the underlying sensor?

Is that what is typically done?  Or is there a better way to do this?

--wpd



[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