Lines Matching refs:mDeviceFd
41 mDeviceFd = ::open(deviceName, O_RDWR, 0); in open()
42 if (mDeviceFd < 0) { in open()
49 int result = ioctl(mDeviceFd, VIDIOC_QUERYCAP, &caps); in open()
57 LOG(INFO) << "Open Device: " << deviceName << " (fd = " << mDeviceFd << ")"; in open()
72 if (ioctl(mDeviceFd, VIDIOC_ENUM_FMT, &formatDescriptions) == 0) { in open()
104 if (ioctl(mDeviceFd, VIDIOC_S_FMT, &format) < 0) { in open()
110 if (ioctl(mDeviceFd, VIDIOC_G_FMT, &format) == 0) { in open()
141 LOG(DEBUG) << "closing video device file handle " << mDeviceFd; in close()
142 ::close(mDeviceFd); in close()
143 mDeviceFd = -1; in close()
162 if (ioctl(mDeviceFd, VIDIOC_REQBUFS, &bufrequest) < 0) { in startStream()
172 if (ioctl(mDeviceFd, VIDIOC_QUERYBUF, &mBufferInfo) < 0) { in startStream()
188 mDeviceFd, in startStream()
199 if (ioctl(mDeviceFd, VIDIOC_QBUF, &mBufferInfo) < 0) { in startStream()
206 if (ioctl(mDeviceFd, VIDIOC_STREAMON, &type) < 0) { in startStream()
240 if (ioctl(mDeviceFd, VIDIOC_STREAMOFF, &type) < 0) { in stopStream()
255 ioctl(mDeviceFd, VIDIOC_REQBUFS, &bufrequest); in stopStream()
272 if (ioctl(mDeviceFd, VIDIOC_QBUF, &mBufferInfo) < 0) { in returnFrame()
286 if (ioctl(mDeviceFd, VIDIOC_DQBUF, &mBufferInfo) < 0) { in collectFrames()
306 int status = ioctl(mDeviceFd, VIDIOC_S_CTRL, &control); in setParameter()
317 int status = ioctl(mDeviceFd, VIDIOC_G_CTRL, &control); in getParameter()
320 << " fd = " << std::hex << mDeviceFd in getParameter()
335 while (0 == ioctl(mDeviceFd, VIDIOC_QUERYCTRL, &ctrl)) { in enumerateCameraControls()