• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:GLubyte

34 typedef GLubyte GLchan;
56 static void dxt135_decode_imageblock ( const GLubyte *img_block_src, in dxt135_decode_imageblock()
64 GLubyte bit_pos = 2 * (j * 4 + i) ; in dxt135_decode_imageblock()
65 GLubyte code = (GLubyte) ((bits >> bit_pos) & 3); in dxt135_decode_imageblock()
111 static void fetch_2d_texel_rgb_dxt1(GLint srcRowStride, const GLubyte *pixdata, in fetch_2d_texel_rgb_dxt1()
118 const GLubyte *blksrc = (pixdata + ((srcRowStride + 3) / 4 * (j / 4) + (i / 4)) * 8); in fetch_2d_texel_rgb_dxt1()
123 static void fetch_2d_texel_rgba_dxt1(GLint srcRowStride, const GLubyte *pixdata, in fetch_2d_texel_rgba_dxt1()
130 const GLubyte *blksrc = (pixdata + ((srcRowStride + 3) / 4 * (j / 4) + (i / 4)) * 8); in fetch_2d_texel_rgba_dxt1()
134 static void fetch_2d_texel_rgba_dxt3(GLint srcRowStride, const GLubyte *pixdata, in fetch_2d_texel_rgba_dxt3()
142 const GLubyte *blksrc = (pixdata + ((srcRowStride + 3) / 4 * (j / 4) + (i / 4)) * 16); in fetch_2d_texel_rgba_dxt3()
143 const GLubyte anibble = (blksrc[((j&3) * 4 + (i&3)) / 2] >> (4 * (i&1))) & 0xf; in fetch_2d_texel_rgba_dxt3()
145 rgba[ACOMP] = UBYTE_TO_CHAN( (GLubyte)(EXP4TO8(anibble)) ); in fetch_2d_texel_rgba_dxt3()
148 static void fetch_2d_texel_rgba_dxt5(GLint srcRowStride, const GLubyte *pixdata, in fetch_2d_texel_rgba_dxt5()
156 const GLubyte *blksrc = (pixdata + ((srcRowStride + 3) / 4 * (j / 4) + (i / 4)) * 16); in fetch_2d_texel_rgba_dxt5()
157 const GLubyte alpha0 = blksrc[0]; in fetch_2d_texel_rgba_dxt5()
158 const GLubyte alpha1 = blksrc[1]; in fetch_2d_texel_rgba_dxt5()
159 const GLubyte bit_pos = ((j&3) * 4 + (i&3)) * 3; in fetch_2d_texel_rgba_dxt5()
160 const GLubyte acodelow = blksrc[2 + bit_pos / 8]; in fetch_2d_texel_rgba_dxt5()
161 const GLubyte acodehigh = blksrc[3 + bit_pos / 8]; in fetch_2d_texel_rgba_dxt5()
162 const GLubyte code = (acodelow >> (bit_pos & 0x7) | in fetch_2d_texel_rgba_dxt5()
188 static void fancybasecolorsearch( UNUSED GLubyte *blkaddr, GLubyte srccolors[4][4][4], GLubyte *bes… in fancybasecolorsearch()
199 GLubyte nrcolor[2]; in fancybasecolorsearch()
201 GLubyte enc = 0; in fancybasecolorsearch()
202 GLubyte cv[4][4]; in fancybasecolorsearch()
203 GLubyte testcolor[2][3]; in fancybasecolorsearch()
314 GLubyte coldiffred, coldiffgreen, coldiffblue, coldiffmax, factor, ind0, ind1; in fancybasecolorsearch()
380 static void storedxtencodedblock( GLubyte *blkaddr, GLubyte srccolors[4][4][4], GLubyte *bestcolor[… in storedxtencodedblock()
390 GLubyte *colorptr; in storedxtencodedblock()
391 GLubyte enc = 0; in storedxtencodedblock()
392 GLubyte cv[4][4]; in storedxtencodedblock()
503 static void encodedxtcolorblockfaster( GLubyte *blkaddr, GLubyte srccolors[4][4][4], in encodedxtcolorblockfaster()
514 GLubyte *bestcolor[2]; in encodedxtcolorblockfaster()
515 GLubyte basecolors[2][3]; in encodedxtcolorblockfaster()
516 GLubyte i, j; in encodedxtcolorblockfaster()
558 static void writedxt5encodedalphablock( GLubyte *blkaddr, GLubyte alphabase1, GLubyte alphabase2, in writedxt5encodedalphablock()
559 GLubyte alphaenc[16]) in writedxt5encodedalphablock()
571 static void encodedxt5alpha(GLubyte *blkaddr, GLubyte srccolors[4][4][4], in encodedxt5alpha()
574 GLubyte alphabase[2], alphause[2]; in encodedxt5alpha()
577 GLubyte i, j, aindex, acutValues[7]; in encodedxt5alpha()
578 GLubyte alphaenc1[16], alphaenc2[16], alphaenc3[16]; in encodedxt5alpha()
744 GLubyte nralphainrangelow = 0; in encodedxt5alpha()
745 GLubyte nralphainrangehigh = 0; in encodedxt5alpha()
889 … writedxt5encodedalphablock( blkaddr, (GLubyte)alphatest[0], (GLubyte)alphatest[1], alphaenc3 ); in encodedxt5alpha()
893 static void extractsrccolors( GLubyte srcpixels[4][4][4], const GLchan *srcaddr, in extractsrccolors()
896 GLubyte i, j, c; in extractsrccolors()
909 static void tx_compress_dxtn(GLint srccomps, GLint width, GLint height, const GLubyte *srcPixData, in tx_compress_dxtn()
910 GLenum destFormat, GLubyte *dest, GLint dstRowStride) in tx_compress_dxtn()
912 GLubyte *blkaddr = dest; in tx_compress_dxtn()
913 GLubyte srcpixels[4][4][4]; in tx_compress_dxtn()