Lines Matching refs:mVideoInfo

75     mVideoInfo = (struct VideoInfo *) calloc (1, sizeof (struct VideoInfo));  in initialize()
76 if(!mVideoInfo) in initialize()
87 ret = ioctl (mCameraHandle, VIDIOC_QUERYCAP, &mVideoInfo->cap); in initialize()
94 if ((mVideoInfo->cap.capabilities & V4L2_CAP_VIDEO_CAPTURE) == 0) in initialize()
100 if (!(mVideoInfo->cap.capabilities & V4L2_CAP_STREAMING)) in initialize()
108 mVideoInfo->isStreaming = false; in initialize()
121 if ( !mVideoInfo->isStreaming ) in fillThisBuffer()
132 mVideoInfo->buf.index = i; in fillThisBuffer()
133 mVideoInfo->buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in fillThisBuffer()
134 mVideoInfo->buf.memory = V4L2_MEMORY_MMAP; in fillThisBuffer()
136 ret = ioctl(mCameraHandle, VIDIOC_QBUF, &mVideoInfo->buf); in fillThisBuffer()
160 mVideoInfo->width = width; in setParameters()
161 mVideoInfo->height = height; in setParameters()
162 mVideoInfo->framesizeIn = (width * height << 1); in setParameters()
163 mVideoInfo->formatIn = DEFAULT_PIXEL_FORMAT; in setParameters()
165 mVideoInfo->format.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in setParameters()
166 mVideoInfo->format.fmt.pix.width = width; in setParameters()
167 mVideoInfo->format.fmt.pix.height = height; in setParameters()
168 mVideoInfo->format.fmt.pix.pixelformat = DEFAULT_PIXEL_FORMAT; in setParameters()
170 ret = ioctl(mCameraHandle, VIDIOC_S_FMT, &mVideoInfo->format); in setParameters()
236 mVideoInfo->rb.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in UseBuffersPreview()
237 mVideoInfo->rb.memory = V4L2_MEMORY_MMAP; in UseBuffersPreview()
238 mVideoInfo->rb.count = num; in UseBuffersPreview()
240 ret = ioctl(mCameraHandle, VIDIOC_REQBUFS, &mVideoInfo->rb); in UseBuffersPreview()
248 memset (&mVideoInfo->buf, 0, sizeof (struct v4l2_buffer)); in UseBuffersPreview()
250 mVideoInfo->buf.index = i; in UseBuffersPreview()
251 mVideoInfo->buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in UseBuffersPreview()
252 mVideoInfo->buf.memory = V4L2_MEMORY_MMAP; in UseBuffersPreview()
254 ret = ioctl (mCameraHandle, VIDIOC_QUERYBUF, &mVideoInfo->buf); in UseBuffersPreview()
260 mVideoInfo->mem[i] = mmap (0, in UseBuffersPreview()
261 mVideoInfo->buf.length, in UseBuffersPreview()
265 mVideoInfo->buf.m.offset); in UseBuffersPreview()
267 if (mVideoInfo->mem[i] == MAP_FAILED) { in UseBuffersPreview()
298 mVideoInfo->buf.index = i; in startPreview()
299 mVideoInfo->buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in startPreview()
300 mVideoInfo->buf.memory = V4L2_MEMORY_MMAP; in startPreview()
302 ret = ioctl(mCameraHandle, VIDIOC_QBUF, &mVideoInfo->buf); in startPreview()
312 if (!mVideoInfo->isStreaming) { in startPreview()
321 mVideoInfo->isStreaming = true; in startPreview()
349 if (mVideoInfo->isStreaming) { in stopPreview()
358 mVideoInfo->isStreaming = false; in stopPreview()
361 mVideoInfo->buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in stopPreview()
362 mVideoInfo->buf.memory = V4L2_MEMORY_MMAP; in stopPreview()
369 if (munmap(mVideoInfo->mem[i], mVideoInfo->buf.length) < 0) in stopPreview()
385 mVideoInfo->buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in GetFrame()
386 mVideoInfo->buf.memory = V4L2_MEMORY_MMAP; in GetFrame()
389 ret = ioctl(mCameraHandle, VIDIOC_DQBUF, &mVideoInfo->buf); in GetFrame()
396 index = mVideoInfo->buf.index; in GetFrame()
398 return (char *)mVideoInfo->mem[mVideoInfo->buf.index]; in GetFrame()
501 if (mVideoInfo) in ~V4LCameraAdapter()
503 free(mVideoInfo); in ~V4LCameraAdapter()
504 mVideoInfo = NULL; in ~V4LCameraAdapter()