[Gridflow-cvs] [svn] commit: r5283 - /trunk/src/videodev.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Apr 2 18:06:27 EDT 2010


Author: matju
Date: Fri Apr  2 18:06:26 2010
New Revision: 5283

Log:
fix for palette 8

Modified:
    trunk/src/videodev.cxx

Modified: trunk/src/videodev.cxx
==============================================================================
--- trunk/src/videodev.cxx (original)
+++ trunk/src/videodev.cxx Fri Apr  2 18:06:26 2010
@@ -376,16 +376,16 @@
 			out.send(bs,b2);
 		    }
 		} else if (cs=="rgb") {
-		    for(int y=0; y<sy; bufy+=sx*2, y++) {int Y1,Y2,U,V;
-			for (int x=0,xx=0; x<sx; x+=4,xx+=6) {GETYUYV(x); YUV2RGB(b2+xx,Y1,U,V); YUV2RGB(b2+xx+3,Y2,U,V);}
+		    for(int y=0; y<sy; bufy+=2*sx, y++) {int Y1,Y2,U,V;
+			for (int x=0,xx=0; x<sx*2; x+=4,xx+=6) {GETYUYV(x); YUV2RGB(b2+xx,Y1,U,V); YUV2RGB(b2+xx+3,Y2,U,V);}
 			out.send(bs,b2);}
 		} else if (cs=="yuv") {
-		    for(int y=0; y<sy; bufy+=sx*2, y++) {int Y1,Y2,U,V;
-			for (int x=0,xx=0; x<sx; x+=4,xx+=6) {GETYUYV(x); YUV2YUV(b2+xx,Y1,U,V); YUV2YUV(b2+xx+3,Y2,U,V);}
+		    for(int y=0; y<sy; bufy+=2*sx, y++) {int Y1,Y2,U,V;
+			for (int x=0,xx=0; x<sx*2; x+=4,xx+=6) {GETYUYV(x); YUV2YUV(b2+xx,Y1,U,V); YUV2YUV(b2+xx+3,Y2,U,V);}
 			out.send(bs,b2);}
 		} else if (cs=="magic") {
 		    int sx2 = sx/2;
-		    for(int y=0; y<sy/2; bufy+=2*sx, y++) {
+		    for(int y=0; y<sy; bufy+=2*sx, y+=2) {
  			for (int x=0,xx=0; x<sx2; x+=3,xx+=3) {b2[xx+0]=bufy[x+0]; b2[xx+1]=bufy[x+1]; b2[xx+2]=bufy[x+3];}
 			out.send(bs,b2);
 		    }



More information about the Gridflow-cvs mailing list