summaryrefslogtreecommitdiff
path: root/recordmydesktop/src
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-04-14 01:15:06 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-04-14 01:15:06 +0000
commit09972c64255c1831e7152f9d39cff70867b9134a (patch)
treecb06f7d88719e073305e31d9c2b0580dccc2d18e /recordmydesktop/src
parentd7cfd3e7219b3841ac69fd3298cf24190831329f (diff)
well... it only took me a few months to notice that the Ub and Vr components
are the same and don't need to be held on separate arrays... (replaced them with on UbVr array) git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@304 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src')
-rw-r--r--recordmydesktop/src/bgr_to_yuv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/recordmydesktop/src/bgr_to_yuv.c b/recordmydesktop/src/bgr_to_yuv.c
index f0632e7..2408c92 100644
--- a/recordmydesktop/src/bgr_to_yuv.c
+++ b/recordmydesktop/src/bgr_to_yuv.c
@@ -42,11 +42,9 @@ void MakeMatrices(){
for(i=0;i<256;i++)
Ug[i]=74.2-(2384.0*i)/8192.0+8.0;
for(i=0;i<256;i++)
- Ub[i]=(3598.0*i)/8192.0 ;
+ UbVr[i]=(3598.0*i)/8192.0 ;
for(i=0;i<256;i++)
- Vr[i]=(3598.0*i)/8192.0;
- for(i=0;i<256;i++)
Vg[i]=93.8-(3013.0*i)/8192.0+8.0;
for(i=0;i<256;i++)
Vb[i]=18.2-(585.0*i)/8192.0+8.0;
© All Rights Reserved