g2d report error when I set ro.sf.hwrotation 270

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

g2d report error when I set ro.sf.hwrotation 270

Jump to solution
1,114 Views
zoechen
Contributor I

Hi everyone,

     I work in i.mx6 sabresd mx6dq platform , when I set ro.sf.hwrotation to 270, the g2d will report error log such as "g2d_blit: Invalid src rect, left 0, top 0, right 768, bottom 1024, width 1024, height 768, stride 1024!" , sometimes it will effect out display like this "BufferQueue: [SurfaceView] queueBuffer: slot 2 is not owned by the client (state=3)" .

     It make me wonder, I search our code, there is no place to call the function  g2d_blit, so I can not debug it.

     Who can tell me the reason?

BR,

Zoe Chen

Labels (2)
Tags (1)
0 Kudos
1 Solution
657 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Zoe,

Please refer to the BSP Linux Reference manual Manual, sect.6 for all IPU commands for different rotations displays degree, also it includes the unit test cases as well. as example: # mxc_v4l2_overlay.out -iw 640 -ih 480 -it 0 -il 0 -ow 160 -oh 160 -ot 20 -ol 20 -r4 -t 50 -d 0 -fr 30

Direct preview(90 degree rotation) the camera to SDC background, and set frame rate to 30 fps.

Hope this helps

View solution in original post

0 Kudos
2 Replies
658 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Zoe,

Please refer to the BSP Linux Reference manual Manual, sect.6 for all IPU commands for different rotations displays degree, also it includes the unit test cases as well. as example: # mxc_v4l2_overlay.out -iw 640 -ih 480 -it 0 -il 0 -ow 160 -oh 160 -ot 20 -ol 20 -r4 -t 50 -d 0 -fr 30

Direct preview(90 degree rotation) the camera to SDC background, and set frame rate to 30 fps.

Hope this helps

0 Kudos
656 Views
leiwang111
Contributor I

Hi,

Could someone kindly explain the solution?

I am working with a custom board based on SabreSD. I have an LCD panel (800x600) connected to LVDS and using Android 4.4.2 supplied by Freescale. I configured "setprop ro.sf.hwrotation 270" in the .rc file. The screen comes up in the right orientation: the "natural" is landscape and it comes up as portrait as expected. But in the Logcat I always get:

E/        ( 2302): g2d_blit: Invalid src rect, left 0, top 0, right 600, bottom 800, width 800, height 600, stride 800!

It seems that the width and height somehow are not right (swapped).

I wonder if this can be solved somehow. Also I agree with Zoe, I don't see g2d_blit function in g2d.c were called anywhere else.

Any help will be appreciated.

Regards,

Lei

0 Kudos