[Image-SIG] YUYV support for PIL

David Turner novalis at novalis.org
Mon Feb 2 01:41:18 CET 2009


I have written YUYV support for PIL.  YUYV is a format widely used by
crappy webcams.  It's 32 bits for 2 pixels.  The pixels have their own Y
values, but share U and V values.  A patch is attached.

I think it might be possible to add this in pure Python, but I could not
figure out how from the documentation.  Could someone help, so that I
could use PIL before the next release? 

I tested it with my crappy webcam (04f2:b018 Chicony Electronics Co.,
Ltd), and it worked.  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Imaging-yuyv.patch
Type: text/x-patch
Size: 2456 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20090201/56ad285a/attachment.bin>


More information about the Image-SIG mailing list