Saturday, May 24, 2008

UVC Webcam Flip Patch v03

I updated the patch slightly to copy whole lines of data, instead of 4 byte chunks.

http://www.uhacc.org/~dfu/uvc-hack-v03.tar.gz
http://www.uhacc.org/~dfu/uvc-hack-v03.patch

Thursday, May 15, 2008

Updated UVC Flip Hack

I've created an updated patch to fix a couple issues of the original patch. In the original the image was not only flipped vertically, but horizontally too. However, since my understanding of the video format was not the greatest, the luminance bits were not flipped. Every four bytes corresponds to two pixels, with each pixel having its own luminance, but the chrominance is shared between the two. Well, since I didn't switch the luminance bits, it looked blocky at low resolutions.

This new patch is somewhat more complex, but, is also more accurate. It creates a vertical flip by understanding the height and width of the image, and not just dealing with the length of the array.

Again, this is for Asus Laptops using the Chicony based webcam:
http://www.uhacc.org/~dfu/uvc-hack-v02.tar.gz
http://www.uhacc.org/~dfu/uvc-hack-v02.patch

Tuesday, May 6, 2008

Chicony 04f2:b012 Webcam UVC Hack

Since on the Asus W7S, the cam is installed upside down, I did a small hack for the Linux UVC driver to flip the Chicony webcam's image vertically. At the moment it is very hacky, but works fine. This really shouldn't be in the kernel, but I would rather have the cam work than not.

Based on SVN Rev 207 of the UVC driver: http://www.uhacc.org/~dfu/uvc-hack.tar.gz
If you want to see what I did: http://www.uhacc.org/~dfu/uvc-hack.patch

I will post more findings later.

Labels: , , , ,