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

/xsrc/external/mit/mesa-demos/dist/src/tests/
H A Dtexcompsub.c16 static int ImgHeight = 512; variable in typeref:typename:int
40 glTexImage2D(Target, 0, CompFormat, ImgWidth, ImgHeight, 0,
46 ImgWidth, ImgHeight / 2,
50 for (i = 0; i < ImgHeight / 8; i++) {
54 0, ImgHeight / 2, /* pos */
55 ImgWidth / 2, ImgHeight / 2,
59 for (i = 0; i < ImgHeight / 8; i++) {
63 ImgWidth / 2, ImgHeight / 2, /* pos */
64 ImgWidth / 2, ImgHeight / 2,
H A Dyuvrect.c20 static GLint ImgWidth, ImgHeight; variable in typeref:typename:GLint
34 glTexCoord2f(ImgWidth, ImgHeight);
37 glTexCoord2f(0, 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
32 ImgHeight = WinHeight / 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, ImgHeight, bp
[all...]
H A Dpbo.c20 static int ImgWidth, ImgHeight; variable in typeref:typename:int
102 glRasterPos2i(5, ImgHeight+25);
105 glRasterPos2i(5, ImgHeight+40);
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, &ImgHeight,
[all...]
H A Dtexcompress2.c14 static int ImgWidth, ImgHeight; variable in typeref:typename:int
65 fmt, ImgWidth, ImgHeight, 0,
71 ImgWidth, ImgHeight / 2,
75 0, ImgHeight / 2, /* pos */
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);
123 assert(ImgWidth == 128 || ImgHeight == 256 || ImgHeight
[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 Dcopypix.c19 static int ImgWidth, ImgHeight; variable in typeref:typename:int
43 const int dy = (WinHeight - ImgHeight) / 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 );
H A Dreadpix.c19 static int ImgWidth, ImgHeight; variable in typeref:typename:int
149 glRasterPos2i(5, ImgHeight+25);
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, ImgHeight,
246 ComplexReadPixels(APosX, APosY, ImgWidth, ImgHeight,
253 glDrawPixels(ImgWidth, ImgHeight, ReadForma
[all...]
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][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]);
194 ScaleY[0] = (float) height / ImgHeight[0];
197 ScaleY[1] = (float) height / ImgHeight[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
38 DrawHeight = ImgHeight;
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 );
H A Dpixeltest.c18 static int ImgWidth, ImgHeight; variable in typeref:typename:int
233 glViewport(APosX, APosY, ImgWidth, ImgHeight);
237 glOrtho(0, ImgWidth, 0, ImgHeight, -1.0, 1.0);
309 glRasterPos2i(8, ImgHeight+30);
323 glReadPixels(MouseX, MouseY, ImgWidth, ImgHeight,
331 glDrawPixels(ImgWidth*5, ImgHeight*5, ReadFormat, ReadType, myImage);
456 ImgHeight=128;
/xsrc/external/mit/mesa-demos/dist/src/xdemos/
H A Dyuvrect_client.c22 static GLint ImgWidth, ImgHeight; variable in typeref:typename:GLint
36 glTexCoord2f(ImgWidth, ImgHeight);
39 glTexCoord2f(0, 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