Re: OMAP3 ISP change image format

2013-08-22 Thread jean-philippe francois
It is my understanding that you should set up the format with
media-ctl, and only check
the result in your application. In other words, using G/S/TRY_FMT
ioctl on the video output
nodes won't work.

You can try the following pipeline :
ov3640 - ccdc - previewer - previewer V4L2 output

and set previewer sink pad to bayer and previewer src pad to yuv

I don't think you can output rgb565 however. It is only an input
format for the CCDC.
Anyway, when you use G/S/TRY_FMT ioctl, always check the returned format.


2013/8/20 Tom bassai_...@gmx.net:
 Hello,

 I try from my own application out to grab an image with a ov3640 sensor. For
 this I need to understand the media-api and the isp pipeline correctly.

 I had problems with the use of media-ctl so I implemented the functionality
 into my application and it seems to work fine. Without an error I grabbed an
 image, but it was black.

 So maybe my format settings are not correctly set. My Question is:

 For example I want to grab a rgb565 image from my camera sensor and display
 it on a webpage. my pipeline looks like this:

 ov3640-ccdc-memory

 Would it be enough to just set a raw bayer format on the source and sink
 pads and just the format of the video device (/dev/video2) as rgb565?

 Regards, Tom





 --
 To unsubscribe from this list: send the line unsubscribe linux-media in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


OMAP3 ISP change image format

2013-08-20 Thread Tom
Hello,

I try from my own application out to grab an image with a ov3640 sensor. For
this I need to understand the media-api and the isp pipeline correctly.

I had problems with the use of media-ctl so I implemented the functionality
into my application and it seems to work fine. Without an error I grabbed an
image, but it was black.

So maybe my format settings are not correctly set. My Question is:

For example I want to grab a rgb565 image from my camera sensor and display
it on a webpage. my pipeline looks like this:

ov3640-ccdc-memory

Would it be enough to just set a raw bayer format on the source and sink
pads and just the format of the video device (/dev/video2) as rgb565?

Regards, Tom





--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html