Lines Matching refs:vb
196 struct v4l2_buffer vb; in mm_camera_read_msm_frame() local
199 memset(&vb, 0, sizeof(vb)); in mm_camera_read_msm_frame()
200 vb.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in mm_camera_read_msm_frame()
201 vb.memory = V4L2_MEMORY_USERPTR; in mm_camera_read_msm_frame()
202 vb.m.planes = &planes[0]; in mm_camera_read_msm_frame()
203 vb.length = stream->fmt.fmt.pix_mp.num_planes; in mm_camera_read_msm_frame()
206 rc = ioctl(stream->fd, VIDIOC_DQBUF, &vb); in mm_camera_read_msm_frame()
209 idx = vb.index; in mm_camera_read_msm_frame()
210 for(i = 0; i < vb.length; i++) { in mm_camera_read_msm_frame()
212 __func__, i, vb.m.planes[i].reserved[0], in mm_camera_read_msm_frame()
213 vb.m.planes[i].data_offset); in mm_camera_read_msm_frame()
215 vb.m.planes[i].reserved[0]; in mm_camera_read_msm_frame()
217 vb.m.planes[i].data_offset; in mm_camera_read_msm_frame()
220 stream->frame.frame[idx].frame.frame_id = vb.sequence; in mm_camera_read_msm_frame()
221 stream->frame.frame[idx].frame.ts.tv_sec = vb.timestamp.tv_sec; in mm_camera_read_msm_frame()
222 stream->frame.frame[idx].frame.ts.tv_nsec = vb.timestamp.tv_usec * 1000; in mm_camera_read_msm_frame()
225 stream->stream_type, idx, vb.sequence); in mm_camera_read_msm_frame()