Searched refs:ImgWidth (Results 1 - 16 of 16) sorted by relevance

/xsrc/external/mit/mesa-demos/dist/src/tests/
H A Dtexcompsub.c15 static int ImgWidth = 512; variable in typeref:typename:int
40 glTexImage2D(Target, 0, CompFormat, ImgWidth, ImgHeight, 0,
46 ImgWidth, ImgHeight / 2,
51 memcpy(&ImgDataTemp[i * ImgWidth], &ImgData[half + i * 2 * ImgWidth], ImgWidth);
55 ImgWidth / 2, ImgHeight / 2,
60 memcpy(&ImgDataTemp[i * ImgWidth], &ImgData[half + i * 2 * ImgWidth + ImgWidth], ImgWidt
[all...]
H A Dpbo.c20 static int ImgWidth, ImgHeight; variable in typeref:typename:int
54 BPosX = APosX + ImgWidth + 5; BPosY = 20;
55 CPosX = BPosX + ImgWidth + 5; CPosY = 20;
116 glDrawPixels(ImgWidth, ImgHeight, ImgFormat, GL_UNSIGNED_BYTE, 0);
135 glReadPixels(APosX, APosY, ImgWidth, ImgHeight,
141 pixelsPerSecond = reads * ImgWidth * ImgHeight / seconds;
147 glReadPixels(APosX, APosY, ImgWidth, ImgHeight,
159 glDrawPixels(ImgWidth, ImgHeight, ReadFormat, ReadType, 0);
170 glCopyPixels(APosX, APosY, ImgWidth, ImgHeight, GL_COLOR);
236 Image = LoadRGBImage( IMAGE_FILE, &ImgWidth,
[all...]
H A Dyuvrect.c20 static GLint ImgWidth, ImgHeight; variable in typeref:typename:GLint
31 glTexCoord2f(ImgWidth, 0);
34 glTexCoord2f(ImgWidth, ImgHeight);
141 ImageYUV = LoadYUVImage(file, &ImgWidth, &ImgHeight);
147 printf("Image: %dx%d\n", ImgWidth, ImgHeight);
150 GL_YCBCR_MESA, ImgWidth, ImgHeight, 0,
155 0, 0, ImgWidth, ImgHeight,
H A Dcopypixrate.c16 static GLint ImgWidth, ImgHeight; variable in typeref:typename:GLint
31 ImgWidth = WinWidth / 3;
34 glViewport(0, 0, ImgWidth, ImgHeight);
35 glScissor(0, 0, ImgWidth, ImgHeight);
82 } while (x <= ImgWidth && y <= ImgHeight);
87 glBlitFramebufferEXT(0, 0, ImgWidth, ImgHeight,
88 x, y, x + ImgWidth, y + ImgHeight,
95 glCopyPixels(0, 0, ImgWidth, ImgHeight, GL_COLOR);
136 mbRate = ImgWidth * ImgHeight * bpp * copyRate / (1024 * 1024);
138 printf("Image size: %d x %d, %d Bpp\n", ImgWidth, ImgHeigh
[all...]
H A Dtexcompress2.c14 static int ImgWidth, ImgHeight; variable in typeref:typename:int
65 fmt, ImgWidth, ImgHeight, 0,
71 ImgWidth, ImgHeight / 2,
76 ImgWidth, ImgHeight / 2,
89 buffer = (GLubyte *) malloc(3 * ImgWidth * ImgHeight);
114 image = LoadRGBImage( file, &ImgWidth, &ImgHeight, &ImgFormat );
119 printf("Image is %d x %d\n", ImgWidth, ImgHeight);
122 assert(ImgWidth == 128 || ImgWidth == 256 || ImgWidth
[all...]
H A Dyuvsquare.c20 static GLint ImgWidth, ImgHeight; variable in typeref:typename:GLint
152 ImageYUV = LoadYUVImage(file, &ImgWidth, &ImgHeight );
158 printf("Image: %dx%d\n", ImgWidth, ImgHeight);
163 ImgWidth, ImgHeight, 0,
180 ImageRGB = LoadRGBImage(file, &ImgWidth, &ImgHeight, &format );
186 printf("Image: %dx%d\n", ImgWidth, ImgHeight);
191 ImgWidth, ImgHeight, 0,
H A Dblendxor.c15 static int ImgWidth, ImgHeight; variable in typeref:typename:int
53 glWindowPos2i((Width - ImgWidth) / 2, (Height - ImgHeight) / 2);
54 glDrawPixels(ImgWidth, ImgHeight, ImgFormat, GL_UNSIGNED_BYTE, Image);
168 Image = LoadRGBImage(IMAGE_FILE, &ImgWidth, &ImgHeight, &ImgFormat);
H A Dext422square.c24 static GLint ImgWidth, ImgHeight; variable in typeref:typename:GLint
169 ImageYUV = LoadYUVImage(file, &ImgWidth, &ImgHeight );
177 ImgWidth, ImgHeight, 0,
228 ImgWidth, ImgHeight, 0,
H A Drubberband.c14 static int ImgWidth, ImgHeight; variable in typeref:typename:int
101 glWindowPos2i((Width - ImgWidth) / 2, (Height - ImgHeight) / 2);
102 glDrawPixels(ImgWidth, ImgHeight, ImgFormat, GL_UNSIGNED_BYTE, Image);
243 Image = LoadRGBImage(IMAGE_FILE, &ImgWidth, &ImgHeight, &ImgFormat);
/xsrc/external/mit/mesa-demos/dist/src/demos/
H A Dreadpix.c19 static int ImgWidth, ImgHeight; variable in typeref:typename:int
67 BPosX = APosX + ImgWidth + 5; BPosY = 20;
68 CPosX = BPosX + ImgWidth + 5; CPosY = 20;
138 glPixelStorei(GL_PACK_ROW_LENGTH, ImgWidth);
160 glDrawPixels(ImgWidth, ImgHeight, ImgFormat, GL_UNSIGNED_BYTE, Image);
165 glViewport(APosX, APosY, ImgWidth, ImgHeight);
225 glReadPixels(APosX, APosY, ImgWidth, ImgHeight,
231 mpixels = reads * (ImgWidth * ImgHeight / (1000.0 * 1000.0));
239 memset(TempImage, 255, ImgWidth * ImgHeight * 4);
241 glReadPixels(APosX, APosY, ImgWidth, ImgHeigh
[all...]
H A Dcopypix.c19 static int ImgWidth, ImgHeight; variable in typeref:typename:int
42 const int dx = (WinWidth - ImgWidth) / 2;
58 glDrawPixels(ImgWidth, ImgHeight, ImgFormat, GL_UNSIGNED_BYTE, Image);
75 glCopyPixels(dx, dy, ImgWidth, ImgHeight, GL_COLOR);
185 Image = LoadRGBImage( filename, &ImgWidth, &ImgHeight, &ImgFormat );
193 GLubyte *indexImage = (GLubyte *) malloc( ImgWidth * ImgHeight );
195 for (i=0; i<ImgWidth*ImgHeight; i++) {
209 printf("Loaded %d by %d image\n", ImgWidth, ImgHeight );
212 glPixelStorei(GL_UNPACK_ROW_LENGTH, ImgWidth);
H A Dwinpos.c29 static int ImgWidth, ImgHeight; variable in typeref:typename:int
47 glDrawPixels( ImgWidth, ImgHeight, ImgFormat, GL_UNSIGNED_BYTE, Image );
88 Image = LoadRGBImage( IMAGE_FILE, &ImgWidth, &ImgHeight, &ImgFormat );
H A Ddissolve.c25 static int ImgWidth[2], ImgHeight[2]; variable in typeref:typename:int[2]
168 glDrawPixels(ImgWidth[0], ImgHeight[0], ImgFormat[0], GL_UNSIGNED_BYTE, Image[0]);
172 glDrawPixels(ImgWidth[1], ImgHeight[1], ImgFormat[1], GL_UNSIGNED_BYTE, Image[1]);
193 ScaleX[0] = (float) width / ImgWidth[0];
196 ScaleX[1] = (float) width / ImgWidth[1];
241 Image[0] = LoadRGBImage(FILE1, &ImgWidth[0], &ImgHeight[0], &ImgFormat[0]);
247 Image[1] = LoadRGBImage(FILE2, &ImgWidth[1], &ImgHeight[1], &ImgFormat[1]);
H A Ddrawpix.c18 static int ImgWidth, ImgHeight; variable in typeref:typename:int
37 DrawWidth = ImgWidth;
256 Image = LoadRGBImage( filename, &ImgWidth, &ImgHeight, &ImgFormat );
264 GLubyte *indexImage = (GLubyte *) malloc( ImgWidth * ImgHeight );
266 for (i=0; i<ImgWidth*ImgHeight; i++) {
280 printf("Loaded %d by %d image\n", ImgWidth, ImgHeight );
283 glPixelStorei(GL_UNPACK_ROW_LENGTH, ImgWidth);
H A Dpixeltest.c18 static int ImgWidth, ImgHeight; variable in typeref:typename:int
53 BPosX = APosX + ImgWidth + 40; BPosY = 24;
233 glViewport(APosX, APosY, ImgWidth, ImgHeight);
237 glOrtho(0, ImgWidth, 0, ImgHeight, -1.0, 1.0);
323 glReadPixels(MouseX, MouseY, ImgWidth, ImgHeight,
331 glDrawPixels(ImgWidth*5, ImgHeight*5, ReadFormat, ReadType, myImage);
455 ImgWidth=128;
464 glPixelStorei(GL_UNPACK_ROW_LENGTH, ImgWidth*ZOOM);
465 glPixelStorei(GL_PACK_ROW_LENGTH, ImgWidth);
/xsrc/external/mit/mesa-demos/dist/src/xdemos/
H A Dyuvrect_client.c22 static GLint ImgWidth, ImgHeight; variable in typeref:typename:GLint
33 glTexCoord2f(ImgWidth, 0);
36 glTexCoord2f(ImgWidth, ImgHeight);
137 ImageYUV = LoadYUVImage(file, &ImgWidth, &ImgHeight);
144 glx_memory = glXAllocateMemoryMESA(dpy, screen, ImgWidth * ImgHeight * 2, 0, 0 ,0);
152 memcpy(glx_memory, ImageYUV, ImgWidth * ImgHeight * 2);
154 printf("Image: %dx%d\n", ImgWidth, ImgHeight);
157 GL_YCBCR_MESA, ImgWidth, ImgHeight, 0,

Completed in 8 milliseconds