Home | History | Annotate | Download | only in main

Lines Matching refs:info

70 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette,
73 memcpy(pixel, palette + info->size * index, info->size);
74 return info->size;
82 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette,
88 if (info->palette_size == 16) {
95 pix += get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
96 pix += get_palette_entry(info, palette, ind[i] & 0xf, pix);
99 get_palette_entry(info, palette, (ind[i] >> 4) & 0xf, pix);
106 pix += get_palette_entry(info, palette, ind[i], pix);
114 const struct cpal_format_info *info;
124 info = &formats[internalFormat - GL_PALETTE4_RGB8_OES];
125 ASSERT(info->cpal_format == internalFormat);
127 expect_size = info->palette_size * info->size;
136 if (info->palette_size == 16)
149 const struct cpal_format_info *info;
156 info = &formats[internalFormat - GL_PALETTE4_RGB8_OES];
157 *format = info->format;
158 *type = info->type;
171 const struct cpal_format_info *info;
182 info = &formats[internalFormat - GL_PALETTE4_RGB8_OES];
187 indices = (const GLubyte *) palette + info->palette_size * info->size;
204 if (w * info->size % align) {
211 image = (GLubyte *) malloc(num_texels * info->size);
212 paletted_to_color(info, palette, indices, num_texels, image);
215 _mesa_TexImage2D(target, lvl, info->format, w, h, 0,
216 info->format, info->type, image);
221 if (info->palette_size == 16)