/external/libvncserver/libvncserver/ |
H A D | zrlepalettehelper.h | 22 * The PaletteHelper class helps us build up the palette from pixel data by 34 zrle_U32 palette[ZRLE_PALETTE_MAX_SIZE]; member in struct:__anon10835
|
/external/skia/src/utils/ |
H A D | SkTextureCompressor_R11EAC.cpp | 26 // 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 D | SkTextureCompressor_LATC.cpp | 22 // 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/opencv3/samples/cpp/ |
H A D | detect_blob.cpp | 118 // Color palette 119 vector< Vec3b > palette; local 122 palette.push_back(Vec3b((uchar)rand(), (uchar)rand(), (uchar)rand())); 191 circle(result, k->pt, (int)k->size, palette[i % 65536]);
|
/external/libpng/contrib/examples/ |
H A D | pngpixel.c | 84 /* The palette case is slightly more difficult - the palette and, if 91 png_colorp palette = NULL; local 94 if ((png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette) & 95 PNG_INFO_PLTE) && num_palette > 0 && palette != NULL) 103 palette[index].red, palette[index].green, 104 palette[index].blue, 109 palette[index].red, palette[inde [all...] |
/external/mesa3d/src/gallium/state_trackers/va/ |
H A D | va_image.c | 124 vlVaSetImagePalette(VADriverContextP ctx, VAImageID image, unsigned char *palette) argument
|
/external/mesa3d/src/gallium/state_trackers/xvmc/ |
H A D | xvmc_private.h | 90 /* optional palette for this subpicture */ 91 struct pipe_sampler_view *palette; member in struct:__anon13979
|
H A D | subpicture.c | 283 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 D | texcompress_cpal.c | 67 * 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/opencv3/modules/viz/test/ |
H A D | tests_simple.cpp | 219 const Color palette[] = { Color::red(), Color::green(), Color::blue(), Color::gold(), Color::raspberry(), Color::bluberry(), Color::lime() }; local 220 size_t palette_size = sizeof(palette)/sizeof(palette[0]); 226 colors.at<Vec3b>(i) = palette[i & palette_size];
|
/external/libpng/ |
H A D | pnginfo.h | 35 * cleaned up before the structure is discarded: palette, trans, text, 62 png_colorp palette; /* array of color values (valid & PNG_INFO_PLTE) */ member in struct:png_info_def 63 png_uint_16 num_palette; /* number of color entries in "palette" (PLTE) */ 64 png_uint_16 num_trans; /* number of transparent palette color (tRNS) */ 147 * same order as the palette colors, starting from index 0. Values 154 png_color_16 trans_color; /* transparent color for non-palette image */ 190 * various palette entries, so that a viewer can intelligently select a 191 * reduced-color palette, if required. Data is an array of "num_palette"
|
/external/libvncserver/libvncclient/ |
H A D | zrle.c | 299 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 D | tight.c | 188 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 D | pen.c | 46 // 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 D | grfmt_bmp.cpp | 507 PaletteEntry palette[256]; local 532 FillGrayPalette( palette, 8 ); 533 m_strm.PutBytes( palette, sizeof(palette));
|
H A D | grfmt_pxm.cpp | 201 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 D | utils.cpp | 341 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/opencv3/3rdparty/libpng/ |
H A D | pnginfo.h | 36 * 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) */ 135 * same order as the palette colors, starting from index 0. Values 142 png_color_16 trans_color; /* transparent color for non-palette image */ 178 * various palette entries, so that a viewer can intelligently select a 179 * reduced-color palette, if required. Data is an array of "num_palette"
|
/external/opencv3/modules/imgcodecs/src/ |
H A D | grfmt_bmp.cpp | 521 PaletteEntry palette[256]; local 549 FillGrayPalette( palette, 8 ); 550 strm.putBytes( palette, sizeof(palette));
|
H A D | grfmt_pxm.cpp | 194 PaletteEntry palette[256]; local 219 FillGrayPalette( palette, m_bpp==1 ? 1 : 8 , m_bpp == 1 ); 238 FillColorRow8( data, src, m_width, palette ); 250 FillColorRow1( data, src, m_width, palette );
|
/external/pdfium/third_party/lpng_v163/ |
H A D | pnginfo.h | 36 * 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/webp/src/enc/ |
H A D | delta_palettization.c | 21 // Format allows palette up to 256 entries, but more palette entries produce 23 // that are far from the origin of the palette or choose remaining entries 347 // Find palette entry with minimum error from difference of actual pixel value 350 // index of best palette entry. 352 const uint32_t palette[], int palette_size) { 355 uint32_t best_distance = CalcDist(predicted_value, src, palette[0]); 357 const uint32_t distance = CalcDist(predicted_value, src, palette[i]); 389 const uint32_t* palette, 409 palette, palette_siz 351 FindBestPaletteEntry(uint32_t src, uint32_t predicted_value, const uint32_t palette[], int palette_size) argument 386 ApplyDeltaPalette(uint32_t* src, uint32_t* dst, uint32_t src_stride, uint32_t dst_stride, const uint32_t* palette, int palette_size, int width, int height, int num_passes) argument [all...] |
/external/zopfli/src/zopflipng/ |
H A D | zopflipng_lib.cc | 116 // 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 D | cvjni.h | 184 PaletteEntry palette[256];
local 214 FillGrayPalette( palette, 8 );
215 m_strm->PutBytes( palette, sizeof(palette));
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_compositor.c | 269 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
|