[Gta04-owner] Camera scaling down to VGA

Dr. H. Nikolaus Schaller hns at goldelico.com
Sat Jun 8 21:43:15 CEST 2013


Am 08.06.2013 um 21:03 schrieb Benjamin Deering:

> 
>> I do not understand yet, what is going on, I tried capturing images with
>> this:
>> http://misc.andi.de1.cc/capture-vga.c
>> 
>> and then
>> convert UYVY:name name.jpg
>> with the resulting captures. They look synced. Maybe mplayer is not fast
>> enough with collecting data? I still get nearly 100% cpu load.
> 
> 
> This is from a message I sent to the gta04-community forum a few weeks ago.  This synced up:
> 
> I spent some time with the camera-demo script and I think I found out something useful.  If I bypass the omap ISP preview pad, the resizer works:
> media-ctl -r
> media-ctl -v -l '"ov9655 2-0030":0->"OMAP3 ISP CCDC":0[1]'
> media-ctl -v -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP resizer":0[1]'
> media-ctl -v -l '"OMAP3 ISP resizer":1->"OMAP3 ISP resizer output":0[1]'
> media-ctl -v -V '"ov9655 2-0030":0 [UYVY2X8 1280x1024]'
> media-ctl -v -V '"OMAP3 ISP CCDC":1 [UYVY2X8 1280x1024]'
> media-ctl -v -V '"OMAP3 ISP resizer":0 [UYVY 1280x1024]'
> media-ctl -v -V '"OMAP3 ISP resizer":1 [UYVY 320x256]'
> mplayer -v tv:// -vf rotate=2,swapuv -tv driver=v4l2:device=$(media-ctl -e "OMAP3 ISP resizer output"):outfmt=uyvy:width=320:height=256 -vo x11
> 
> This discussion http://www.spinics.net/lists/linux-media/msg40786.html and a few other places make it look like omap3isp does some automatic cropping and links that use the cropped data need to know to what size it was cropped.

Ah, that may be the reason for loosing sync.

And there are some stubs from the orginal camera driver that are intended to control crop but I did not yet understand how to use it.

> 
> for vga output, I used:
> media-ctl -v -V '"OMAP3 ISP resizer":1 [UYVY 640x475]'
> mplayer -v tv:// -vf rotate=2,swapuv -tv driver=v4l2:device=$(media-ctl -e "OMAP3 ISP resizer output"):outfmt=uyvy:width=640:height=475 -vo x11
> 
> and for sxga I used:
> media-ctl -v -V '"OMAP3 ISP resizer":1 [UYVY 1280x1014]'
> mplayer -v tv:// -vf rotate=2,swapuv -tv driver=v4l2:device=$(media-ctl -e "OMAP3 ISP resizer output"):outfmt=uyvy:width=1280:height=1014 -vo x11

Ok, one has to specify 5 or 10 pixels less.

Nikolaus


More information about the Gta04-owner mailing list