g2d_surface clarification

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

g2d_surface clarification

596 Views
richogrady
Contributor II

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?

Labels (1)
0 Kudos
2 Replies

445 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi RICH,

Should be disp_width -1  and disp_ height -1. 

I strongly suggest to migrate your code to latest BSP,

0 Kudos

445 Views
richogrady
Contributor II

Thank You.  Which BSP is the latest?

0 Kudos