shithub: treason

Download patch

ref: 3c7e3e2395b2f3c4c3e0199c1f5153b75993949c
parent: 28ef2a222c95ee8826d9eed152964bfcc90e30a7
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed Sep 23 12:32:52 EDT 2020

YUV: rename *1 -> *

--- a/yuv.c
+++ b/yuv.c
@@ -8,21 +8,21 @@
 {
 	u32int w, h;
 	int r, g, b;
-	int yy1, cb1, cr1, go;
+	int yy, cb, cr, go;
 
 	for(h = 0; h < height-1; h += 2){
 		for(w = 0; w < width-1; w += 2){
-			cb1 = *u - 0x80;
-			cr1 = *v - 0x80;
-			go = 22554*cb1 + 46802*cr1;
+			cb = *u - 0x80;
+			cr = *v - 0x80;
+			go = 22554*cb + 46802*cr;
 
 #define ONE do{ \
-			yy1 = *y * 0x10101; \
-			b = yy1 + 116130*cb1; \
+			yy = *y * 0x10101; \
+			b = yy + 116130*cb; \
 			rgb[0] = (b >> 24) ? ~(b >> 31) : (b>>16); \
-			g = yy1 - go; \
+			g = yy - go; \
 			rgb[1] = (g >> 24) ? ~(g >> 31) : (g>>16); \
-			r = yy1 + 91881*cr1; \
+			r = yy + 91881*cr; \
 			rgb[2] = (r >> 24) ? ~(r >> 31) : (r>>16); \
 }while(0)