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
已解决! 转到解答。
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
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
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