Lines Matching refs:mDeviceFd
39 mDeviceFd = ::open(deviceName, O_RDWR, 0); in open()
40 if (mDeviceFd < 0) { in open()
47 int result = ioctl(mDeviceFd, VIDIOC_QUERYCAP, &caps); in open()
55 ALOGI("Open Device: %s (fd=%d)", deviceName, mDeviceFd); in open()
71 if (ioctl(mDeviceFd, VIDIOC_ENUM_FMT, &formatDescriptions) == 0) { in open()
105 if (ioctl(mDeviceFd, VIDIOC_S_FMT, &format) < 0) { in open()
111 if (ioctl(mDeviceFd, VIDIOC_G_FMT, &format) == 0) { in open()
144 ALOGD("closing video device file handled %d", mDeviceFd); in close()
145 ::close(mDeviceFd); in close()
146 mDeviceFd = -1; in close()
165 if (ioctl(mDeviceFd, VIDIOC_REQBUFS, &bufrequest) < 0) { in startStream()
175 if (ioctl(mDeviceFd, VIDIOC_QUERYBUF, &mBufferInfo) < 0) { in startStream()
190 mDeviceFd, in startStream()
201 if (ioctl(mDeviceFd, VIDIOC_QBUF, &mBufferInfo) < 0) { in startStream()
208 if (ioctl(mDeviceFd, VIDIOC_STREAMON, &type) < 0) { in startStream()
241 if (ioctl(mDeviceFd, VIDIOC_STREAMOFF, &type) < 0) { in stopStream()
256 ioctl(mDeviceFd, VIDIOC_REQBUFS, &bufrequest); in stopStream()
273 if (ioctl(mDeviceFd, VIDIOC_QBUF, &mBufferInfo) < 0) { in returnFrame()
287 if (ioctl(mDeviceFd, VIDIOC_DQBUF, &mBufferInfo) < 0) { in collectFrames()