My Bsp is LINUX3.0.35_4.1.0. I use the program mxc_v4l2_overlay.out to do the test.My LCD resolution is 1024x768. I do the following test:
1->/mxc_v4l2_overlay.out -il 0 -it 0 -iw 1024 -ih 768 -ol 704 -ot 528 -ow 320 -oh 240 -fg
In this case, it works fine. The video is display on the right bottom of the lc, as image1.jpg shows.
2->./mxc_v4l2_overlay.out -il 0 -it 0 -iw 1024 -ih 768 -ol 704 -ot 528 -ow 320 -oh 240
In this case, the video is not displayed properly, it is displayed as image2.jpg
3->./mxc_v4l2_overlay.out -il 0 -it 0 -iw 1024 -ih 768 -ol 352 -ot 264 -ow 320 -oh 240
In this case ,it works fine. Can anyone tell why case 2 doesn't work?
-fg means foregroud mode, you can use command "cat /sys/class/graphics/fb0/virtual_size " and "cat /sys/class/graphics/fb1/virtual_size" to check your fb size is enough for your case, and you can use fbset to set the memory
Xie,
The fb size is enouch for my case. I have some confusions that while in background mode why the coordinates (352,264) works fine but the coordinate (704,528) doesn't work.