[Gta04-owner] Camera scaling down to VGA

Andreas Kemnade andreas at kemnade.info
Sat Jun 8 22:08:33 CEST 2013


Hi,

On Sat, 2013-06-08 at 15:03 -0400, Benjamin Deering wrote: 
> > 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
> 
basically the same what i did and it does not answer my question.
You have to remove the swapuv now! (because of my patch from last
night).

> 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.

they all use the preview pad in that link. mediactl -p then shows
something about cropping. 
> 
> 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
> 
> 
> It is a pretty small finding, but maybe it will give someone else an idea.
> 
Do you use the preview pad here? With the  CCDC->resizer->output
pipeline, i get no picture. Is it for some
CCDC->previewer->resizer->output pipeline?

again, swapuv is wrong!

Greetings
Andreas Kemnade



More information about the Gta04-owner mailing list