Home
last modified time | relevance | path

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

12345678910>>...12

/external/mesa3d/src/mesa/main/
Dgetstring.c39 static const GLubyte *
47 return (const GLubyte *) 0; in shading_language_version()
52 return (const GLubyte *) "1.10"; in shading_language_version()
54 return (const GLubyte *) "1.20"; in shading_language_version()
56 return (const GLubyte *) "1.30"; in shading_language_version()
58 return (const GLubyte *) "1.40"; in shading_language_version()
60 return (const GLubyte *) "1.50"; in shading_language_version()
62 return (const GLubyte *) "3.30"; in shading_language_version()
64 return (const GLubyte *) "4.00"; in shading_language_version()
66 return (const GLubyte *) "4.10"; in shading_language_version()
[all …]
Dformat_pack.c54 const GLubyte src[][4], void *dst);
75 static inline GLubyte
78 GLubyte res = FLOAT_TO_UBYTE(linear_to_srgb(cl)); in linear_float_to_srgb_ubyte()
83 static inline GLubyte
84 linear_ubyte_to_srgb_ubyte(GLubyte cl) in linear_ubyte_to_srgb_ubyte()
86 GLubyte res = FLOAT_TO_UBYTE(linear_to_srgb(cl / 255.0f)); in linear_ubyte_to_srgb_ubyte()
98 pack_ubyte_RGBA8888(const GLubyte src[4], void *dst) in pack_ubyte_RGBA8888()
107 GLubyte v[4]; in pack_float_RGBA8888()
113 pack_row_ubyte_RGBA8888(GLuint n, const GLubyte src[][4], void *dst) in pack_row_ubyte_RGBA8888()
129 GLubyte v[4]; in pack_row_float_RGBA8888()
[all …]
Dtexcompress_s3tc.c70 nonlinear_to_linear(GLubyte cs8) in nonlinear_to_linear()
92 typedef void (*dxtFetchTexelFuncExt)( GLint srcRowstride, GLubyte *pixdata, GLint col, GLint row, G…
100 GLint height, const GLubyte *srcPixData,
101 GLenum destformat, GLubyte *dest,
166 const GLubyte *pixels; in _mesa_texstore_rgb_dxt1()
167 GLubyte *dst; in _mesa_texstore_rgb_dxt1()
168 const GLubyte *tempImage = NULL; in _mesa_texstore_rgb_dxt1()
219 const GLubyte *pixels; in _mesa_texstore_rgba_dxt1()
220 GLubyte *dst; in _mesa_texstore_rgba_dxt1()
221 const GLubyte *tempImage = NULL; in _mesa_texstore_rgba_dxt1()
[all …]
Dtexcompress_cpal.c70 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette, in get_palette_entry()
71 GLuint index, GLubyte *pixel) in get_palette_entry()
82 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette, in paletted_to_color()
83 const void *indices, GLuint num_pixels, GLubyte *image) in paletted_to_color()
85 GLubyte *pix = image; in paletted_to_color()
90 const GLubyte *ind = (const GLubyte *) indices; in paletted_to_color()
104 const GLubyte *ind = (const GLubyte *) indices; in paletted_to_color()
173 const GLubyte *indices; in _mesa_cpal_compressed_teximage2d()
187 indices = (const GLubyte *) palette + info->palette_size * info->size; in _mesa_cpal_compressed_teximage2d()
195 GLubyte *image = NULL; in _mesa_cpal_compressed_teximage2d()
[all …]
Dtexcompress_rgtc.c51 static void unsigned_encode_rgtc_ubyte(GLubyte *blkaddr, GLubyte srccolors[4][4],
56 static void unsigned_fetch_texel_rgtc(unsigned srcRowStride, const GLubyte *pixdata,
57 unsigned i, unsigned j, GLubyte *value, unsigned comps);
62 static void extractsrc_u( GLubyte srcpixels[4][4], const GLubyte *srcaddr, in extractsrc_u()
65 GLubyte i, j; in extractsrc_u()
66 const GLubyte *curaddr; in extractsrc_u()
79 GLubyte i, j; in extractsrc_s()
94 GLubyte *dst; in _mesa_texstore_red_rgtc1()
95 const GLubyte *tempImage = NULL; in _mesa_texstore_red_rgtc1()
98 const GLubyte *srcaddr; in _mesa_texstore_red_rgtc1()
[all …]
Dmacros.h47 #define FLOAT_TO_UBYTE(X) ((GLubyte) (GLint) ((X) * 255.0F))
119 #define BYTE_TO_UBYTE(b) ((GLubyte) ((b) < 0 ? 0 : (GLubyte) (b)))
120 #define SHORT_TO_UBYTE(s) ((GLubyte) ((s) < 0 ? 0 : (GLubyte) ((s) >> 7)))
121 #define USHORT_TO_UBYTE(s) ((GLubyte) ((s) >> 8))
122 #define INT_TO_UBYTE(i) ((GLubyte) ((i) < 0 ? 0 : (GLubyte) ((i) >> 23)))
123 #define UINT_TO_UBYTE(i) ((GLubyte) ((i) >> 24))
153 UB = (GLubyte) 0; \
155 UB = (GLubyte) 255; \
158 UB = (GLubyte) __tmp.i; \
165 UB = (GLubyte) __tmp.i; \
[all …]
Dtexcompress_fxt1.c55 GLint i, GLint j, GLubyte *rgba);
64 const GLubyte *pixels; in _mesa_texstore_rgb_fxt1()
66 GLubyte *dst; in _mesa_texstore_rgb_fxt1()
67 const GLubyte *tempImage = NULL; in _mesa_texstore_rgb_fxt1()
94 srcType) / sizeof(GLubyte); in _mesa_texstore_rgb_fxt1()
115 const GLubyte *pixels; in _mesa_texstore_rgba_fxt1()
117 GLubyte *dst; in _mesa_texstore_rgba_fxt1()
118 const GLubyte *tempImage = NULL; in _mesa_texstore_rgba_fxt1()
144 srcType) / sizeof(GLubyte); in _mesa_texstore_rgba_fxt1()
164 GLubyte rgba[4]; in _mesa_fetch_texel_2d_f_rgba_fxt1()
[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()
62 const GLubyte *f = (GLubyte *) ptr + SRC_START * stride; in DEST_4FN()
63 const GLubyte *first = f; in DEST_4FN()
87 const GLubyte *f = (GLubyte *) ptr + SRC_START * stride; in DEST_3FN()
88 const GLubyte *first = f; in DEST_3FN()
109 const GLubyte *f = (GLubyte *) ptr + SRC_START * stride; in DEST_1F()
110 const GLubyte *first = f; in DEST_1F()
124 static void DEST_4UB( GLubyte (*t)[4], in DEST_4UB()
129 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.c64 const GLubyte one = 1; in get_stencil_offset()
65 GLubyte pixel[MAX_PIXEL_BYTES]; in get_stencil_offset()
84 static inline GLubyte
100 GLubyte s = stencil[j]; \
102 stencil[j] = (GLubyte) (NEW_VAL); \
109 GLubyte s = stencil[j]; \
110 stencil[j] = (GLubyte) ((invmask & s) | (wrtmask & (NEW_VAL))); \
128 GLuint n, GLubyte stencil[], const GLubyte mask[], in apply_stencil_op()
131 const GLubyte ref = ctx->Stencil.Ref[face]; in apply_stencil_op()
132 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);
/external/mesa3d/src/mesa/tnl/
Dt_vertex_generic.c50 static inline void insert_4f_viewport_4( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_4f_viewport_4()
62 static inline void insert_4f_viewport_3( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_4f_viewport_3()
74 static inline void insert_4f_viewport_2( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_4f_viewport_2()
86 static inline void insert_4f_viewport_1( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_4f_viewport_1()
98 static inline void insert_3f_viewport_3( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_3f_viewport_3()
109 static inline void insert_3f_viewport_2( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_3f_viewport_2()
120 static inline void insert_3f_viewport_1( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_3f_viewport_1()
131 static inline void insert_2f_viewport_2( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_2f_viewport_2()
141 static inline void insert_2f_viewport_1( const struct tnl_clipspace_attr *a, GLubyte *v, in insert_2f_viewport_1()
156 static inline void insert_4f_4( const struct tnl_clipspace_attr *a, GLubyte *v, const GLfloat *in ) in insert_4f_4()
[all …]
Dt_vb_vertex.c46 GLubyte *clipmask;
47 GLubyte ormask;
48 GLubyte andmask;
63 GLubyte *clipmask, \
64 GLubyte *clipormask, \
65 GLubyte *clipandmask ) \
109 GLvector4f *, GLubyte *,
110 GLubyte *, GLubyte * ) =
248 store->clipmask = (GLubyte *) _mesa_align_malloc(sizeof(GLubyte)*size, 32 ); in init_vertex_stage()
/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/mesa3d/src/mesa/drivers/x11/
DxmesaP.h41 GLubyte b;
42 GLubyte g;
43 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/mapi/glapi/
Dglapi_entrypoint.c39 extern GLubyte gl_dispatch_functions_start[];
40 extern GLubyte gl_dispatch_functions_end[];
42 extern const GLubyte gl_dispatch_functions_start[];
74 const GLubyte * const get_disp = (const GLubyte *) run_time_patch; in init_glapi_relocs()
75 GLubyte * curr_func = (GLubyte *) gl_dispatch_functions_start; in init_glapi_relocs()
78 while ( curr_func != (GLubyte *) gl_dispatch_functions_end ) { in init_glapi_relocs()
98 const GLubyte * const template_func = gl_dispatch_functions_start in generate_entrypoint()
100 GLubyte * const code = (GLubyte *) u_execmem_alloc(DISPATCH_FUNCTION_SIZE); in generate_entrypoint()
119 GLubyte * const code = (GLubyte *) entrypoint; in fill_in_entrypoint_offset()
/external/mesa3d/src/mesa/drivers/windows/gdi/
Dwmesa.c109 static const GLubyte *wmesa_get_string(struct gl_context *ctx, GLenum name) in wmesa_get_string()
112 (GLubyte *) "Mesa Windows GDI Driver" : NULL; in wmesa_get_string()
274 GLubyte col[3]; in clear()
437 const GLubyte *mask) in write_rgba_span_front()
439 const GLubyte (*rgba)[4] = (const GLubyte (*)[4])values; in write_rgba_span_front()
520 const GLubyte *mask) in write_rgba_pixels_front()
522 const GLubyte (*rgba)[4] = (const GLubyte (*)[4])values; in write_rgba_pixels_front()
541 GLubyte (*rgba)[4] = (GLubyte (*)[4])values; in read_rgba_span_front()
562 GLubyte (*rgba)[4] = (GLubyte (*)[4])values; in read_rgba_pixels_front()
591 const GLubyte *mask) in write_rgba_span_32()
[all …]
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_pixel_bitmap.c64 static const GLubyte *map_pbo( struct gl_context *ctx, in map_pbo()
67 const GLubyte *bitmap ) in map_pbo()
69 GLubyte *buf; in map_pbo()
78 buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size, in map_pbo()
89 static bool test_bit( const GLubyte *src, GLuint bit ) in test_bit()
94 static void set_bit( GLubyte *dest, GLuint bit ) in set_bit()
104 const GLubyte *bitmap, in get_bitmap_rect()
107 GLubyte *dest, in get_bitmap_rect()
136 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, in get_bitmap_rect()
176 const GLubyte *bitmap ) in do_blit_bitmap()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_pixel_bitmap.c64 static const GLubyte *map_pbo( struct gl_context *ctx, in map_pbo()
67 const GLubyte *bitmap ) in map_pbo()
69 GLubyte *buf; in map_pbo()
78 buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size, in map_pbo()
89 static bool test_bit( const GLubyte *src, GLuint bit ) in test_bit()
94 static void set_bit( GLubyte *dest, GLuint bit ) in set_bit()
104 const GLubyte *bitmap, in get_bitmap_rect()
107 GLubyte *dest, in get_bitmap_rect()
136 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, in get_bitmap_rect()
176 const GLubyte *bitmap ) in do_blit_bitmap()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_pixel_bitmap.c64 static const GLubyte *map_pbo( struct gl_context *ctx, in map_pbo()
67 const GLubyte *bitmap ) in map_pbo()
69 GLubyte *buf; in map_pbo()
78 buf = (GLubyte *) ctx->Driver.MapBufferRange(ctx, 0, unpack->BufferObj->Size, in map_pbo()
89 static bool test_bit( const GLubyte *src, GLuint bit ) in test_bit()
94 static void set_bit( GLubyte *dest, GLuint bit ) in set_bit()
104 const GLubyte *bitmap, in get_bitmap_rect()
107 GLubyte *dest, in get_bitmap_rect()
136 const GLubyte *rowsrc = _mesa_image_address2d(unpack, bitmap, in get_bitmap_rect()
176 const GLubyte *bitmap ) in do_blit_bitmap()
[all …]
/external/mesa3d/src/glx/
Dglxclient.h252 GLubyte *buf;
253 GLubyte *pc;
254 GLubyte *limit;
255 GLubyte *bufEnd;
314 GLenum, const GLvoid *, GLubyte *, GLubyte *);
357 GLubyte *vendor;
358 GLubyte *renderer;
359 GLubyte *version;
360 GLubyte *extensions;
607 extern GLubyte *__glXFlushRenderBuffer(struct glx_context *, GLubyte *);
[all …]
Dpackrender.h58 GLubyte *pc, *pixelHeaderPC; \
172 { GLubyte *cp = (pc+offset); \
177 { GLubyte *cp = (pc+offset); \
225 gl_put_short_array((GLubyte *)(pc + offset), a, alen * __GLX_SIZE_INT16)
228 gl_put_long_array((GLubyte *)(pc + offset), (long *)a, alen * __GLX_SIZE_INT32)
231 gl_put_float_array((GLubyte *)(pc + offset), (float *)a, alen * __GLX_SIZE_FLOAT32)
234 gl_put_double_array((GLubyte *)(pc + offset), (double *)a, alen * __GLX_SIZE_FLOAT64)
236 extern gl_put_short_array(GLubyte *, short *, int);
237 extern gl_put_long_array(GLubyte *, long *, int);
238 extern gl_put_float_array(GLubyte *, float *, int);
[all …]
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 …]
/external/mesa3d/src/mesa/program/
Dnvfragparse.c145 const GLubyte *start; /* start of program string */
146 const GLubyte *pos; /* current position */
147 const GLubyte *curLine;
168 const GLubyte *lineStr; in record_error()
215 MatchInstruction(const GLubyte *token) in MatchInstruction()
266 static GLboolean IsLetter(GLubyte b) in IsLetter()
275 static GLboolean IsDigit(GLubyte b) in IsDigit()
281 static GLboolean IsWhitespace(GLubyte b) in IsWhitespace()
293 GetToken(struct parse_state *parseState, GLubyte *token) in GetToken()
295 const GLubyte *str = parseState->pos; in GetToken()
[all …]

12345678910>>...12