Lines Matching refs:GetDeviceFD
54 if (ioctl(GetDeviceFD(), VIDIOC_QUERYCAP, &cap) < 0) { in CHWJpegV4L2Compressor()
63 ALOGD("CHWJpegV4L2Compressor Created: %p, FD %d", this, GetDeviceFD()); in CHWJpegV4L2Compressor()
70 ALOGD("CHWJpegV4L2Compressor Destroyed: %p, FD %d", this, GetDeviceFD()); in ~CHWJpegV4L2Compressor()
141 if (ioctl(GetDeviceFD(), VIDIOC_S_EXT_CTRLS, &ctrls) < 0) { in SetQuality()
410 if (ioctl(GetDeviceFD(), VIDIOC_TRY_FMT, &m_v4l2Format) < 0) { in TryFormat()
420 if (ioctl(GetDeviceFD(), VIDIOC_S_FMT, &m_v4l2Format) < 0) { in SetFormat()
433 if (ioctl(GetDeviceFD(), VIDIOC_S_FMT, &v4l2JpegFormat) < 0) { in SetFormat()
476 if (ioctl(GetDeviceFD(), VIDIOC_S_EXT_CTRLS, &ctrls) < 0) { in UpdateControls()
499 if (ioctl(GetDeviceFD(), VIDIOC_REQBUFS, &reqbufs) < 0) { in ReqBufs()
508 if (ioctl(GetDeviceFD(), VIDIOC_REQBUFS, &reqbufs) < 0) { in ReqBufs()
514 ioctl(GetDeviceFD(), VIDIOC_REQBUFS, &reqbufs); // don't care if it fails in ReqBufs()
536 if (ioctl(GetDeviceFD(), VIDIOC_STREAMON, &m_v4l2SrcBuffer.type) < 0) { in StreamOn()
541 if (ioctl(GetDeviceFD(), VIDIOC_STREAMON, &m_v4l2DstBuffer.type) < 0) { in StreamOn()
543 ioctl(GetDeviceFD(), VIDIOC_STREAMOFF, &m_v4l2SrcBuffer.type); in StreamOn()
558 if (ioctl(GetDeviceFD(), VIDIOC_STREAMOFF, &m_v4l2SrcBuffer.type) < 0) in StreamOff()
561 if (ioctl(GetDeviceFD(), VIDIOC_STREAMOFF, &m_v4l2DstBuffer.type) < 0) in StreamOff()
576 if (ioctl(GetDeviceFD(), VIDIOC_QBUF, &m_v4l2SrcBuffer) < 0) { in QBuf()
582 if (ioctl(GetDeviceFD(), VIDIOC_QBUF, &m_v4l2DstBuffer) < 0) { in QBuf()
618 if (TestFlag(HWJPEG_FLAG_QBUF_OUT) && (ioctl(GetDeviceFD(), VIDIOC_DQBUF, &buffer_src) < 0)) { in DQBuf()
623 if (TestFlag(HWJPEG_FLAG_QBUF_CAP) && (ioctl(GetDeviceFD(), VIDIOC_DQBUF, &buffer_dst) < 0)) { in DQBuf()
743 if (ioctl(GetDeviceFD(), VIDIOC_QUERYCAP, &cap) < 0) { in CHWJpegV4L2Decompressor()
774 if (ioctl(GetDeviceFD(), VIDIOC_REQBUFS, &reqbufs) < 0) { in PrepareCapture()
779 if (ioctl(GetDeviceFD(), VIDIOC_STREAMON, &reqbufs.type) < 0) { in PrepareCapture()
782 ioctl(GetDeviceFD(), VIDIOC_REQBUFS, &reqbufs); in PrepareCapture()
802 ioctl(GetDeviceFD(), VIDIOC_STREAMOFF, &reqbufs.type); in CancelCapture()
803 ioctl(GetDeviceFD(), VIDIOC_REQBUFS, &reqbufs); in CancelCapture()
828 if (ioctl(GetDeviceFD(), VIDIOC_S_FMT, &m_v4l2Format) < 0) { in SetImageFormat()
876 if (ioctl(GetDeviceFD(), VIDIOC_REQBUFS, &rb) < 0) { in PrepareStream()
881 if (ioctl(GetDeviceFD(), VIDIOC_STREAMON, &rb.type) < 0) { in PrepareStream()
886 ioctl(GetDeviceFD(), VIDIOC_REQBUFS, &rb); in PrepareStream()
908 ioctl(GetDeviceFD(), VIDIOC_STREAMOFF, &rb.type); in CancelStream()
909 ioctl(GetDeviceFD(), VIDIOC_REQBUFS, &rb); in CancelStream()
924 if (ioctl(GetDeviceFD(), VIDIOC_QBUF, &buf) < 0) { in QBufAndWait()
929 if (ioctl(GetDeviceFD(), VIDIOC_QBUF, &m_v4l2DstBuffer) < 0) { in QBufAndWait()
937 if (ioctl(GetDeviceFD(), VIDIOC_DQBUF, &buf) < 0) { in QBufAndWait()
945 if (ioctl(GetDeviceFD(), VIDIOC_DQBUF, &buf) < 0) { in QBufAndWait()