/hardware/interfaces/camera/device/default/ |
D | ExternalCameraDevice.cpp | 884 struct v4l2_fmtdesc fmtdesc { in getCandidateSupportedFormatsLocked() struct 889 ret = TEMP_FAILURE_RETRY(ioctl(fd, VIDIOC_ENUM_FMT, &fmtdesc)); in getCandidateSupportedFormatsLocked() 890 ALOGV("index:%d,ret:%d, format:%c%c%c%c", fmtdesc.index, ret, fmtdesc.pixelformat & 0xFF, in getCandidateSupportedFormatsLocked() 891 (fmtdesc.pixelformat >> 8) & 0xFF, (fmtdesc.pixelformat >> 16) & 0xFF, in getCandidateSupportedFormatsLocked() 892 (fmtdesc.pixelformat >> 24) & 0xFF); in getCandidateSupportedFormatsLocked() 894 if (ret != 0 || (fmtdesc.flags & V4L2_FMT_FLAG_EMULATED)) { in getCandidateSupportedFormatsLocked() 896 fmtdesc.index++; in getCandidateSupportedFormatsLocked() 900 std::find(kSupportedFourCCs.begin(), kSupportedFourCCs.end(), fmtdesc.pixelformat); in getCandidateSupportedFormatsLocked() 902 fmtdesc.index++; in getCandidateSupportedFormatsLocked() 907 v4l2_frmsizeenum frameSize{.index = 0, .pixel_format = fmtdesc.pixelformat}; in getCandidateSupportedFormatsLocked() [all …]
|
/hardware/interfaces/camera/device/3.4/default/ |
D | ExternalCameraDevice.cpp | 867 struct v4l2_fmtdesc fmtdesc { in getCandidateSupportedFormatsLocked() struct 872 ret = TEMP_FAILURE_RETRY(ioctl(fd, VIDIOC_ENUM_FMT, &fmtdesc)); in getCandidateSupportedFormatsLocked() 873 ALOGV("index:%d,ret:%d, format:%c%c%c%c", fmtdesc.index, ret, in getCandidateSupportedFormatsLocked() 874 fmtdesc.pixelformat & 0xFF, in getCandidateSupportedFormatsLocked() 875 (fmtdesc.pixelformat >> 8) & 0xFF, in getCandidateSupportedFormatsLocked() 876 (fmtdesc.pixelformat >> 16) & 0xFF, in getCandidateSupportedFormatsLocked() 877 (fmtdesc.pixelformat >> 24) & 0xFF); in getCandidateSupportedFormatsLocked() 878 if (ret == 0 && !(fmtdesc.flags & V4L2_FMT_FLAG_EMULATED)) { in getCandidateSupportedFormatsLocked() 880 kSupportedFourCCs.begin(), kSupportedFourCCs.end(), fmtdesc.pixelformat); in getCandidateSupportedFormatsLocked() 885 .pixel_format = fmtdesc.pixelformat}; in getCandidateSupportedFormatsLocked() [all …]
|
/hardware/google/graphics/common/libv4l2/ |
D | exynos_v4l2.c | 292 struct v4l2_fmtdesc fmtdesc; in exynos_v4l2_enum_fmt() local 297 fmtdesc.type = type; in exynos_v4l2_enum_fmt() 298 fmtdesc.index = 0; in exynos_v4l2_enum_fmt() 300 while (ioctl(fd, VIDIOC_ENUM_FMT, &fmtdesc) == 0) { in exynos_v4l2_enum_fmt() 301 if (fmtdesc.pixelformat == fmt) { in exynos_v4l2_enum_fmt() 302 … ALOGE("Passed fmt = %#x found pixel format[%d]: %s", fmt, fmtdesc.index, fmtdesc.description); in exynos_v4l2_enum_fmt() 307 fmtdesc.index++; in exynos_v4l2_enum_fmt()
|
/hardware/qcom/display/msm8998/sdm/libs/core/drm/ |
D | hw_info_drm.cpp | 396 struct v4l2_fmtdesc fmtdesc = {}; in GetRotatorFormatsForType() local 397 fmtdesc.type = type; in GetRotatorFormatsForType() 398 while (!Sys::ioctl_(fd, static_cast<int>(VIDIOC_ENUM_FMT), &fmtdesc)) { in GetRotatorFormatsForType() 400 GetSDMFormat(fmtdesc.pixelformat, &sdm_format); in GetRotatorFormatsForType() 404 fmtdesc.index++; in GetRotatorFormatsForType()
|
/hardware/qcom/display/msm8909/sdm/libs/core/drm/ |
D | hw_info_drm.cpp | 409 struct v4l2_fmtdesc fmtdesc = {}; in GetRotatorFormatsForType() local 410 fmtdesc.type = type; in GetRotatorFormatsForType() 411 while (!Sys::ioctl_(fd, static_cast<int>(VIDIOC_ENUM_FMT), &fmtdesc)) { in GetRotatorFormatsForType() 413 GetSDMFormat(fmtdesc.pixelformat, &sdm_format); in GetRotatorFormatsForType() 417 fmtdesc.index++; in GetRotatorFormatsForType()
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/drm/ |
D | hw_info_drm.cpp | 396 struct v4l2_fmtdesc fmtdesc = {}; in GetRotatorFormatsForType() local 397 fmtdesc.type = type; in GetRotatorFormatsForType() 398 while (!Sys::ioctl_(fd, static_cast<int>(VIDIOC_ENUM_FMT), &fmtdesc)) { in GetRotatorFormatsForType() 400 GetSDMFormat(fmtdesc.pixelformat, &sdm_format); in GetRotatorFormatsForType() 404 fmtdesc.index++; in GetRotatorFormatsForType()
|
/hardware/qcom/sm8150/display/sdm/libs/core/drm/ |
D | hw_info_drm.cpp | 582 struct v4l2_fmtdesc fmtdesc = {}; in GetRotatorFormatsForType() local 583 fmtdesc.type = type; in GetRotatorFormatsForType() 584 while (!Sys::ioctl_(fd, static_cast<int>(VIDIOC_ENUM_FMT), &fmtdesc)) { in GetRotatorFormatsForType() 586 GetSDMFormat(fmtdesc.pixelformat, &sdm_format); in GetRotatorFormatsForType() 590 fmtdesc.index++; in GetRotatorFormatsForType()
|
/hardware/qcom/sm7250/display/sdm/libs/core/drm/ |
D | hw_info_drm.cpp | 612 struct v4l2_fmtdesc fmtdesc = {}; in GetRotatorFormatsForType() local 613 fmtdesc.type = type; in GetRotatorFormatsForType() 614 while (!Sys::ioctl_(fd, static_cast<int>(VIDIOC_ENUM_FMT), &fmtdesc)) { in GetRotatorFormatsForType() 616 GetSDMFormat(fmtdesc.pixelformat, &sdm_format); in GetRotatorFormatsForType() 620 fmtdesc.index++; in GetRotatorFormatsForType()
|
/hardware/qcom/camera/msm8998/usbcamcore/src/ |
D | QualcommUsbCamera.cpp | 1065 struct v4l2_fmtdesc fmtdesc; in getPreviewCaptureFmt() local 1067 memset(&fmtdesc, 0, sizeof(v4l2_fmtdesc)); in getPreviewCaptureFmt() 1078 fmtdesc.index = i; in getPreviewCaptureFmt() 1079 fmtdesc.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in getPreviewCaptureFmt() 1080 if (-1 == ioctlLoop(camHal->fd, VIDIOC_ENUM_FMT, &fmtdesc)) { in getPreviewCaptureFmt() 1088 if(V4L2_PIX_FMT_MJPEG == fmtdesc.pixelformat){ in getPreviewCaptureFmt() 1092 if(V4L2_PIX_FMT_H264 == fmtdesc.pixelformat){ in getPreviewCaptureFmt()
|