Hi,
Kai Tiwisina schrieb:
Hello everyone,
here is a little update to my question and to the source code.
After i implemented an function with the VIDIOC_ENUM_FMT ioctl i
recognized, that only two formats are support by the driver by now.
(Thanks to Mr. Liakhovetski by the way ;) )
The output.txt shows the output of this function and mentions the two
different types.
One is definately the V4L2_PIX_FMT_YUYV format but i don't know the
other one exactly...
I changed my set_format function after i got this information and
unfortunately nothing has changed...
Perhaps there are some further possibilities to solve this Problem.
Maybe there have some other v4l2 structures to be initialized, befor
the VIDIOC_S_FMT ioctl runs?
You have to set fmt.fmt.pix.field toV4L2_FIELD_ANY and only YUV is
supported at the moment.
Regards,
Stefan
Guennadi Liakhovetski wrote:
Hi Kai
On Mon, 23 Nov 2009, Kai Tiwisina wrote:
Hello,
my name is Kai Tiwisina and i'm a student in germany and i'm trying
to communicate with a Omnivision ov9655 camera which is atteched
with my embedded linux system via the v4l commands.
I've written a small testprogram which should grow step by step
while i'm trying one ioctl after another.
Everything worked fine until i tried to use the VIDIOC_S_FMT ioctl.
It's always giving me an "invalid argument" failure and i don't know
why.
Since you don't seem to have the source of the driver at hand, I'd
suggest to use the VIDIOC_ENUM_FMT
http://v4l2spec.bytesex.org/spec/r8367.htm ioctl to enumerate all
pixel formats supported be the driver. If the driver you're using is
the same, that Stefan (cc'ed) has submitted to the list, then indeed
it does not support the V4L2_PIX_FMT_RGB555 format, that you're
requesting, only various YUV (and a Bayer?) formats.
Perhaps someone of you is able to help me with this ioctl and give
an advice for a simple flow chart for a single frame image capture.
Which ioctl steps are neccessary and where do i need loops and for
what, because the capture-example.c from bytesex.org is way too
general for my purpose.
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
Dipl.-Ing. Stefan Herbrechtsmeier
Heinz Nixdorf Institute
University of Paderborn
System and Circuit Technology
Fürstenallee 11
D-33102 Paderborn (Germany)
office : F0.415
phone : + 49 5251 - 60 6342
fax : + 49 5251 - 60 6351
mailto : hbmeier@xxxxxxxxxx
www : http://wwwhni.upb.de/sct/mitarbeiter/hbmeier
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html