Lines Matching full:indexes
337 * Get indexes of color components for a basic color format, such as
338 * GL_RGBA, GL_RED, GL_LUMINANCE_ALPHA, etc. Return -1 for indexes
2773 extract_uint_indexes(GLuint n, GLuint indexes[],
2799 indexes[i] = (*ubsrc & mask) ? 1 : 0;
2813 indexes[i] = (*ubsrc & mask) ? 1 : 0;
2830 indexes[i] = s[i];
2838 indexes[i] = s[i];
2849 indexes[i] = value;
2854 indexes[i] = s[i];
2866 indexes[i] = value;
2871 indexes[i] = s[i];
2883 indexes[i] = value;
2888 indexes[i] = s[i];
2900 indexes[i] = value;
2905 indexes[i] = s[i];
2917 indexes[i] = (GLuint) value;
2922 indexes[i] = (GLuint) s[i];
2934 indexes[i] = (GLuint) _mesa_half_to_float(value);
2939 indexes[i] = (GLuint) _mesa_half_to_float(s[i]);
2951 indexes[i] = value & 0xff; /* lower 8 bits */
2956 indexes[i] = s[i] & 0xff; /* lower 8 bits */
2968 indexes[i] = value & 0xff; /* lower 8 bits */
2973 indexes[i] = s[i*2+1] & 0xff; /* lower 8 bits */
2986 * Return source/dest RGBA indexes for unpacking pixels.
4379 GLuint *indexes = (GLuint *) malloc(n * sizeof(GLuint));
4381 if (!indexes) {
4387 extract_uint_indexes(n, indexes, srcFormat, srcType, source,
4390 /* Convert indexes to RGBA */
4392 _mesa_shift_and_offset_ci(ctx, n, indexes);
4394 _mesa_map_ci_to_rgba(ctx, n, indexes, rgba);
4397 * with color indexes.
4401 free(indexes);
4581 GLuint *indexes = (GLuint *) malloc(n * sizeof(GLuint));
4583 if (!indexes) {
4589 extract_uint_indexes(n, indexes, srcFormat, srcType, source,
4592 /* Convert indexes to RGBA */
4594 _mesa_shift_and_offset_ci(ctx, n, indexes);
4596 _mesa_map_ci_to_rgba(ctx, n, indexes, rgba);
4599 * with color indexes.
4603 free(indexes);
4959 GLuint *indexes = (GLuint *) malloc(n * sizeof(GLuint));
4961 if (!indexes) {
4966 extract_uint_indexes(n, indexes, GL_COLOR_INDEX, srcType, source,
4970 _mesa_apply_ci_transfer_ops(ctx, transferOps, n, indexes);
4979 dst[i] = (GLubyte) (indexes[i] & 0xff);
4988 dst[i] = (GLushort) (indexes[i] & 0xffff);
4993 memcpy(dest, indexes, n * sizeof(GLuint));
4999 free(indexes);
5010 GLuint *indexes = (GLuint *) malloc(n * sizeof(GLuint));
5012 if (!indexes) {
5021 memcpy(indexes, source, n * sizeof(GLuint));
5022 _mesa_apply_ci_transfer_ops(ctx, transferOps, n, indexes);
5023 source = indexes;
5121 free(indexes);
5186 GLuint *indexes = (GLuint *) malloc(n * sizeof(GLuint));
5188 if (!indexes) {
5193 extract_uint_indexes(n, indexes, GL_STENCIL_INDEX, srcType, source,
5197 /* shift and offset indexes */
5198 _mesa_shift_and_offset_ci(ctx, n, indexes);
5206 indexes[i] = (GLuint)ctx->PixelMaps.StoS.Map[ indexes[i] & mask ];
5217 dst[i] = (GLubyte) (indexes[i] & 0xff);
5226 dst[i] = (GLushort) (indexes[i] & 0xffff);
5231 memcpy(dest, indexes, n * sizeof(GLuint));
5238 dst[i*2+1] = indexes[i] & 0xff; /* lower 8 bits */
5246 free(indexes);