Hi,
I am working on I.MX8 board and which is connected to video decoder board, In mx8_v4l2_cap_drm.c file drmModeSetCrtc() function getting failed when I created frame buffer with BPP(BitsPerPixel) is 24 but it is getting success when BPP(BitsPerPixel) value is 16, 32, 40 and 48.
Please help us to resolve this Issue.
Thanks & Regards,
Mallikarjuna B.
what imx8 board do you use?
Hi,
I am using I.MX8QM board.
Thanks & Regards,
Mallikarjuna B.
Hi,
I am connecting video decoder board to my I.MX8QM board and I am supplying RGB888 data format to I.MX8QM board, for capturing video data I am running following command "mx8_v4l2_cap_drm -cam 1 -fmt BGR3". We are providing bpp as 32 from mx8_v4l2_cap_drm.c file then Image displaying in HDMI port of I.MX8QM is as below. and it is creating issue(drmModeSetCrtc() function getting failed) when I am providing bpp value is 24.
mxc-isi-cap - using mxc_isi_out_formats is, {
.name = "BGR24",
.fourcc = V4L2_PIX_FMT_BGR24,
.depth = { 32},
.color = MXC_ISI_OUT_FMT_RGB32P,
.memplanes = 1,
.colplanes = 1,
.mbus_code = MEDIA_BUS_FMT_RGB888_1X24,
}
Now I am getting Image as per below, some portion of screen at end it is in black color.
mxc-isi-cap - using mxc_isi_out_formats is, {
.name = "BGR24",
.fourcc = V4L2_PIX_FMT_BGR24,
.depth = { 24},
.color = MXC_ISI_OUT_FMT_RGB32P,
.memplanes = 1,
.colplanes = 1,
.mbus_code = MEDIA_BUS_FMT_RGB888_1X24,
}
I am getting image as below.
Please help us to resolve this Issue.
Thanks & Regards,
Mallikarjuna B.
Hi,
Please find the attached log data when I am using "mx8_v4l2_cap_drm -cam 1 -fmt BGR3".
with mx8_v4l2_cap_drm.7z, I am running "mx8_v4l2_cap_drm -cam 1 -fmt BGR3" then I am getting Image as below.
Please provide latest mx8_v4l2_cap_drm.c file.
Thanks & Regards,
Mallikarjuna B.
did you try the latest bsp version? we have released the 5.10.72
refer to the source code, already support BGR24
how about :
{ .name = "RGB24", .fourcc = V4L2_PIX_FMT_RGB24, .depth = { 24 }, .color = MXC_ISI_OUT_FMT_BGR32P, .memplanes = 1, .colplanes = 1, .mbus_code = MEDIA_BUS_FMT_RGB888_1X24, }, {
Hi,
I am getting below image while running RGB24 format.
Thanks & Regards,
Mallikarjuna B.