Lines Matching refs:width

43 void draw_rgba(char *buffer, int width, int height) {  in draw_rgba()  argument
45 for (int j = 0; j < width/4; j++) { in draw_rgba()
46 buffer[(i*width*4) + j*4 + 0] = 0xff; //R in draw_rgba()
47 buffer[(i*width*4) + j*4 + 1] = 0x00; //G in draw_rgba()
48 buffer[(i*width*4) + j*4 + 2] = 0x00; //B in draw_rgba()
49 buffer[(i*width*4) + j*4 + 3] = 0xff; //A in draw_rgba()
51 for (int j = width/4; j < width/4*2; j++) { in draw_rgba()
52 buffer[(i*width*4) + j*4 + 0] = 0x00; in draw_rgba()
53 buffer[(i*width*4) + j*4 + 1] = 0xff; in draw_rgba()
54 buffer[(i*width*4) + j*4 + 2] = 0x00; in draw_rgba()
55 buffer[(i*width*4) + j*4 + 3] = 0xff; in draw_rgba()
57 for (int j = width/4*2; j < width/4*3; j++) { in draw_rgba()
58 buffer[(i*width*4) + j*4 + 0] = 0x00; in draw_rgba()
59 buffer[(i*width*4) + j*4 + 1] = 0x00; in draw_rgba()
60 buffer[(i*width*4) + j*4 + 2] = 0xff; in draw_rgba()
61 buffer[(i*width*4) + j*4 + 3] = 0xff; in draw_rgba()
63 for (int j = width/4*3; j < width; j++) { in draw_rgba()
64 buffer[(i*width*4) + j*4 + 0] = 0xff; in draw_rgba()
65 buffer[(i*width*4) + j*4 + 1] = 0xff; in draw_rgba()
66 buffer[(i*width*4) + j*4 + 2] = 0xff; in draw_rgba()
67 buffer[(i*width*4) + j*4 + 3] = 0xff; in draw_rgba()
72 void draw_YUV420(char *buffer, int width, int height) { in draw_YUV420() argument
74 memset(buffer, 0xa8, width * height / 2); in draw_YUV420()
75 memset(buffer + width * height / 2, 0x54, width * height / 2); in draw_YUV420()
77 memset(buffer + width * height, 0x80, width * height / 4); in draw_YUV420()
78 memset(buffer + (int)(width * height * 1.25), 0x30, width * height / 4); in draw_YUV420()
81 void draw_YUV422(char *buffer, int width, int height) { in draw_YUV422() argument
83 memset(buffer, 0xa8, width * height / 2); in draw_YUV422()
84 memset(buffer + width * height / 2, 0x54, width * height / 2); in draw_YUV422()
86 memset(buffer + width * height, 0x80, width * height / 2); in draw_YUV422()
87 memset(buffer + (int)(width * height * 1.5), 0x30, width * height / 2); in draw_YUV422()
90 void draw_gray256(char *buffer, int width, int height) { in draw_gray256() argument
92 for (int j = 0; j < width/4; j++) { in draw_gray256()
93 buffer[(i*width*4) + j*4] = 0xa8; in draw_gray256()
95 for (int j = width/4; j < width/4*2; j++) { in draw_gray256()
96 buffer[(i*width*4) + j*4] = 0x80; in draw_gray256()
98 for (int j = width/4*2; j < width/4*3; j++) { in draw_gray256()
99 buffer[(i*width*4) + j*4] = 0x54; in draw_gray256()
101 for (int j = width/4*3; j < width; j++) { in draw_gray256()
102 buffer[(i*width*4) + j*4] = 0x30; in draw_gray256()