Searched defs:palette (Results 1 - 25 of 58) sorted by relevance

123

/external/libvncserver/libvncserver/
H A Dzrlepalettehelper.h22 * The PaletteHelper class helps us build up the palette from pixel data by
34 zrle_U32 palette[ZRLE_PALETTE_MAX_SIZE]; member in struct:__anon9213
/external/skia/src/utils/
H A DSkTextureCompressor_R11EAC.cpp26 // mod_val is chosen from a palette of values based on the index of the
27 // given pixel. The palette is chosen by the value stored in mod.
57 // Pack the base codeword, palette, and multiplier into the 64 bits necessary
59 static uint64_t pack_r11eac_block(uint16_t base_cw, uint16_t palette, uint16_t multiplier, argument
61 SkASSERT(palette < 16);
67 const uint64_t p = static_cast<uint64_t>(palette) << 48;
82 // 3. Iterate through each palette and choose the one with the most accurate
111 // Finally, choose the proper palette and indices
116 const int *palette = kR11EACModifierPalettes[paletteIdx];
118 // Iterate through each pixel to find the best palette inde
[all...]
H A DSkTextureCompressor_LATC.cpp22 // Generates an LATC palette. LATC constructs
23 // a palette of eight colors from LUM0 and LUM1 using the algorithm:
44 static void generate_latc_palette(uint8_t palette[], uint8_t lum0, uint8_t lum1) { argument
45 palette[0] = lum0;
46 palette[1] = lum1;
49 palette[i+1] = ((7-i)*lum0 + i*lum1) / 7;
53 palette[i+1] = ((5-i)*lum0 + i*lum1) / 5;
55 palette[6] = 0;
56 palette[7] = 255;
141 uint8_t palette[kLATCPaletteSiz local
187 uint8_t palette[kLATCPaletteSize]; local
411 uint8_t palette[kLATCPaletteSize]; local
[all...]
/external/libpng/contrib/examples/
H A Dpngpixel.c82 /* The palette case is slightly more difficult - the palette and, if
89 png_colorp palette = NULL; local
92 if ((png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette) &
93 PNG_INFO_PLTE) && num_palette > 0 && palette != NULL)
101 palette[index].red, palette[index].green,
102 palette[index].blue,
107 palette[index].red, palette[inde
[all...]
/external/mesa3d/src/gallium/state_trackers/va/
H A Dva_image.c124 vlVaSetImagePalette(VADriverContextP ctx, VAImageID image, unsigned char *palette) argument
/external/mesa3d/src/gallium/state_trackers/xvmc/
H A Dxvmc_private.h90 /* optional palette for this subpicture */
91 struct pipe_sampler_view *palette; member in struct:__anon12494
H A Dsubpicture.c283 subpicture_priv->palette = pipe->create_sampler_view(pipe, tex, &sampler_templ);
399 pipe_sampler_view_reference(&subpicture_priv->palette, NULL);
408 Status XvMCSetSubpicturePalette(Display *dpy, XvMCSubpicture *subpicture, unsigned char *palette) argument
416 assert(palette);
427 upload_sampler(pipe, subpicture_priv->palette, &dst_box, palette, 0, 0, 0);
/external/mesa3d/src/mesa/main/
H A Dtexcompress_cpal.c67 * Get a color/entry from the palette.
70 get_palette_entry(const struct cpal_format_info *info, const GLubyte *palette, argument
73 memcpy(pixel, palette + info->size * index, info->size);
82 paletted_to_color(const struct cpal_format_info *info, const GLubyte *palette, argument
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);
163 * compressed palette format into a regular GLubyte/RGBA glTexImage2D() call.
169 GLsizei imageSize, const void *palette)
166 _mesa_cpal_compressed_teximage2d(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei imageSize, const void *palette) argument
[all...]
/external/libpng/
H A Dpnginfo.h36 * cleaned up before the structure is discarded: palette, trans, text,
63 png_colorp palette; /* array of color values (valid & PNG_INFO_PLTE) */ member in struct:png_info_def
64 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */
65 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */
148 * same order as the palette colors, starting from index 0. Values
155 png_color_16 trans_color; /* transparent color for non-palette image */
191 * various palette entries, so that a viewer can intelligently select a
192 * reduced-color palette, if required. Data is an array of "num_palette"
H A Dpngget.c942 png_colorp *palette, int *num_palette)
947 && palette != NULL)
949 *palette = info_ptr->palette;
941 png_get_PLTE(png_const_structrp png_ptr, png_inforp info_ptr, png_colorp *palette, int *num_palette) argument
/external/libvncserver/libvncclient/
H A Dzrle.c299 CARDBPP palette[16]; local
308 /* read palette */
310 palette[i] = UncompressCPixel(buffer);
315 ((CARDBPP*)client->frameBuffer)[j+i] = palette[((*buffer)>>shift)&mask];
366 else if( type >= 130 ) /* palette RLE */
368 CARDBPP palette[128]; local
374 /* read palette */
376 palette[i] = UncompressCPixel(buffer);
384 color = palette[(*buffer)&0x7f];
H A Dtight.c188 rfbClientLog("Tight encoding: error receiving palette.\n");
457 CARDBPP *palette = (CARDBPP *)client->tightPalette; local
475 palette[i] = RGB24_TO_PIXEL32(client->tightPalette[i*3],
494 CARDBPP *palette = (CARDBPP *)client->tightPalette; local
501 dst[y*client->rectWidth+x*8+7-b] = palette[src[y*w+x] >> b & 1];
504 dst[y*client->rectWidth+x*8+7-b] = palette[src[y*w+x] >> b & 1];
510 dst[y*client->rectWidth+x] = palette[(int)src[y*client->rectWidth+x]];
/external/libvterm/src/
H A Dpen.c46 // Normal 8 colours or high intensity - parse as palette 0
67 static int lookup_colour(const VTermState *state, int palette, const long args[], int argcount, VTermColor *col, int *index) argument
69 switch(palette) {
89 fprintf(stderr, "Unrecognised colour palette %d\n", palette);
303 case 34: case 35: case 36: case 37: // Foreground colour palette
311 case 38: // Foreground colour alternative palette
326 case 44: case 45: case 46: case 47: // Background colour palette
332 case 48: // Background colour alternative palette
347 case 94: case 95: case 96: case 97: // Foreground colour high-intensity palette
[all...]
/external/opencv/otherlibs/highgui/
H A Dgrfmt_bmp.cpp507 PaletteEntry palette[256]; local
532 FillGrayPalette( palette, 8 );
533 m_strm.PutBytes( palette, sizeof(palette));
H A Dgrfmt_pxm.cpp201 PaletteEntry palette[256]; local
227 FillGrayPalette( palette, m_bpp==1 ? 1 : 8 , m_bpp == 1 );
246 FillColorRow8( data, src, m_width, palette );
258 FillColorRow1( data, src, m_width, palette );
H A Dutils.cpp341 void CvtPaletteToGray( const PaletteEntry* palette, uchar* grayPalette, int entries ) argument
346 icvCvt_BGR2Gray_8u_C3C1R( (uchar*)(palette + i), 0, grayPalette + i, 0, cvSize(1,1) );
351 void FillGrayPalette( PaletteEntry* palette, int bpp, bool negative ) argument
359 palette[i].b = palette[i].g = palette[i].r = (uchar)val;
360 palette[i].a = 0;
365 bool IsColorPalette( PaletteEntry* palette, int bpp ) argument
371 if( palette[i].b != palette[
[all...]
/external/pdfium/samples/fx_lpng/lpng_v163/
H A Dpnginfo.h36 * cleaned up before the structure is discarded: palette, trans, text,
63 png_colorp palette; /* array of color values (valid & PNG_INFO_PLTE) */ member in struct:png_info_def
64 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */
65 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */
148 * same order as the palette colors, starting from index 0. Values
155 png_color_16 trans_color; /* transparent color for non-palette image */
191 * various palette entries, so that a viewer can intelligently select a
192 * reduced-color palette, if required. Data is an array of "num_palette"
/external/skia/src/codec/
H A DSkCodec_libpng.cpp124 png_colorp palette; local
127 if (!png_get_PLTE(fPng_ptr, fInfo_ptr, &palette, &numPalette)) {
160 *colorPtr++ = proc(*trans++, palette->red, palette->green, palette->blue);
161 palette++;
167 *colorPtr++ = SkPackARGB32(0xFF, palette->red, palette->green, palette->blue);
168 palette
[all...]
/external/zopfli/src/zopflipng/
H A Dzopflipng_lib.cc116 // If true, means palette is possible so avoid using different RGB values for
118 bool palette = count.size() <= 256; local
122 if (key || palette) {
126 // used as a valid color key, or in case of palette ensures a color
127 // existing in the input image palette is used.
142 if (!key && !palette) {
143 // Use the last encountered RGB value if no key or palette is used: that
152 // If there are now less colors, update palette of input image to match this.
153 if (palette && inputstate->info_png.color.palettesize > 0) {
157 unsigned char* palette_in = inputstate->info_png.color.palette;
[all...]
/external/opencv/
H A Dcvjni.h184 PaletteEntry palette[256]; local
214 FillGrayPalette( palette, 8 );
215 m_strm->PutBytes( palette, sizeof(palette));
/external/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_compositor.c269 struct ureg_src palette; local
283 palette = ureg_DECL_sampler(shader, 1);
290 * fragment.xyz = tex(texel, palette) * csc
297 ureg_TEX(shader, texel, TGSI_TEXTURE_1D, ureg_src(texel), palette);
302 TGSI_TEXTURE_1D, ureg_src(texel), palette);
925 struct pipe_sampler_view *palette,
930 assert(s && c && indexes && palette);
943 pipe_sampler_view_reference(&s->layers[layer].sampler_views[1], palette);
921 vl_compositor_set_palette_layer(struct vl_compositor_state *s, struct vl_compositor *c, unsigned layer, struct pipe_sampler_view *indexes, struct pipe_sampler_view *palette, struct u_rect *src_rect, struct u_rect *dst_rect, bool include_color_conversion) argument
/external/zopfli/src/zopflipng/lodepng/
H A Dlodepng.h91 LCT_PALETTE = 3, /*palette: 1,2,4,8 bit*/
319 palette (PLTE and tRNS)
321 Dynamically allocated with the colors of the palette, including alpha.
322 When encoding a PNG, to store your colors in the palette of the LodePNGColorMode, first use
324 If you encode an image without alpha with palette, don't forget to put value 255 in each A byte of the palette.
326 When decoding, by default you can ignore this palette, since LodePNG already
327 fills the palette colors in the pixels of the raw RGBA output.
329 The palette is only supported for color type 3.
331 unsigned char* palette; /*palett member in struct:LodePNGColorMode
[all...]
/external/freetype/include/
H A Dftimage.h254 /* it indicates how the palette is stored. Not */
257 /* palette :: A typeless pointer to the bitmap palette; this */
270 void* palette; member in struct:FT_Bitmap_
/external/kernel-headers/original/uapi/linux/dvb/
H A Dvideo.h190 __u8 __user *palette; member in struct:video_spu_palette
/external/libpng/contrib/libtests/
H A Dmakepng.c53 * The palette always has 2^bit-depth entries and the tRNS chunk one fewer. The
54 * image is the 1-channel diamond, but using palette index, not luminosity.
67 * will have exactly one palette entry and all image files with be 16x16 in
170 generate_palette(png_colorp palette, png_bytep trans, int bit_depth, argument
190 set_color(palette+0, trans+0, colors[1], colors[1], colors[1], 255,
195 set_color(palette+0, trans+0, colors[1], colors[1], colors[1],
200 set_color(palette+0, trans+0, colors[1], colors[2], colors[3], 255,
205 set_color(palette+0, trans+0, colors[1], colors[2], colors[3],
212 set_color(palette+0, trans+0, 255, 0, 0, 0, gamma_table);
213 set_color(palette
640 png_color palette[256]; local
[all...]

Completed in 4960 milliseconds

123