Lines Matching refs:components
102 static void scale_internal(GLint components, GLint widthin, GLint heightin,
107 static void scale_internal_ubyte(GLint components, GLint widthin,
112 static void scale_internal_byte(GLint components, GLint widthin,
117 static void scale_internal_ushort(GLint components, GLint widthin,
123 static void scale_internal_short(GLint components, GLint widthin,
129 static void scale_internal_uint(GLint components, GLint widthin,
135 static void scale_internal_int(GLint components, GLint widthin,
141 static void scale_internal_float(GLint components, GLint widthin,
339 static void halveImage(GLint components, GLuint width, GLuint height,
350 delta = width * components;
357 for (k = 0; k < components; k++) {
358 s[0] = (t[0] + t[components] + t[delta] +
359 t[delta+components] + 2) / 4;
362 t += components;
368 static void halveImage_ubyte(GLint components, GLuint width, GLuint height,
381 halve1Dimage_ubyte(components,width,height,datain,dataout,
395 for (k = 0; k < components; k++) {
410 static void halve1Dimage_ubyte(GLint components, GLuint width, GLuint height,
430 for (kk= 0; kk< components; kk++) {
453 for (kk= 0; kk< components; kk++) {
466 [components * element_size * halfWidth * halfHeight]);
469 static void halveImage_byte(GLint components, GLuint width, GLuint height,
483 halve1Dimage_byte(components,width,height,datain,dataout,
497 for (k = 0; k < components; k++) {
511 static void halve1Dimage_byte(GLint components, GLuint width, GLuint height,
530 for (kk= 0; kk< components; kk++) {
552 for (kk= 0; kk< components; kk++) {
566 [components * element_size * halfWidth * halfHeight]);
569 static void halveImage_ushort(GLint components, GLuint width, GLuint height,
583 halve1Dimage_ushort(components,width,height,datain,dataout,
598 for (k = 0; k < components; k++) {
613 for (k = 0; k < components; k++) {
627 static void halve1Dimage_ushort(GLint components, GLuint width, GLuint height,
647 for (kk= 0; kk< components; kk++) {
679 for (kk= 0; kk< components; kk++) {
703 [components * element_size * halfWidth * halfHeight]);
708 static void halveImage_short(GLint components, GLuint width, GLuint height,
722 halve1Dimage_short(components,width,height,datain,dataout,
737 for (k = 0; k < components; k++) {
752 for (k = 0; k < components; k++) {
773 static void halve1Dimage_short(GLint components, GLuint width, GLuint height,
793 for (kk= 0; kk< components; kk++) {
825 for (kk= 0; kk< components; kk++) {
849 [components * element_size * halfWidth * halfHeight]);
854 static void halveImage_uint(GLint components, GLuint width, GLuint height,
868 halve1Dimage_uint(components,width,height,datain,dataout,
883 for (k = 0; k < components; k++) {
900 for (k = 0; k < components; k++) {
919 static void halve1Dimage_uint(GLint components, GLuint width, GLuint height,
939 for (kk= 0; kk< components; kk++) {
971 for (kk= 0; kk< components; kk++) {
995 [components * element_size * halfWidth * halfHeight]);
999 static void halveImage_int(GLint components, GLuint width, GLuint height,
1012 halve1Dimage_int(components,width,height,datain,dataout,
1027 for (k = 0; k < components; k++) {
1042 for (k = 0; k < components; k++) {
1065 static void halve1Dimage_int(GLint components, GLuint width, GLuint height,
1085 for (kk= 0; kk< components; kk++) {
1117 for (kk= 0; kk< components; kk++) {
1141 [components * element_size * halfWidth * halfHeight]);
1146 static void halveImage_float(GLint components, GLuint width, GLuint height,
1160 halve1Dimage_float(components,width,height,datain,dataout,
1175 for (k = 0; k < components; k++) {
1190 for (k = 0; k < components; k++) {
1211 static void halve1Dimage_float(GLint components, GLuint width, GLuint height,
1231 for (kk= 0; kk< components; kk++) {
1263 for (kk= 0; kk< components; kk++) {
1286 [components * element_size * halfWidth * halfHeight]);
1289 static void scale_internal(GLint components, GLint widthin, GLint heightin,
1298 /* Max components in a format is 4, so... */
1305 halveImage(components, widthin, heightin, datain, dataout);
1362 temp = (xindex + (yindex * widthin)) * components;
1363 for (k = 0; k < components; k++) {
1374 temp = (j + (i * widthout)) * components;
1375 for (k = 0; k < components; k++) {
1385 static void scale_internal_ubyte(GLint components, GLint widthin,
1394 /* Max components in a format is 4, so... */
1412 halveImage_ubyte(components, widthin, heightin,
1456 for (k = 0, temp_index = temp; k < components;
1463 for (k = 0, temp_index = temp; k < components;
1471 for (k = 0, temp_index = temp; k < components;
1480 for (k = 0, temp_index = temp; k < components;
1486 for (k = 0, temp_index = temp; k < components;
1493 for (k = 0, temp_index = temp; k < components;
1503 for (k = 0; k < components;
1513 for (k = 0, temp_index = temp; k < components;
1519 for (k = 0, temp_index = temp; k < components;
1526 for (k = 0, temp_index = temp; k < components;
1534 for (k = 0, temp_index = temp; k < components;
1540 for (k = 0, temp_index = temp; k < components;
1547 for (k = 0, temp_index = temp; k < components;
1554 for (k = 0, temp_index = temp; k < components;
1568 for (k = 0, temp_index = temp; k < components;
1577 outindex = (j + (i * widthout)) * components;
1578 for (k = 0; k < components; k++) {
1602 static void scale_internal_byte(GLint components, GLint widthin,
1611 /* Max components in a format is 4, so... */
1629 halveImage_byte(components, widthin, heightin,
1673 for (k = 0, temp_index = temp; k < components;
1680 for (k = 0, temp_index = temp; k < components;
1688 for (k = 0, temp_index = temp; k < components;
1697 for (k = 0, temp_index = temp; k < components;
1703 for (k = 0, temp_index = temp; k < components;
1710 for (k = 0, temp_index = temp; k < components;
1720 for (k = 0; k < components;
1730 for (k = 0, temp_index = temp; k < components;
1736 for (k = 0, temp_index = temp; k < components;
1743 for (k = 0, temp_index = temp; k < components;
1751 for (k = 0, temp_index = temp; k < components;
1757 for (k = 0, temp_index = temp; k < components;
1764 for (k = 0, temp_index = temp; k < components;
1771 for (k = 0, temp_index = temp; k < components;
1785 for (k = 0, temp_index = temp; k < components;
1794 outindex = (j + (i * widthout)) * components;
1795 for (k = 0; k < components; k++) {
1819 static void scale_internal_ushort(GLint components, GLint widthin,
1829 /* Max components in a format is 4, so... */
1847 halveImage_ushort(components, widthin, heightin,
1890 for (k = 0, temp_index = temp; k < components;
1901 for (k = 0, temp_index = temp; k < components;
1914 for (k = 0, temp_index = temp; k < components;
1927 for (k = 0, temp_index = temp; k < components;
1937 for (k = 0, temp_index = temp; k < components;
1949 for (k = 0, temp_index = temp; k < components;
1962 for (k = 0; k < components;
1978 for (k = 0, temp_index = temp; k < components;
1988 for (k = 0, temp_index = temp; k < components;
2000 for (k = 0, temp_index = temp; k < components;
2012 for (k = 0, temp_index = temp; k < components;
2022 for (k = 0, temp_index = temp; k < components;
2034 for (k = 0, temp_index = temp; k < components;
2045 for (k = 0, temp_index = temp; k < components;
2061 for (k = 0, temp_index = temp; k < components;
2074 outindex = (j + (i * widthout)) * components;
2075 for (k = 0; k < components; k++) {
2099 static void scale_internal_short(GLint components, GLint widthin,
2109 /* Max components in a format is 4, so... */
2129 halveImage_short(components, widthin, heightin,
2172 for (k = 0, temp_index = temp; k < components;
2184 for (k = 0, temp_index = temp; k < components;
2197 for (k = 0, temp_index = temp; k < components;
2211 for (k = 0, temp_index = temp; k < components;
2222 for (k = 0, temp_index = temp; k < components;
2234 for (k = 0, temp_index = temp; k < components;
2248 for (k = 0; k < components;
2265 for (k = 0, temp_index = temp; k < components;
2276 for (k = 0, temp_index = temp; k < components;
2288 for (k = 0, temp_index = temp; k < components;
2302 for (k = 0, temp_index = temp; k < components;
2313 for (k = 0, temp_index = temp; k < components;
2325 for (k = 0, temp_index = temp; k < components;
2337 for (k = 0, temp_index = temp; k < components;
2354 for (k = 0, temp_index = temp; k < components;
2368 outindex = (j + (i * widthout)) * components;
2369 for (k = 0; k < components; k++) {
2393 static void scale_internal_uint(GLint components, GLint widthin,
2403 /* Max components in a format is 4, so... */
2421 halveImage_uint(components, widthin, heightin,
2464 for (k = 0, temp_index = temp; k < components;
2475 for (k = 0, temp_index = temp; k < components;
2488 for (k = 0, temp_index = temp; k < components;
2501 for (k = 0, temp_index = temp; k < components;
2511 for (k = 0, temp_index = temp; k < components;
2523 for (k = 0, temp_index = temp; k < components;
2536 for (k = 0; k < components;
2552 for (k = 0, temp_index = temp; k < components;
2562 for (k = 0, temp_index = temp; k < components;
2574 for (k = 0, temp_index = temp; k < components;
2587 for (k = 0, temp_index = temp; k < components;
2597 for (k = 0, temp_index = temp; k < components;
2609 for (k = 0, temp_index = temp; k < components;
2620 for (k = 0, temp_index = temp; k < components;
2636 for (k = 0, temp_index = temp; k < components;
2649 outindex = (j + (i * widthout)) * components;
2650 for (k = 0; k < components; k++) {
2680 static void scale_internal_int(GLint components, GLint widthin,
2690 /* Max components in a format is 4, so... */
2710 halveImage_int(components, widthin, heightin,
2753 for (k = 0, temp_index = temp; k < components;
2765 for (k = 0, temp_index = temp; k < components;
2778 for (k = 0, temp_index = temp; k < components;
2792 for (k = 0, temp_index = temp; k < components;
2803 for (k = 0, temp_index = temp; k < components;
2815 for (k = 0, temp_index = temp; k < components;
2829 for (k = 0; k < components;
2846 for (k = 0, temp_index = temp; k < components;
2857 for (k = 0, temp_index = temp; k < components;
2869 for (k = 0, temp_index = temp; k < components;
2883 for (k = 0, temp_index = temp; k < components;
2894 for (k = 0, temp_index = temp; k < components;
2906 for (k = 0, temp_index = temp; k < components;
2918 for (k = 0, temp_index = temp; k < components;
2935 for (k = 0, temp_index = temp; k < components;
2949 outindex = (j + (i * widthout)) * components;
2950 for (k = 0; k < components; k++) {
2976 static void scale_internal_float(GLint components, GLint widthin,
2986 /* Max components in a format is 4, so... */
3006 halveImage_float(components, widthin, heightin,
3049 for (k = 0, temp_index = temp; k < components;
3061 for (k = 0, temp_index = temp; k < components;
3074 for (k = 0, temp_index = temp; k < components;
3088 for (k = 0, temp_index = temp; k < components;
3099 for (k = 0, temp_index = temp; k < components;
3111 for (k = 0, temp_index = temp; k < components;
3125 for (k = 0; k < components;
3142 for (k = 0, temp_index = temp; k < components;
3153 for (k = 0, temp_index = temp; k < components;
3165 for (k = 0, temp_index = temp; k < components;
3179 for (k = 0, temp_index = temp; k < components;
3190 for (k = 0, temp_index = temp; k < components;
3202 for (k = 0, temp_index = temp; k < components;
3214 for (k = 0, temp_index = temp; k < components;
3231 for (k = 0, temp_index = temp; k < components;
3245 outindex = (j + (i * widthout)) * components;
3246 for (k = 0; k < components; k++) {
3503 int components;
3536 components = elements_per_group(format, 0);
3537 scale_internal(components, widthin, heightin, beforeImage,
4624 GLenum target, GLint components, GLint width,
4646 closestFit(target,width,height,components,format,type,
4716 glTexImage2D(target, level, components, newImage_width,
4744 glTexImage2D(target, level, components, newImage_width,
4861 int components;
4865 components = elements_per_group(format,type);
4871 return bytes_per_row * height * components;
4883 GLint components;
4897 components = elements_per_group(format,type);
4909 rowsize = (groups_per_line * components + 7) / 8;
4915 (psm->unpack_skip_pixels * components / 8);
4916 elements_per_line = width * components;
4920 bit_offset = (psm->unpack_skip_pixels * components) % 8;
4948 group_size = element_size * components;
4958 elements_per_line = width * components;
5123 assert(iter2 == &newimage[width*height*components]);
5146 GLint components;
5160 components = elements_per_group(format,type);
5172 rowsize = (groups_per_line * components + 7) / 8;
5178 (psm->pack_skip_pixels * components / 8);
5179 elements_per_line = width * components;
5183 bit_offset = (psm->pack_skip_pixels * components) % 8;
5222 group_size = element_size * components;
5232 elements_per_line = width * components;
5465 assert(iter2 == &oldimage[width*height*components]);
6015 static void scaleInternalPackedPixel(int components,
6031 /* Max components in a format is 4, so... */
6050 halveImagePackedPixel(components,extractPackedPixel,shovePackedPixel,
6091 for (k = 0, temp_index = temp; k < components;
6101 for (k = 0; k < components; k++) {
6109 for (k = 0, temp_index = temp; k < components;
6120 for (k = 0; k < components; k++) {
6129 for (k = 0, temp_index = temp; k < components;
6139 for (k = 0; k < components; k++) {
6150 for (k = 0, temp_index = temp; k < components;
6160 for (k = 0; k < components; k++) {
6167 for (k = 0, temp_index = temp; k < components;
6178 for (k = 0; k < components; k++) {
6187 for (k = 0, temp_index = temp; k < components;
6197 for (k = 0; k < components; k++) {
6207 for (k = 0; k < components;
6221 for (k = 0; k < components; k++) {
6232 for (k = 0, temp_index = temp; k < components;
6242 for (k = 0; k < components; k++) {
6249 for (k = 0, temp_index = temp; k < components;
6260 for (k = 0; k < components; k++) {
6268 for (k = 0, temp_index = temp; k < components;
6278 for (k = 0; k < components; k++) {
6287 for (k = 0, temp_index = temp; k < components;
6297 for (k = 0; k < components; k++) {
6304 for (k = 0, temp_index = temp; k < components;
6315 for (k = 0; k < components; k++) {
6323 for (k = 0, temp_index = temp; k < components;
6333 for (k = 0; k < components; k++) {
6341 for (k = 0, temp_index = temp; k < components;
6351 for (k = 0; k < components; k++) {
6363 for (k = 0, temp_index = temp; k < components;
6373 for (k = 0; k < components; k++) {
6382 outindex = (j + (i * widthOut)); /* * (components == 1) */
6384 for (k = 0; k < components; k++) {
6389 for (k = 0; k < components; k++) {
6419 static void halveImagePackedPixel(int components,
6432 halve1DimagePackedPixel(components,extractPackedPixel,shovePackedPixel,
6450 float totals[4]; /* 4 is maximum components */
6451 float extractTotals[BOX4][4]; /* 4 is maximum components */
6463 for (cc = 0; cc < components; cc++) {
6505 static void halve1DimagePackedPixel(int components,
6533 float totals[4]; /* 4 is maximum components */
6534 float extractTotals[BOX2][4]; /* 4 is maximum components */
6542 for (cc = 0; cc < components; cc++) {
6579 float totals[4]; /* 4 is maximum components */
6580 float extractTotals[BOX2][4]; /* 4 is maximum components */
6588 for (cc = 0; cc < components; cc++) {
6676 int components= elements_per_group(format,type);
6682 return bytes_per_row * height * depth * components;
6691 int components;
6705 components= elements_per_group(format,type);
6713 groupSize= elementSize * components;
6737 elementsPerLine = width * components;
6908 assert(iter2 == &newImage[width*height*depth*components]);
6921 static void scaleInternal3D(GLint components,
6932 /* Max components in a format is 4, so... */
7015 (zindex*widthIn*heightIn)) * components;
7016 for (k = 0; k < components; k++) {
7019 (widthIn*heightIn*depthIn*components));
7036 (d*widthOut*heightOut)) * components;
7037 for (k = 0; k < components; k++) {
7042 (temp+k) < (widthOut*heightOut*depthOut*components));
7056 int components;
7070 components = elements_per_group(format,type);
7079 groupSize= elementSize * components;
7104 elementsPerLine= width * components;
7342 assert(iter2 == &oldImage[width*height*depth*components]);
7362 int components;
7400 components = elements_per_group(format,0);
7401 scaleInternal3D(components,widthIn,heightIn,depthIn,beforeImage,
7466 static void halveImagePackedPixelSlice(int components,
7499 for (cc = 0; cc < components; cc++) {
7537 for (cc = 0; cc < components; cc++) {
7579 for (cc = 0; cc < components; cc++) {
7606 static void halveImagePackedPixel3D(int components,
7621 halveImagePackedPixel(components,extractPackedPixel,shovePackedPixel,
7630 halveImagePackedPixelSlice(components,
7651 float totals[4]; /* 4 is maximum components */
7652 float extractTotals[BOX8][4]; /* 4 is maximum components */
7674 for (cc = 0; cc < components; cc++) {
8664 static void halveImageSlice(int components,
8694 for (cc = 0; cc < components; cc++) {
8722 assert(outIndex == halfDepth * components);
8732 for (cc = 0; cc < components; cc++) {
8771 assert(outIndex == halfWidth * halfDepth * components);
8781 for (cc = 0; cc < components; cc++) {
8821 assert(outIndex == halfHeight * halfDepth * components);
8826 static void halveImage3D(int components,
8843 halveImageSlice(components,extract,shove, width, height, depth,
8864 for (cc= 0; cc < components; cc++) {
8867 double totals[4]; /* 4 is maximum components */
8868 double extractTotals[BOX8][4]; /* 4 is maximum components */
8935 assert(outIndex == halfWidth * halfHeight * halfDepth * components);