In mx8_v4l2_cap_drm.c file drmModeSetCrtc() function getting failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

In mx8_v4l2_cap_drm.c file drmModeSetCrtc() function getting failed

3,564 Views
mallibeerala
Contributor III

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.

0 Kudos
Reply
8 Replies

3,556 Views
joanxie
NXP TechSupport
NXP TechSupport

what imx8 board do you use?

 

0 Kudos
Reply

3,545 Views
mallibeerala
Contributor III

Hi,

I am using I.MX8QM board.

Thanks & Regards,
Mallikarjuna B.

0 Kudos
Reply

3,539 Views
mallibeerala
Contributor III

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.

mallibeerala_0-1639391292292.png

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.

mallibeerala_1-1639391372246.png

Please help us to resolve this Issue.

Thanks & Regards,
Mallikarjuna B.

0 Kudos
Reply

3,505 Views
joanxie
NXP TechSupport
NXP TechSupport

could you share the logfile with me when you use "mx8_v4l2_cap_drm -cam 1 -fmt BGR3" ?

how about try the enclosed file? any difference?

 

0 Kudos
Reply

3,487 Views
mallibeerala
Contributor III

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.

mallibeerala_0-1639980779814.png

Thanks & Regards,
Mallikarjuna B.

0 Kudos
Reply

3,458 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

3,528 Views
joanxie
NXP TechSupport
NXP TechSupport

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,
	}, {

0 Kudos
Reply

3,519 Views
mallibeerala
Contributor III

Hi,

I am getting below image while running RGB24 format.

 

mallibeerala_0-1639654232042.png

 

Thanks & Regards,
Mallikarjuna B.

0 Kudos
Reply