Skip to contentSkip to conversation

OMAP3 ISP change image format

DISCUSSION Tom 2 participants 2 messages Aug 20, 2013 – Aug 22, 2013 Media (V4L/DVB)

lore
Share & tools
lore

Tom

author
#0 lore raw

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

#1 lore raw

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 <[email protected]>:

Quoted 29 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html