g2d_surface clarification

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

g2d_surface clarification

1,503件の閲覧回数
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,352件の閲覧回数
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,352件の閲覧回数
richogrady
Contributor II

Thank You.  Which BSP is the latest?

0 件の賞賛
返信