In the i.mx_6_Graphics_User's_Guide:
Document Number: IMX6GRAPHICUG
Rev. L3.14.28_1.0.0-ga, 04/2015
The g2d_surface components are described on page 7:
left Int Left offset in blit rectangle
top Int Top offset in blit rectangle
right Int Right offset in blit rectangle
bottom Int Left offset in blit rectangle
Then on page 13 they are used in an example:
dst.left = 0;
dst.top = 0;
dst.right = disp_width;
dst.bottom = disp_height;
The description on page 7 leads one to believe that the right and bottom offsets are the index of the rightmost and bottommost pixel in the rectangle of interest. If this is the case should the example on page 13 be setting these to (disp_width - 1) and (disp_height - 1)? Otherwise the example as written implies a rectangle that is 1 pixel wider and 1 pixel taller than the disp/screen size. Can someone from NXP clarify this?
Hi RICH,
Should be disp_width -1 and disp_ height -1.
I strongly suggest to migrate your code to latest BSP,
Thank You. Which BSP is the latest?