Skip to contentSkip to conversation

soc-camera : add new flags

DISCUSSION Matthieu CASTET 2 participants 4 messages Dec 18, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to use soc-camera for our camera IP.

Our IP allow to chose if the synchronization is done according to ITU-R BT601 or ITU-R BT656.
Can new flag be added to negotiate the synchronization standard between host and sensor.

Our IP also allow to select if the data on the bus is transmitted on the CbYCrY order or YCbYCr order.
Can new flag be added to negotiate the synchronization standard between host and sensor.

Thanks

Matthieu

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#1 lore raw
Quoted 8 lines · Matthieu CASTET

Hi,

I am trying to use soc-camera for our camera IP.

Our IP allow to chose if the synchronization is done according to ITU-R BT601 or ITU-R BT656.
Can new flag be added to negotiate the synchronization standard between host and sensor.

Yes, sure, send a patch. Just add required SOCAM_SYNC_{GATED,NONGATED,BT601,BT656} (or whatever you'd like to call them) flags, and extend soc_camera_bus_param_compatible() to verify them.

Quoted 4 lines

Our IP also allow to select if the data on the bus is transmitted on the CbYCrY order or YCbYCr order.
Can new flag be added to negotiate the synchronization standard between host and sensor.

Different statement but the same question? If you wanted to ask about colour format then just use different YUYV / UYVY / ... fourcc codes.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#2 lore raw
Quoted 6 lines · Guennadi Liakhovetski
Quoted 4 lines · Matthieu CASTET

Hi,

I am trying to use soc-camera for our camera IP.

Quoted 9 lines
Quoted 4 lines

Our IP allow to chose if the synchronization is done according to ITU-R BT601 or ITU-R BT656.
Can new flag be added to negotiate the synchronization standard between host and sensor.

Yes, sure, send a patch. Just add required SOCAM_SYNC_{GATED,NONGATED,BT601,BT656} (or whatever you'd like to call them) flags, and extend soc_camera_bus_param_compatible() to verify them.

Ok

Quoted 7 lines
Quoted 4 lines

Our IP also allow to select if the data on the bus is transmitted on the CbYCrY order or YCbYCr order.
Can new flag be added to negotiate the synchronization standard between host and sensor.

Different statement but the same question? If you wanted to ask about colour format then just use different YUYV / UYVY / ... fourcc codes.

How do you differentiate color format of the bus and the color format output by v4l ?

In our case the bus format can be YUYV or UYVY, but the host camera IP can only output YUV422P/YUV420/YVU420.

Matthieu

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#3 lore raw
Quoted 8 lines · Matthieu CASTET
Quoted 7 lines · Guennadi Liakhovetski
Quoted 4 lines · Matthieu CASTET

Our IP also allow to select if the data on the bus is transmitted on the CbYCrY order or YCbYCr order.
Can new flag be added to negotiate the synchronization standard between host and sensor.

Quoted 7 lines
Quoted 2 lines

Different statement but the same question? If you wanted to ask about colour format then just use different YUYV / UYVY / ... fourcc codes.

How do you differentiate color format of the bus and the color format output by v4l ?

In our case the bus format can be YUYV or UYVY, but the host camera IP can only output YUV422P/YUV420/YVU420.

This is what our recently added format conversion infrastructure is for, basically your camera host driver is called on camera supported format enumeration for each camera format and it has to decide whether it supports that format and to which formats it can convert it. Both in-tree host drivers support this.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list