Image format set with VIDIOC_S_FMT successfully on host PC, yet failed on target ARM dev-board.
Gallon Fr <[email protected]> Sun, 28 Mar 2010 20:29:27 +0800
| Newsgroups | gmane.comp.video.video4linux |
|---|---|
| Message-ID | <[email protected]> |
Hi,all: I got a problem while I was trying to capture a frame through a webcam on a dev-board.I just followed the example provided by V4L2 specs and made a little change in the process_image() function.The code runs well on my PC,and I can exactly get a converted BMP file after setting the image format to "YUYV". BUT when port it to ARM, I just got the "Invalid Argument" error returned by VIDIOC_S_FMT.I tried with the G_FMT ioctl both on PC and ARM and the result confused me.While on ARM the returned supported format is "MJPG",rather than "YUYV" on PC and that's why the S_FMT complained. Here is some info about my environment. host-pc: Fedora 12( kernel 2.6.31.5) target-arm: arm-linux (kernel 2.6.32.2) EABI enabled/V4L enabled/gspca enabled/uvc enabled cross-compiler: Soucery G++ (EABI) Should I just install a module to ARM or add something else?Or maybe someone could leave me a hint? Thanks and Regards Fei -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list