Searched refs:etc1_byte (Results 1 – 4 of 4) sorted by relevance
/frameworks/native/opengl/include/ETC1/ |
D | etc1.h | 25 typedef unsigned char etc1_byte; typedef 44 void etc1_encode_block(const etc1_byte* pIn, etc1_uint32 validPixelMask, etc1_byte* pOut); 54 void etc1_decode_block(const etc1_byte* pIn, etc1_byte* pOut); 67 int etc1_encode_image(const etc1_byte* pIn, etc1_uint32 width, etc1_uint32 height, 68 etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte* pOut); 78 int etc1_decode_image(const etc1_byte* pIn, etc1_byte* pOut, 88 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height); 92 etc1_bool etc1_pkm_is_valid(const etc1_byte* pHeader); 96 etc1_uint32 etc1_pkm_get_width(const etc1_byte* pHeader); 100 etc1_uint32 etc1_pkm_get_height(const etc1_byte* pHeader);
|
/frameworks/native/opengl/libs/ETC1/ |
D | etc1.cpp | 122 static inline etc1_byte clamp(int x) { in clamp() 123 return (etc1_byte) (x >= 0 ? (x < 255 ? x : 255) : 0); in clamp() 167 void decode_subblock(etc1_byte* pOut, int r, int g, int b, const int* table, in decode_subblock() 190 etc1_byte* q = pOut + 3 * (x + 4 * y); in decode_subblock() 200 void etc1_decode_block(const etc1_byte* pIn, etc1_byte* pOut) { in etc1_decode_block() 247 void etc_average_colors_subblock(const etc1_byte* pIn, etc1_uint32 inMask, in etc_average_colors_subblock() 248 etc1_byte* pColors, bool flipped, bool second) { in etc_average_colors_subblock() 263 const etc1_byte* p = pIn + i * 3; in etc_average_colors_subblock() 280 const etc1_byte* p = pIn + i * 3; in etc_average_colors_subblock() 288 pColors[0] = (etc1_byte)((r + 4) >> 3); in etc_average_colors_subblock() [all …]
|
/frameworks/base/core/jni/android/opengl/ |
D | util.cpp | 915 etc1_encode_block((etc1_byte*) inB.getData(), validPixelMask, in etc1_encodeBlock() 916 (etc1_byte*) outB.getData()); in etc1_encodeBlock() 940 etc1_decode_block((etc1_byte*) inB.getData(), in etc1_decodeBlock() 941 (etc1_byte*) outB.getData()); in etc1_decodeBlock() 977 etc1_encode_image((etc1_byte*) inB.getData(), width, height, pixelSize, stride, in etc1_encodeImage() 978 (etc1_byte*) outB.getData()); in etc1_encodeImage() 1008 etc1_decode_image((etc1_byte*) inB.getData(), (etc1_byte*) outB.getData(), in etc1_decodeImage() 1024 etc1_pkm_format_header((etc1_byte*) headerB.getData(), width, height); in etc1_formatHeader() 1040 result = etc1_pkm_is_valid((etc1_byte*) headerB.getData()); in etc1_isValid() 1057 result = etc1_pkm_get_width((etc1_byte*) headerB.getData()); in etc1_getWidth() [all …]
|
/frameworks/native/opengl/libagl/ |
D | texture.cpp | 1134 (const etc1_byte*)data, in glCompressedTexImage2D() 1135 (etc1_byte*)surface->data, in glCompressedTexImage2D()
|