From 09972c64255c1831e7152f9d39cff70867b9134a Mon Sep 17 00:00:00 2001 From: iovar Date: Sat, 14 Apr 2007 01:15:06 +0000 Subject: 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 --- recordmydesktop/src/bgr_to_yuv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'recordmydesktop/src') 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,10 +42,8 @@ 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++) -- cgit v1.2.3