Skip to contentSkip to conversation

Apple quicktime v210 codec equivalent support on V4L

DISCUSSION Dinesh Bhat 2 participants 2 messages May 8, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hello all,

We have a card that supports v210 codec type on Mac OS X. We have our regular drivers (we implement frame buffers) and are interested in supporting v4l for this card. I was wondering if there is any direct support available for v210 codec. Can anyone please suggest what is the best way to go here if we want to support v4l?

Here are the details on v210 packing.

http://developer.apple.com/quicktime/icefloe/dispatch019.html#v210

Thanks for your help.

Kind Regards,

Dinesh

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

#1 lore raw
Quoted 5 lines · Dinesh Bhat

We have a card that supports v210 codec type on Mac OS X. We have our regular drivers (we implement frame buffers) and are interested in supporting v4l for this card. I was wondering if there is any direct support available for v210 codec. Can anyone please suggest what is the best way to go here if we want to support v4l?

If I understand you correctly, you want to write a V4L driver for this card.

There is currently no equivalent to v210 defined but adding support for it to V4L is just a matter of adding

#define V4L2_PIX_FMT_V210 v4l2_fourcc('v','2','1','0') /* 20 YUV 4:2:2 */

to videodev2.h.

A description for the V4L2 API specification should be provided as well.

Conversion between different pixel formats is not supposed to be done in V4L drivers. It should be done either on the card or in the application if needed. If you need to reorder bits to have v210, invent a new pixel format and advertise that one instead of v210. Drivers should not touch the frame buffer. Only hardware and userspace do.

A userspace library is in the works to aid application writers:
http://linuxtv.org/v4lwiki/index.php/V4L2UserspaceLibrary

So your driver should expect the application to already know about v210.

Daniel

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