How do I get raw data of 1280x720?( imx6 sabere mxc_v4l2_capture )

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get raw data of 1280x720?( imx6 sabere mxc_v4l2_capture )

686 Views
Contributor I

Testing using i.mx6 sabere board
J9 - DVP Camera Connector is connected to the camera.
(The connected camera is not the ov5642 but the developed camera)

The output of the camera is 1280x720 30fps
I want to get raw data from the i.mx6 board.

The driver files (mxc_v4l2_capture.c, ov5642.c) provided with the sample code
We modified the sample program code (mxc_v4l2_overlay.c, mxc_v4l2_capture.c) to test it.

After modifying driver files
Running mxc_v4l2_overlay.c will result in a 30 fps display with 1280x720.

However, modify mxc_v4l2_capture.c to get raw data
int g_in_width = 1280;
int g_in_height = 720;
int g_out_width = 1280;
int g_out_height = 720;

An error will occur.

imx-ipuv3 2400000.ipu: IC output size (1280) can not exceed 1024
imx-ipuv3 2400000.ipu: failed to calculate prpenc width scaling coefficients
In MVC: mxc_v4l_dqueue
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_9 = 0x04000000

How do I get raw data of 1280x720?

I did a search

https://community.nxp.com/thread/371622

A similar question came up and I set capturemode = 4, but the problem was not resolved.

How do I get raw data of 1280x720?

Labels (3)
0 Kudos
4 Replies

94 Views
Contributor I

Hi,

Use the -i option of mxc_v412_capture.

-i <input mode, 0-use csi->prp_enc->mem, 1-use csi->mem>

./mxc_v412_capture ...blah blah... -i 1 ...blah blah...

0 Kudos

94 Views
NXP TechSupport
NXP TechSupport

Hi OH

IPU IC has limit on max. size as described on
https://community.nxp.com/message/361253#361253
so one needs to split image on smaller areas and rotate them, after
that combine to whole image. Please look at capture examples in
sect.7 Multimedia, sect.7.3.14 Video conversion attached Linux Guide

using gstreamer, it gives more extended support for various use cases

than unit test examples.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

94 Views
Contributor I

Thanks for the reply.
If you look at the link site, the ipu maximum is 1024x1024
Which data sheet should I look for?

0 Kudos

94 Views
NXP TechSupport
NXP TechSupport

please use sect.37.4.5 Image Converter i.MX6DQ Reference Manual
http://cache.nxp.com/files/soft_dev_tools/doc/support_info/iMX6DQPRM.pdf

Best regards
igor

0 Kudos