IMX6 Cropping Issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX6 Cropping Issue

523 次查看
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.

标签 (1)
0 项奖励
1 回复

482 次查看
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 项奖励