Home
last modified time | relevance | path

Searched refs:GLubyte (Results 1 – 25 of 412) sorted by relevance

12345678910>>...17

/external/mesa3d/src/gallium/auxiliary/hud/
Dfont.c62 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,1…
76 static const GLubyte Fixed8x13_Character_001[] = { 8, 0, 0, 0, 0, 16, 56,124,254,124, 56, 16, …
77 static const GLubyte Fixed8x13_Character_002[] = { 8, 0,170, 85,170, 85,170, 85,170, 85,170, 85,1…
78 static const GLubyte Fixed8x13_Character_003[] = { 8, 0, 0, 0, 4, 4, 4, 4,174,160,224,160,1…
79 static const GLubyte Fixed8x13_Character_004[] = { 8, 0, 0, 0, 8, 8, 12, 8,142,128,192,128,2…
80 static const GLubyte Fixed8x13_Character_005[] = { 8, 0, 0, 0, 10, 10, 12, 10,108,128,128,128, …
81 static const GLubyte Fixed8x13_Character_006[] = { 8, 0, 0, 0, 8, 8, 12, 8,238,128,128,128,1…
82 static const GLubyte Fixed8x13_Character_007[] = { 8, 0, 0, 0, 0, 0, 0, 0, 0, 24, 36, 36, …
[all …]
/external/deqp/external/openglcts/modules/glesext/texture_border_clamp/
DesextcTextureBorderClampSamplingTextureGroup.cpp60 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,… in init()
92 TestConfiguration<glw::GLfloat, glw::GLubyte> configurationTexture2DDC32F( in init()
96 …addChild(new TextureBorderClampSamplingTexture<glw::GLfloat, glw::GLubyte>(m_context, m_extParams,… in init()
100 TestConfiguration<glw::GLushort, glw::GLubyte> configurationTexture2DDC16( in init()
104 …addChild(new TextureBorderClampSamplingTexture<glw::GLushort, glw::GLubyte>(m_context, m_extParams… in init()
108 TestConfiguration<glw::GLfloat, glw::GLubyte> configurationTexture2DCompressed( in init()
112 addChild(new TextureBorderClampSamplingTexture<glw::GLfloat, glw::GLubyte>( in init()
[all …]
DesextcTextureBorderClampTests.cpp85 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,… in init()
117 TestConfiguration<glw::GLfloat, glw::GLubyte> configurationTexture2DDC32F( in init()
121 …addChild(new TextureBorderClampSamplingTexture<glw::GLfloat, glw::GLubyte>(m_context, m_extParams,… in init()
125 TestConfiguration<glw::GLushort, glw::GLubyte> configurationTexture2DDC16( in init()
129 …addChild(new TextureBorderClampSamplingTexture<glw::GLushort, glw::GLubyte>(m_context, m_extParams… in init()
133 TestConfiguration<glw::GLfloat, glw::GLubyte> configurationTexture2DCompressed( in init()
137 addChild(new TextureBorderClampSamplingTexture<glw::GLfloat, glw::GLubyte>( in init()
[all …]
/external/mesa3d/src/mesa/main/
Dgetstring.c40 static const GLubyte *
48 return (const GLubyte *) "1.20"; in shading_language_version()
50 return (const GLubyte *) "1.30"; in shading_language_version()
52 return (const GLubyte *) "1.40"; in shading_language_version()
54 return (const GLubyte *) "1.50"; in shading_language_version()
56 return (const GLubyte *) "3.30"; in shading_language_version()
58 return (const GLubyte *) "4.00"; in shading_language_version()
60 return (const GLubyte *) "4.10"; in shading_language_version()
62 return (const GLubyte *) "4.20"; in shading_language_version()
64 return (const GLubyte *) "4.30"; in shading_language_version()
[all …]
Dtexcompress_s3tc.c51 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()
64 GLubyte *tempImageSlices[1]; in _mesa_texstore_rgb_dxt1()
65 int rgbRowStride = 3 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgb_dxt1()
66 tempImage = malloc(srcWidth * srcHeight * 3 * sizeof(GLubyte)); in _mesa_texstore_rgb_dxt1()
69 tempImageSlices[0] = (GLubyte *) tempImage; in _mesa_texstore_rgb_dxt1()
103 const GLubyte *pixels; in _mesa_texstore_rgba_dxt1()
104 GLubyte *dst; in _mesa_texstore_rgba_dxt1()
105 const GLubyte *tempImage = NULL; in _mesa_texstore_rgba_dxt1()
[all …]
Dtexcompress_rgtc.c46 static void extractsrc_u( GLubyte srcpixels[4][4], const GLubyte *srcaddr, in extractsrc_u()
49 GLubyte i, j; in extractsrc_u()
50 const GLubyte *curaddr; in extractsrc_u()
63 GLubyte i, j; in extractsrc_s()
78 GLubyte *dst; in _mesa_texstore_red_rgtc1()
79 const GLubyte *tempImage = NULL; in _mesa_texstore_red_rgtc1()
82 const GLubyte *srcaddr; in _mesa_texstore_red_rgtc1()
83 GLubyte srcpixels[4][4]; in _mesa_texstore_red_rgtc1()
84 GLubyte *blkaddr; in _mesa_texstore_red_rgtc1()
86 GLubyte *tempImageSlices[1]; in _mesa_texstore_red_rgtc1()
[all …]
Dtexcompress_s3tc_tmp.h31 typedef GLubyte GLchan;
53 static void dxt135_decode_imageblock ( const GLubyte *img_block_src, in dxt135_decode_imageblock()
61 GLubyte bit_pos = 2 * (j * 4 + i) ; in dxt135_decode_imageblock()
62 GLubyte code = (GLubyte) ((bits >> bit_pos) & 3); in dxt135_decode_imageblock()
108 static void fetch_2d_texel_rgb_dxt1(GLint srcRowStride, const GLubyte *pixdata, in fetch_2d_texel_rgb_dxt1()
115 const GLubyte *blksrc = (pixdata + ((srcRowStride + 3) / 4 * (j / 4) + (i / 4)) * 8); in fetch_2d_texel_rgb_dxt1()
120 static void fetch_2d_texel_rgba_dxt1(GLint srcRowStride, const GLubyte *pixdata, in fetch_2d_texel_rgba_dxt1()
127 const GLubyte *blksrc = (pixdata + ((srcRowStride + 3) / 4 * (j / 4) + (i / 4)) * 8); in fetch_2d_texel_rgba_dxt1()
131 static void fetch_2d_texel_rgba_dxt3(GLint srcRowStride, const GLubyte *pixdata, in fetch_2d_texel_rgba_dxt3()
139 const GLubyte *blksrc = (pixdata + ((srcRowStride + 3) / 4 * (j / 4) + (i / 4)) * 16); in fetch_2d_texel_rgba_dxt3()
[all …]
Dpack.c73 flip_bytes( GLubyte *p, GLuint n ) in flip_bytes()
86 p[i] = (GLubyte) a; in flip_bytes()
97 _mesa_unpack_polygon_stipple( const GLubyte *pattern, GLuint dest[32], in _mesa_unpack_polygon_stipple()
100 GLubyte *ptrn = (GLubyte *) _mesa_unpack_image(2, 32, 32, 1, GL_COLOR_INDEX, in _mesa_unpack_polygon_stipple()
106 GLubyte *p = ptrn; in _mesa_unpack_polygon_stipple()
125 _mesa_pack_polygon_stipple( const GLuint pattern[32], GLubyte *dest, in _mesa_pack_polygon_stipple()
131 GLubyte ptrn[32*4]; in _mesa_pack_polygon_stipple()
134 ptrn[i * 4 + 0] = (GLubyte) ((pattern[i] >> 24) & 0xff); in _mesa_pack_polygon_stipple()
135 ptrn[i * 4 + 1] = (GLubyte) ((pattern[i] >> 16) & 0xff); in _mesa_pack_polygon_stipple()
136 ptrn[i * 4 + 2] = (GLubyte) ((pattern[i] >> 8 ) & 0xff); in _mesa_pack_polygon_stipple()
[all …]
Dtexcompress_cpal.c67 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette, in get_palette_entry()
68 GLuint index, GLubyte *pixel) in get_palette_entry()
79 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette, in paletted_to_color()
80 const void *indices, GLuint num_pixels, GLubyte *image) in paletted_to_color()
82 GLubyte *pix = image; in paletted_to_color()
87 const GLubyte *ind = (const GLubyte *) indices; in paletted_to_color()
101 const GLubyte *ind = (const GLubyte *) indices; in paletted_to_color()
155 const GLubyte *indices; in _mesa_cpal_compressed_teximage2d()
169 indices = (const GLubyte *) palette + info->palette_size * info->size; in _mesa_cpal_compressed_teximage2d()
177 GLubyte *image = NULL; in _mesa_cpal_compressed_teximage2d()
Dtexcompress_fxt1.c49 GLint i, GLint j, GLubyte *rgba);
58 const GLubyte *pixels; in _mesa_texstore_rgb_fxt1()
60 GLubyte *dst; in _mesa_texstore_rgb_fxt1()
61 const GLubyte *tempImage = NULL; in _mesa_texstore_rgb_fxt1()
71 GLubyte *tempImageSlices[1]; in _mesa_texstore_rgb_fxt1()
72 int rgbRowStride = 3 * srcWidth * sizeof(GLubyte); in _mesa_texstore_rgb_fxt1()
73 tempImage = malloc(srcWidth * srcHeight * 3 * sizeof(GLubyte)); in _mesa_texstore_rgb_fxt1()
76 tempImageSlices[0] = (GLubyte *) tempImage; in _mesa_texstore_rgb_fxt1()
93 srcType) / sizeof(GLubyte); in _mesa_texstore_rgb_fxt1()
113 const GLubyte *pixels; in _mesa_texstore_rgba_fxt1()
[all …]
Dmacros.h50 #define FLOAT_TO_UBYTE(X) ((GLubyte) (GLint) ((X) * 255.0F))
122 #define BYTE_TO_UBYTE(b) ((GLubyte) ((b) < 0 ? 0 : (GLubyte) (b)))
123 #define SHORT_TO_UBYTE(s) ((GLubyte) ((s) < 0 ? 0 : (GLubyte) ((s) >> 7)))
124 #define USHORT_TO_UBYTE(s) ((GLubyte) ((s) >> 8))
125 #define INT_TO_UBYTE(i) ((GLubyte) ((i) < 0 ? 0 : (GLubyte) ((i) >> 23)))
126 #define UINT_TO_UBYTE(i) ((GLubyte) ((i) >> 24))
155 UB = (GLubyte) 0; \
157 UB = (GLubyte) 255; \
160 UB = (GLubyte) __tmp.i; \
167 UB = (GLubyte) __tmp.i; \
[all …]
/external/mesa3d/src/mesa/math/
Dm_trans_tmp.h36 const GLubyte *f = (GLubyte *) ptr + SRC_START * stride; in DEST_4F()
37 const GLubyte *first = f; in DEST_4F()
60 const GLubyte *f = (GLubyte *) ptr + SRC_START * stride; in DEST_4FN()
61 const GLubyte *first = f; in DEST_4FN()
83 const GLubyte *f = (GLubyte *) ptr + SRC_START * stride; in DEST_3FN()
84 const GLubyte *first = f; in DEST_3FN()
103 const GLubyte *f = (GLubyte *) ptr + SRC_START * stride; in DEST_1F()
104 const GLubyte *first = f; in DEST_1F()
116 static void DEST_4UB( GLubyte (*t)[4], in DEST_4UB()
121 const GLubyte *f = (GLubyte *) ptr + SRC_START * stride; in DEST_4UB()
[all …]
Dm_clip_tmp.h45 GLubyte clipMask[], in TAG()
46 GLubyte *orMask, in TAG()
47 GLubyte *andMask, in TAG()
55 GLubyte tmpAndMask = *andMask; in TAG()
56 GLubyte tmpOrMask = *orMask; in TAG()
75 GLubyte mask = 0; in TAG()
105 *andMask = (GLubyte) (c < count ? 0 : tmpAndMask); in TAG()
125 GLubyte clipMask[], in TAG()
126 GLubyte *orMask, in TAG()
127 GLubyte *andMask, in TAG()
[all …]
Dm_debug_clip.c68 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 *andMask, in ref_cliptest_points3()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_stencil.c66 const GLubyte one = 1; in get_stencil_offset()
67 GLubyte pixel[MAX_PIXEL_BYTES]; in get_stencil_offset()
86 static inline GLubyte
102 GLubyte s = stencil[j]; \
104 stencil[j] = (GLubyte) (NEW_VAL); \
111 GLubyte s = stencil[j]; \
112 stencil[j] = (GLubyte) ((invmask & s) | (wrtmask & (NEW_VAL))); \
130 GLuint n, GLubyte stencil[], const GLubyte mask[], in apply_stencil_op()
133 const GLubyte ref = _mesa_get_stencil_ref(ctx, face); in apply_stencil_op()
134 const GLubyte wrtmask = ctx->Stencil.WriteMask[face]; in apply_stencil_op()
[all …]
Ds_bitmap.c52 const GLubyte *bitmap ) in _swrast_Bitmap()
63 bitmap = (const GLubyte *) _mesa_map_pbo_source(ctx, unpack, bitmap); in _swrast_Bitmap()
78 const GLubyte *src = (const GLubyte *) _mesa_image_address2d(unpack, in _swrast_Bitmap()
83 GLubyte mask = 1U << (unpack->SkipPixels & 0x7); in _swrast_Bitmap()
105 GLubyte mask = 128U >> (unpack->SkipPixels & 0x7); in _swrast_Bitmap()
151 const GLubyte *bitmap )
176 const GLubyte *src = (const GLubyte *) _mesa_image_address2d(unpack,
181 GLubyte mask = 1U << (unpack->SkipPixels & 0x7);
201 GLubyte mask = 128U >> (unpack->SkipPixels & 0x7);
Ds_texfetch_tmp.h55 ((type *)((GLubyte *) (image)->ImageSlices[0] + (image)->RowStride * (j)) + \
63 ((type *)((GLubyte *) (image)->ImageSlices[k] + \
120 FETCH_RGBA(BGR_UNORM8, GLubyte, 3)
121 FETCH_RGBA(RGB_UNORM8, GLubyte, 3)
133 FETCH_RGBA(L4A4_UNORM, GLubyte, 1)
135 FETCH_RGBA(R_UNORM8, GLubyte, 1)
142 FETCH_RGBA(B2G3R3_UNORM, GLubyte, 1)
143 FETCH_RGBA(A_UNORM8, GLubyte, 1)
145 FETCH_RGBA(L_UNORM8, GLubyte, 1)
147 FETCH_RGBA(I_UNORM8, GLubyte, 1)
[all …]
/external/mesa3d/src/mesa/tnl/
Dt_vertex_generic.c49 static inline void insert_4f_viewport_4( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_4f_viewport_4()
61 static inline void insert_4f_viewport_3( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_4f_viewport_3()
73 static inline void insert_4f_viewport_2( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_4f_viewport_2()
85 static inline void insert_4f_viewport_1( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_4f_viewport_1()
97 static inline void insert_3f_viewport_3( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_3f_viewport_3()
108 static inline void insert_3f_viewport_2( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_3f_viewport_2()
119 static inline void insert_3f_viewport_1( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_3f_viewport_1()
130 static inline void insert_2f_viewport_2( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_2f_viewport_2()
140 static inline void insert_2f_viewport_1( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_2f_viewport_1()
155 static inline void insert_4f_4( const struct tnl_clipspace_attr *a, GLubyte *v, const GLfloat *in ) in insert_4f_4()
[all …]
/external/mesa3d/src/mesa/drivers/x11/
DxmesaP.h42 GLubyte b;
43 GLubyte g;
44 GLubyte r;
94 GLubyte Kernel[16]; /* Dither kernel */
98 GLubyte PixelToR[256]; /* Pixel to RGB conversion */
99 GLubyte PixelToG[256];
100 GLubyte PixelToB[256];
119 GLubyte clearcolor[4]; /* current clearing color */
164 GLubyte *origin3; /* used for PIXEL_ADDR3 macro */
229 GLubyte pixel_to_r[65536]; /* pixel value -> red */
[all …]
/external/mesa3d/src/mesa/x86/
Dx86_xform.c60 GLubyte clipMask[],
61 GLubyte *orMask,
62 GLubyte *andMask,
68 GLubyte clipMask[],
69 GLubyte *orMask,
70 GLubyte *andMask,
76 GLubyte *or_mask,
77 GLubyte *and_mask,
78 GLubyte *clip_mask,
/external/deqp/external/openglcts/modules/gl/
Dgl4cDirectStateAccessTests.cpp166 addChild(new Textures::BufferTest<glw::GLubyte, 1, false>(m_context, "textures_buffer_r8ui")); in init()
167 addChild(new Textures::BufferTest<glw::GLubyte, 2, false>(m_context, "textures_buffer_rg8ui")); in init()
168 addChild(new Textures::BufferTest<glw::GLubyte, 4, false>(m_context, "textures_buffer_rgba8ui")); in init()
169 addChild(new Textures::BufferTest<glw::GLubyte, 1, true>(m_context, "textures_buffer_r8ui_unorm")); in init()
170 …addChild(new Textures::BufferTest<glw::GLubyte, 2, true>(m_context, "textures_buffer_rg8ui_unorm")… in init()
171 …addChild(new Textures::BufferTest<glw::GLubyte, 4, true>(m_context, "textures_buffer_rgba8ui_unorm… in init()
209 …addChild(new Textures::StorageAndSubImageTest<glw::GLubyte, 1, false, 1, false>(m_context, "textur… in init()
210 …addChild(new Textures::StorageAndSubImageTest<glw::GLubyte, 2, false, 1, false>(m_context, "textur… in init()
211 …addChild(new Textures::StorageAndSubImageTest<glw::GLubyte, 4, false, 1, false>(m_context, "textur… in init()
212 …addChild(new Textures::StorageAndSubImageTest<glw::GLubyte, 1, false, 2, false>(m_context, "textur… in init()
[all …]
/external/mesa3d/src/mapi/glapi/
Dglapi_entrypoint.c42 extern GLubyte gl_dispatch_functions_start[];
43 extern GLubyte gl_dispatch_functions_end[];
45 extern const GLubyte gl_dispatch_functions_start[];
77 const GLubyte * const get_disp = (const GLubyte *) run_time_patch; in init_glapi_relocs()
78 GLubyte * curr_func = (GLubyte *) gl_dispatch_functions_start; in init_glapi_relocs()
81 while ( curr_func != (GLubyte *) gl_dispatch_functions_end ) { in init_glapi_relocs()
101 const GLubyte * const template_func = gl_dispatch_functions_start in generate_entrypoint()
103 GLubyte * const code = (GLubyte *) u_execmem_alloc(DISPATCH_FUNCTION_SIZE); in generate_entrypoint()
122 GLubyte * const code = (GLubyte *) entrypoint; in fill_in_entrypoint_offset()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_pixel_bitmap.c62 static const GLubyte *map_pbo( struct gl_context *ctx, in map_pbo()
65 const GLubyte *bitmap ) in map_pbo()
67 GLubyte *buf; in map_pbo()
76 buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size, in map_pbo()
88 static bool test_bit( const GLubyte *src, GLuint bit ) in test_bit()
93 static void set_bit( GLubyte *dest, GLuint bit ) in set_bit()
103 const GLubyte *bitmap, in get_bitmap_rect()
106 GLubyte *dest, in get_bitmap_rect()
135 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, in get_bitmap_rect()
175 const GLubyte *bitmap ) in do_blit_bitmap()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_pixel_bitmap.c65 static const GLubyte *map_pbo( struct gl_context *ctx, in map_pbo()
68 const GLubyte *bitmap ) in map_pbo()
70 GLubyte *buf; in map_pbo()
79 buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size, in map_pbo()
91 static bool test_bit( const GLubyte *src, GLuint bit ) in test_bit()
96 static void set_bit( GLubyte *dest, GLuint bit ) in set_bit()
106 const GLubyte *bitmap, in get_bitmap_rect()
109 GLubyte *dest, in get_bitmap_rect()
138 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, in get_bitmap_rect()
178 const GLubyte *bitmap ) in do_blit_bitmap()
[all …]
/external/mesa3d/src/glx/
Dpixel.c33 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 *iter2; in __glFillImage()
210 start = ((const GLubyte *) userdata) + skipImages * imageSize + in __glFillImage()
[all …]

12345678910>>...17