Home
last modified time | relevance | path

Searched refs:etc1_byte (Results 1 – 3 of 3) sorted by relevance

/frameworks/native/opengl/include/ETC1/
Detc1.h25 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/
Detc1.cpp122 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/
Dutil.cpp837 etc1_encode_block((etc1_byte*) inB.getData(), validPixelMask, in etc1_encodeBlock()
838 (etc1_byte*) outB.getData()); in etc1_encodeBlock()
862 etc1_decode_block((etc1_byte*) inB.getData(), in etc1_decodeBlock()
863 (etc1_byte*) outB.getData()); in etc1_decodeBlock()
899 etc1_encode_image((etc1_byte*) inB.getData(), width, height, pixelSize, stride, in etc1_encodeImage()
900 (etc1_byte*) outB.getData()); in etc1_encodeImage()
930 etc1_decode_image((etc1_byte*) inB.getData(), (etc1_byte*) outB.getData(), in etc1_decodeImage()
946 etc1_pkm_format_header((etc1_byte*) headerB.getData(), width, height); in etc1_formatHeader()
962 result = etc1_pkm_is_valid((etc1_byte*) headerB.getData()); in etc1_isValid()
979 result = etc1_pkm_get_width((etc1_byte*) headerB.getData()); in etc1_getWidth()
[all …]