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.