Home
last modified time | relevance | path

Searched refs:mDeviceFd (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/evs/sampleDriver/
DVideoCapture.cpp41 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()
[all …]
DVideoCapture.h49 bool isOpen() { return mDeviceFd >= 0; }; in isOpen()
60 int mDeviceFd = -1; variable