Hi, i try to get video on dm355 from ccd sensor mt9p using v4l2. In document "Previewer-Resizer Driver Software Design Specification
" on page 24 i found sequence:
1.Open the resizer device /dev/davinci_resizer and configure
2.Open the previewer device /dev/davinci_previewer and configure
3.Open the capture device /dev/video0
4.Set up the capture driver input and standard by calling following ioctls
a.VIDIOC_SET_INPUT (selecting camera input)
b.VIDIOC_SET_STD
5.Set up IO buffers for doing capture at CCDC Driver
6.Setup preview for On the fly mode using following ioctls
a.PREV/RSZ_S_OPER_MODE to configure operating mode to “on the fly” or “continuous” mode. Driver sets the operation mode and configured state. This file handle is set as primary user.
b.RSZ_S_CONFIG to configure the resizer (if needs resize) in chained mode
c.PREV_S_CONFIG to configure the previewer.
d.PREV_ENUM_CAP & PREV_S_PARAM to configure preview engine modules
7.Call (optional) VIDIOC_S_CROP to setup crop window
8.Call S_FMT to set the pixel format and image size by calling VIDIOC_S_FMT.
9.Call VIDIOC_STREAMON to start streaming
.....
but i'm using dvsdk 3_10(kernel 2.6.32) and vpfe_capture not support VIDIOC_SET_STD for ccd input ( http://processors.wiki.ti.com/index.php/DaVinci_PSP_03.01_Linux_Installation_User_Guide , "Video capture" section ).
Which sequence i must use with kernel 2.6.32? ( maybe do VIDIOC_S_FMT instead VIDIOC_SET_STD and skip step 8.? )
And second question: Must I open and init resizer or can skip step 1?