g2d_surface clarification

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

g2d_surface clarification

1,404 次查看
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?

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

1,253 次查看
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 项奖励
回复

1,253 次查看
richogrady
Contributor II

Thank You.  Which BSP is the latest?

0 项奖励
回复