IMX6 Cropping Issue

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

IMX6 Cropping Issue

509 Views
raoudi82
Contributor I

I am testing using a cropping example of ipu-example.
==========================================
// Input image size and format
task.input.width = 1280;
task.input.height = 1024;
//task.input.format = v4l2_fourcc('R', 'G', 'B', 'P');
task.input.format = v4l2_fourcc('U', 'Y', 'V', 'Y');

task.input.crop.pos.x = 480;
task.input.crop.pos.y = 460;
task.input.crop.w = 246;
task.input.crop.h = 262;

// Output image size and format
task.output.width = 480;
task.output.height = 480;
//task.output.format = v4l2_fourcc('R', 'G', 'B', 'P');
task.output.format = v4l2_fourcc('U', 'Y', 'V', 'Y');

task.output.crop.pos.x = 0;
task.output.crop.pos.y = 0;
task.output.crop.w = 480;
task.output.crop.h = 480;

==========================================

It is OK.
if i set task.input.crop.pos.x from 480 to 481, it  is not work correctly.
The result is the same above settings(pos.x is 480).

For example, increasing the value of pos.x by 4, such as 480, 484, 488, works fine, but increasing by 1 does not work.

how can i this problem?


help me plz.

Labels (1)
0 Kudos
1 Reply

468 Views
igorpadykov
NXP Employee
NXP Employee

Hi Han

seems it is IPU IC Main Processing Memory restriction as

described for example in sect.37.4.5.4 Main Processing Section

i.MX6DQ Reference Manual:

"Each memory word (128 bits) stores 4 adjacent pixels".

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

0 Kudos