Hello,
From doc AR0144 and ov9284 drivers for I.MX8QM/QXP. on community,about On imx8qm/qxp the data will be recieved as raw 16bit and the valid data bit start from bit[13] to LSB.
That means i.MX8 only can received 16 bit raw data? 12bit data can not support?
and when AR0144 gives 12bit data the other 4bit is filled by i.MX8 ISI or max96705?
0bxxdd_dddd_dddd_ddxx the 'x' means the filled data?
And about the tool vulkan-v4l2,when run it happened error:
error: XDG_RUNTIME_DIR not set in the environment.
vulkan-v4l2: /home/nxf47746/data/project/glfw/src/window.c:955: glfwSetWindowUserPointer: Assertion `window != NULL' failed.
Aborted (core dumped)
How to fixed it?
Thanks
已解决! 转到解答。
i.MX8qm/qxp raw data type only support 16bit, 'x' will be zero filled by isi.
The tool depends on wayland, it is only used to preview the mono raw image, you can also write your own capturing program to preview the image.
Thanks for reply,and from ov9284 patch that isi:
+ .name = "Y10",
+ .fourcc = V4L2_PIX_FMT_Y10,
+ .depth = { 16 },
+ .color = MXC_ISI_OUT_FMT_RAW16,
+ .memplanes = 1,
+ .colplanes = 1,
+ .mbus_code = MEDIA_BUS_FMT_Y10_1X10,
and driver is + max9286_data->format.code = MEDIA_BUS_FMT_Y10_1X10;
from ar0144 patch isi:
+ .name = "BYR2",
+ .fourcc = V4L2_PIX_FMT_SBGGR16,
+ .depth = { 16 },
+ .color = MXC_ISI_OUT_FMT_RAW16,
+ .memplanes = 1,
+ .colplanes = 1,
+ .mbus_code = MEDIA_BUS_FMT_SBGGR16_1X16,
and driver is + max9286_data->format.code = MEDIA_BUS_FMT_Y12_1X12;
why ar0144 is V4L2_PIX_FMT_SBGGR16 not V4L2_PIX_FMT_Y10 ?
Thanks
cross bar is not mandatory, as the document mentioned, it is only needed when the data bit is reversed.
The register config in the patch driver is just for reference, it's working on my platform, the register should be configured according to the "dbl bws PXL_CRC/edc hven hibw lccen him" on your platform.