/third_party/mesa3d/src/gallium/auxiliary/hud/ |
H A D | font.c | 62 typedef unsigned char GLubyte; /* 1-byte unsigned */ typedef 70 const GLubyte** Characters; /* The characters mapping */ 75 static const GLubyte Fixed8x13_Character_000[] = { 8, 0, 0, 0,170, 0,130, 0,130, 0,130, 0,170, 0, 0}; 76 static const GLubyte Fixed8x13_Character_001[] = { 8, 0, 0, 0, 0, 16, 56,124,254,124, 56, 16, 0, 0, 0}; 77 static const GLubyte Fixed8x13_Character_002[] = { 8, 0,170, 85,170, 85,170, 85,170, 85,170, 85,170, 85,170}; 78 static const GLubyte Fixed8x13_Character_003[] = { 8, 0, 0, 0, 4, 4, 4, 4,174,160,224,160,160, 0, 0}; 79 static const GLubyte Fixed8x13_Character_004[] = { 8, 0, 0, 0, 8, 8, 12, 8,142,128,192,128,224, 0, 0}; 80 static const GLubyte Fixed8x13_Character_005[] = { 8, 0, 0, 0, 10, 10, 12, 10,108,128,128,128, 96, 0, 0}; 81 static const GLubyte Fixed8x13_Character_006[] = { 8, 0, 0, 0, 8, 8, 12, 8,238,128,128,128,128, 0, 0}; 82 static const GLubyte Fixed8x13_Character_00 [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_border_clamp/ |
H A D | esextcTextureBorderClampSamplingTextureGroup.cpp | 60 TestConfiguration<glw::GLfloat, glw::GLubyte> configurationTexture2DRGBA32F( in init() 64 addChild(new TextureBorderClampSamplingTexture<glw::GLfloat, glw::GLubyte>( in init() 84 TestConfiguration<glw::GLubyte, glw::GLubyte> configurationTexture2DRGBA8( in init() 88 addChild(new TextureBorderClampSamplingTexture<glw::GLubyte, glw::GLubyte>(m_context, m_extParams, "Texture2DRGBA8", in init() 92 TestConfiguration<glw::GLfloat, glw::GLubyte> configurationTexture2DDC32F( in init() 96 addChild(new TextureBorderClampSamplingTexture<glw::GLfloat, glw::GLubyte>(m_context, m_extParams, "Texture2DDC32F", in init() 100 TestConfiguration<glw::GLushort, glw::GLubyte> configurationTexture2DDC16( in init() 104 addChild(new TextureBorderClampSamplingTexture<glw::GLushort, glw::GLubyte>(m_contex in init() [all...] |
H A D | esextcTextureBorderClampTests.cpp | 85 TestConfiguration<glw::GLfloat, glw::GLubyte> configurationTexture2DRGBA32F( in init() 89 addChild(new TextureBorderClampSamplingTexture<glw::GLfloat, glw::GLubyte>( in init() 109 TestConfiguration<glw::GLubyte, glw::GLubyte> configurationTexture2DRGBA8( in init() 113 addChild(new TextureBorderClampSamplingTexture<glw::GLubyte, glw::GLubyte>(m_context, m_extParams, "Texture2DRGBA8", in init() 117 TestConfiguration<glw::GLfloat, glw::GLubyte> configurationTexture2DDC32F( in init() 121 addChild(new TextureBorderClampSamplingTexture<glw::GLfloat, glw::GLubyte>(m_context, m_extParams, "Texture2DDC32F", in init() 125 TestConfiguration<glw::GLushort, glw::GLubyte> configurationTexture2DDC16( in init() 129 addChild(new TextureBorderClampSamplingTexture<glw::GLushort, glw::GLubyte>(m_contex in init() [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | getstring.c | 45 static const GLubyte * 53 return (const GLubyte *) "1.20"; in shading_language_version() 55 return (const GLubyte *) "1.30"; in shading_language_version() 57 return (const GLubyte *) "1.40"; in shading_language_version() 59 return (const GLubyte *) "1.50"; in shading_language_version() 61 return (const GLubyte *) "3.30"; in shading_language_version() 63 return (const GLubyte *) "4.00"; in shading_language_version() 65 return (const GLubyte *) "4.10"; in shading_language_version() 67 return (const GLubyte *) "4.20"; in shading_language_version() 69 return (const GLubyte *) "4.3 in shading_language_version() [all...] |
H A D | texcompress_s3tc.c | 51 const GLubyte *pixels; in _mesa_texstore_rgb_dxt1() 52 GLubyte *dst; in _mesa_texstore_rgb_dxt1() 53 const GLubyte *tempImage = NULL; in _mesa_texstore_rgb_dxt1() 62 _mesa_image_row_stride(srcPacking, srcWidth, srcFormat, srcType) != srccomps * srcWidth * sizeof(GLubyte) || in _mesa_texstore_rgb_dxt1() 65 /* convert image to RGB/GLubyte */ in _mesa_texstore_rgb_dxt1() 66 GLubyte *tempImageSlices[1]; in _mesa_texstore_rgb_dxt1() 67 int rgbRowStride = 3 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgb_dxt1() 68 tempImage = malloc(srcWidth * srcHeight * 3 * sizeof(GLubyte)); in _mesa_texstore_rgb_dxt1() 71 tempImageSlices[0] = (GLubyte *) tempImage; in _mesa_texstore_rgb_dxt1() 105 const GLubyte *pixel in _mesa_texstore_rgba_dxt1() [all...] |
H A D | texcompress_rgtc.c | 48 static void extractsrc_u( GLubyte srcpixels[4][4], const GLubyte *srcaddr, in extractsrc_u() 51 GLubyte i, j; in extractsrc_u() 52 const GLubyte *curaddr; in extractsrc_u() 65 GLubyte i, j; in extractsrc_s() 80 GLubyte *dst; in _mesa_texstore_red_rgtc1() 81 const GLubyte *tempImage = NULL; in _mesa_texstore_red_rgtc1() 84 const GLubyte *srcaddr; in _mesa_texstore_red_rgtc1() 85 GLubyte srcpixels[4][4]; in _mesa_texstore_red_rgtc1() 86 GLubyte *blkadd in _mesa_texstore_red_rgtc1() [all...] |
H A D | texcompress_s3tc_tmp.h | 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 *pixdat [all...] |
H A D | texcompress_bptc.c | 38 fetch_bptc_rgb_float(const GLubyte *map, in fetch_bptc_rgb_float() 43 const GLubyte *block; in fetch_bptc_rgb_float() 51 fetch_bptc_rgb_signed_float(const GLubyte *map, in fetch_bptc_rgb_signed_float() 59 fetch_bptc_rgb_unsigned_float(const GLubyte *map, in fetch_bptc_rgb_unsigned_float() 67 fetch_bptc_rgba_unorm_bytes(const GLubyte *map, in fetch_bptc_rgba_unorm_bytes() 69 GLubyte *texel) in fetch_bptc_rgba_unorm_bytes() 71 const GLubyte *block; in fetch_bptc_rgba_unorm_bytes() 79 fetch_bptc_rgba_unorm(const GLubyte *map, in fetch_bptc_rgba_unorm() 83 GLubyte texel_bytes[4]; in fetch_bptc_rgba_unorm() 94 fetch_bptc_srgb_alpha_unorm(const GLubyte *ma [all...] |
H A D | texcompress_cpal.c | 68 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette, in get_palette_entry() 69 GLuint index, GLubyte *pixel) in get_palette_entry() 80 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette, in paletted_to_color() 81 const void *indices, GLuint num_pixels, GLubyte *image) in paletted_to_color() 83 GLubyte *pix = image; in paletted_to_color() 88 const GLubyte *ind = (const GLubyte *) indices; in paletted_to_color() 102 const GLubyte *ind = (const GLubyte *) indices; in paletted_to_color() 146 * compressed palette format into a regular GLubyte/RGB [all...] |
H A D | pack.c | 75 flip_bytes( GLubyte *p, GLuint n ) in flip_bytes() 88 p[i] = (GLubyte) a; in flip_bytes() 99 _mesa_unpack_polygon_stipple( const GLubyte *pattern, GLuint dest[32], in _mesa_unpack_polygon_stipple() 102 GLubyte *ptrn = (GLubyte *) _mesa_unpack_image(2, 32, 32, 1, GL_COLOR_INDEX, in _mesa_unpack_polygon_stipple() 108 GLubyte *p = ptrn; in _mesa_unpack_polygon_stipple() 127 _mesa_pack_polygon_stipple( const GLuint pattern[32], GLubyte *dest, in _mesa_pack_polygon_stipple() 133 GLubyte ptrn[32*4]; in _mesa_pack_polygon_stipple() 136 ptrn[i * 4 + 0] = (GLubyte) ((pattern[i] >> 24) & 0xff); in _mesa_pack_polygon_stipple() 137 ptrn[i * 4 + 1] = (GLubyte) ((patter in _mesa_pack_polygon_stipple() [all...] |
H A D | macros.h | 47 /** Convert GLubyte in [0,255] to GLfloat in [0.0,1.0] */ 51 /** Convert GLfloat in [0.0,1.0] to GLubyte in [0,255] */ 52 #define FLOAT_TO_UBYTE(X) ((GLubyte) (GLint) ((X) * 255.0F)) 124 #define BYTE_TO_UBYTE(b) ((GLubyte) ((b) < 0 ? 0 : (GLubyte) (b))) 125 #define SHORT_TO_UBYTE(s) ((GLubyte) ((s) < 0 ? 0 : (GLubyte) ((s) >> 7))) 126 #define USHORT_TO_UBYTE(s) ((GLubyte) ((s) >> 8)) 127 #define INT_TO_UBYTE(i) ((GLubyte) ((i) < 0 ? 0 : (GLubyte) (( [all...] |
H A D | texstore.c | 104 GLubyte **dstSlices, in _mesa_memcpy_texture() 114 const GLubyte *srcImage = (const GLubyte *) _mesa_image_address(dimensions, in _mesa_memcpy_texture() 124 GLubyte *dstImage = dstSlices[img]; in _mesa_memcpy_texture() 133 const GLubyte *srcRow = srcImage; in _mesa_memcpy_texture() 134 GLubyte *dstRow = dstSlices[img]; in _mesa_memcpy_texture() 168 GLubyte *dstRow = dstSlices[img]; in _mesa_texstore_z32() 198 GLubyte *dstRow = dstSlices[img]; in _mesa_texstore_x8_z24() 228 GLubyte *dstRow = dstSlices[img]; in _mesa_texstore_z24_x8() 262 GLubyte *dstRo in _mesa_texstore_z16() [all...] |
H A D | pack.h | 37 _mesa_unpack_polygon_stipple(const GLubyte *pattern, GLuint dest[32], 42 _mesa_pack_polygon_stipple(const GLuint pattern[32], GLubyte *dest, 47 _mesa_pack_bitmap(GLint width, GLint height, const GLubyte *source, 48 GLubyte *dest, const struct gl_pixelstore_attrib *packing); 60 GLenum dstType, GLvoid *dest, const GLubyte *source, 80 const GLubyte *stencilVals, 107 extern GLubyte *
|
/third_party/mesa3d/src/mapi/glapi/ |
H A D | glapi_entrypoint.c | 41 extern GLubyte gl_dispatch_functions_start[]; 42 extern GLubyte gl_dispatch_functions_end[]; 73 const GLubyte * const get_disp = (const GLubyte *) run_time_patch; in init_glapi_relocs() 74 GLubyte * curr_func = (GLubyte *) gl_dispatch_functions_start; in init_glapi_relocs() 77 while ( curr_func != (GLubyte *) gl_dispatch_functions_end ) { in init_glapi_relocs() 97 const GLubyte * const template_func = gl_dispatch_functions_start in generate_entrypoint() 99 GLubyte * const code = (GLubyte *) u_execmem_allo in generate_entrypoint() [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
H A D | MaxTextureSizeTest.cpp | 98 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P() 103 GLubyte *pixel = &data[0] + ((y * textureWidth + x) * 4); in TEST_P() 106 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); in TEST_P() 107 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255); in TEST_P() 122 std::vector<GLubyte> pixels(getWindowWidth() * getWindowHeight() * 4); in TEST_P() 129 const GLubyte *prevPixel = &pixels[0] + (((y - 1) * getWindowWidth() + (x - 1)) * 4); in TEST_P() 130 const GLubyte *curPixel = &pixels[0] + ((y * getWindowWidth() + x) * 4); in TEST_P() 160 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P() 165 GLubyte *pixel = &data[0] + ((y * textureWidth + x) * 4); in TEST_P() 168 pixel[0] = static_cast<GLubyte>((floa in TEST_P() [all...] |
H A D | ImageTest.cpp | 84 GLubyte kLinearColor[] = {132, 55, 219, 255}; 85 GLubyte kSrgbColor[] = {59, 10, 180, 255}; 87 GLubyte kLinearColor3D[] = {131, 242, 100, 255, 201, 89, 133, 255}; 88 GLubyte kSrgbColor3D[] = {58, 226, 32, 255, 149, 26, 60, 255}; 90 GLubyte kLinearColorCube[] = {75, 135, 205, 255, 201, 89, 133, 255, 111, 201, 108, 255, 92 GLubyte kSrgbColorCube[] = {18, 62, 155, 255, 149, 26, 60, 255, 41, 149, 38, 255, 394 const GLubyte data[4], in createEGLImageRenderbufferSource() 477 const GLubyte *data; 715 const GLubyte referenceColor[4], in verifyResultsTexture() 733 void verifyResults2D(GLTexture &texture, const GLubyte dat [all...] |
H A D | ExternalBufferTest.cpp | 39 AHardwareBuffer *createAndroidHardwareBuffer(size_t size, const GLubyte *data) in createAndroidHardwareBuffer() 103 std::vector<GLubyte> initData(kBufferSize, 0xA); in TEST_P() 116 std::vector<GLubyte> expectedData(kBufferSize, 0xFF); in TEST_P() 144 std::vector<GLubyte> initData(kBufferSize, 0xA); in TEST_P() 159 std::vector<GLubyte> copyReadBufferData(kBufferSize, 0xB); in TEST_P() 170 std::vector<GLubyte> expectedData(kBufferSize, 0xFF); in TEST_P() 208 std::vector<GLubyte> initData(kBufferSize, 0xA); in TEST_P() 255 std::vector<GLubyte> initData(kBufferSize, 0xFF); in TEST_P() 293 std::vector<GLubyte> initData(kBufferSize, 0xA); in TEST_P() 308 std::vector<GLubyte> copyReadBufferDat in TEST_P() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl4cDirectStateAccessTests.cpp | 167 addChild(new Textures::BufferTest<glw::GLubyte, 1, false>(m_context, "textures_buffer_r8ui")); in init() 168 addChild(new Textures::BufferTest<glw::GLubyte, 2, false>(m_context, "textures_buffer_rg8ui")); in init() 169 addChild(new Textures::BufferTest<glw::GLubyte, 4, false>(m_context, "textures_buffer_rgba8ui")); in init() 170 addChild(new Textures::BufferTest<glw::GLubyte, 1, true>(m_context, "textures_buffer_r8ui_unorm")); in init() 171 addChild(new Textures::BufferTest<glw::GLubyte, 2, true>(m_context, "textures_buffer_rg8ui_unorm")); in init() 172 addChild(new Textures::BufferTest<glw::GLubyte, 4, true>(m_context, "textures_buffer_rgba8ui_unorm")); in init() 210 addChild(new Textures::StorageAndSubImageTest<glw::GLubyte, 1, false, 1, false>(m_context, "textures_storage_1d_r8ui")); in init() 211 addChild(new Textures::StorageAndSubImageTest<glw::GLubyte, 2, false, 1, false>(m_context, "textures_storage_1d_rg8ui")); in init() 212 addChild(new Textures::StorageAndSubImageTest<glw::GLubyte, 4, false, 1, false>(m_context, "textures_storage_1d_rgba8ui")); in init() 213 addChild(new Textures::StorageAndSubImageTest<glw::GLubyte, in init() [all...] |
H A D | gl4cCopyImageTests.hpp | 133 void cleanPixels(glw::GLubyte** pixels) const; 135 bool compareImages(const targetDesc& left_desc, const glw::GLubyte* left_data, glw::GLuint left_x, 137 const glw::GLubyte* right_data, glw::GLuint right_x, glw::GLuint right_y, 141 bool copyAndVerify(const testCase& test_case, const glw::GLubyte** dst_pixels, const glw::GLubyte** src_pixels); 146 void getPixels(glw::GLuint name, const targetDesc& desc, glw::GLuint level, glw::GLubyte* out_pixels) const; 148 void prepareDstPxls(const targetDesc& desc, glw::GLubyte** out_pixels) const; 150 void prepareSrcPxls(const targetDesc& desc, glw::GLenum dst_internal_format, glw::GLubyte** out_pixels) const; 155 glw::GLuint prepareTexture(const targetDesc& desc, const glw::GLubyte** pixels, glw::GLuint& out_buf_id); 157 bool verify(const testCase& test_case, glw::GLuint dst_layer, const glw::GLubyte** dst_pixel [all...] |
/third_party/mesa3d/src/mesa/math/ |
H A D | m_debug_clip.c | 68 GLubyte clipMask[], in ref_cliptest_points4() 69 GLubyte *orMask, in ref_cliptest_points4() 70 GLubyte *andMask, in ref_cliptest_points4() 78 GLubyte tmpAndMask = *andMask; in ref_cliptest_points4() 79 GLubyte tmpOrMask = *orMask; in ref_cliptest_points4() 86 GLubyte mask = 0; in ref_cliptest_points4() 114 *andMask = (GLubyte) (c < count ? 0 : tmpAndMask); in ref_cliptest_points4() 126 GLubyte clipMask[], in ref_cliptest_points3() 127 GLubyte *orMask, in ref_cliptest_points3() 128 GLubyte *andMas in ref_cliptest_points3() [all...] |
/third_party/skia/third_party/externals/angle2/samples/tex_redef_microbench/ |
H A D | TexRedefMicroBench.cpp | 78 mPixelsResize = new GLubyte[512 * 512 * 4]; in createPixelData() 79 mPixelsNewTex = new GLubyte[512 * 512 * 4]; in createPixelData() 80 GLubyte *pixPtr0 = mPixelsResize; in createPixelData() 81 GLubyte *pixPtr1 = mPixelsNewTex; in createPixelData() 82 GLubyte zeroPix[] = {0, 192, 192, 255}; in createPixelData() 83 GLubyte onePix[] = {192, 0, 0, 255}; in createPixelData() 86 memcpy(pixPtr0, zeroPix, 4 * sizeof(GLubyte)); in createPixelData() 87 memcpy(pixPtr1, onePix, 4 * sizeof(GLubyte)); in createPixelData() 263 GLubyte *mPixelsResize; 264 GLubyte *mPixelsNewTe [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
H A D | ANGLETest.h | 90 constexpr GLColorRGB(GLubyte r, GLubyte g, GLubyte b) : R(r), G(g), B(b) {} in GLColorRGB() 93 const GLubyte *data() const { return &R; } in data() 94 GLubyte *data() { return &R; } in data() 96 GLubyte R, G, B; 108 constexpr GLColorRG(GLubyte r, GLubyte g) : R(r), G(g) {} in GLColorRG() 111 const GLubyte *data() const { return &R; } in data() 112 GLubyte *dat in data() [all...] |
/third_party/mesa3d/src/glx/ |
H A D | pixel.c | 33 static const GLubyte MsbToLsbTable[256] = { 68 static const GLubyte LowBitsMask[9] = { 72 static const GLubyte HighBitsMask[9] = { 84 GLenum format, const GLvoid * userdata, GLubyte * destImage) in FillBitmap() 95 const GLubyte *start, *iter; in FillBitmap() 109 start = ((const GLubyte *) userdata) + skipRows * rowSize + in FillBitmap() 166 const GLvoid * userdata, GLubyte * newimage, GLubyte * modes) in __glFillImage() 178 const GLubyte *start, *iter, *itera, *iterb, *iterc; in __glFillImage() 179 GLubyte *iter in __glFillImage() [all...] |
H A D | glxclient.h | 272 GLubyte *buf; 273 GLubyte *pc; 274 GLubyte *limit; 275 GLubyte *bufEnd; 370 GLubyte *vendor; 371 GLubyte *renderer; 372 GLubyte *version; 373 GLubyte *extensions; 633 extern GLubyte *__glXFlushRenderBuffer(struct glx_context *, GLubyte *); [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcTextureRepeatModeTests.cpp | 89 GLubyte internalred[MAX_PIXEL_SIZE]; 90 GLubyte internalgreen[MAX_PIXEL_SIZE]; 91 GLubyte internalblue[MAX_PIXEL_SIZE]; 92 GLubyte internalwhite[MAX_PIXEL_SIZE]; 95 GLubyte RGBAred[4]; 96 GLubyte RGBAgreen[4]; 97 GLubyte RGBAblue[4]; 98 GLubyte RGBAwhite[4]; 510 void fillTextureWithColor(GLubyte* texture_data, GLsizei tex_width, GLsizei tex_height, 514 bool isEqual(const GLubyte* color [all...] |