Home
last modified time | relevance | path

Searched refs:colormap (Results 1 – 25 of 34) sorted by relevance

12

/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A Drdbmp.c58 JSAMPARRAY colormap; /* BMP colormap (converted to my format) */ member
91 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
92 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
93 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
99 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
100 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
101 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
124 register JSAMPARRAY colormap = source->colormap; in get_8bit_row() local
142 *outptr++ = colormap[1][t]; in get_8bit_row()
143 *outptr++ = colormap[2][t]; in get_8bit_row()
[all …]
A Drdtarga.c53 JSAMPARRAY colormap; /* Targa colormap (converted to my format) */ member
111 sinfo->colormap[2][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
112 sinfo->colormap[1][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
113 sinfo->colormap[0][i] = (JSAMPLE) read_byte(sinfo); in read_colormap()
197 register JSAMPARRAY colormap = source->colormap; in get_8bit_row() local
203 *ptr++ = colormap[0][t]; in get_8bit_row()
204 *ptr++ = colormap[1][t]; in get_8bit_row()
205 *ptr++ = colormap[2][t]; in get_8bit_row()
451 source->colormap = (*cinfo->mem->alloc_sarray) in start_input_tga()
458 source->colormap = NULL; in start_input_tga()
A Dwrrle.c57 rle_map *colormap; /* RLE-style color map, or NULL if none */ member
112 dest->colormap = NULL; in start_output_rle()
117 dest->colormap = (rle_map *) (*cinfo->mem->alloc_small) in start_output_rle()
119 MEMZERO(dest->colormap, cmapsize); in start_output_rle()
125 dest->colormap[ci * CMAPLENGTH + i] = in start_output_rle()
126 GETJSAMPLE(cinfo->colormap[ci][i]) << 8; in start_output_rle()
200 header.cmap = dest->colormap; in finish_output_rle()
A Dwrbmp.c295 JSAMPARRAY colormap = cinfo->colormap; in write_colormap() local
300 if (colormap != NULL) { in write_colormap()
304 putc(GETJSAMPLE(colormap[2][i]), outfile); in write_colormap()
305 putc(GETJSAMPLE(colormap[1][i]), outfile); in write_colormap()
306 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
313 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
314 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
315 putc(GETJSAMPLE(colormap[0][i]), outfile); in write_colormap()
A Drdrle.c210 rle_map *colormap; in get_pseudocolor_row() local
213 colormap = source->header.cmap; in get_pseudocolor_row()
221 *dest_row++ = (JSAMPLE) (colormap[val ] >> 8); in get_pseudocolor_row()
222 *dest_row++ = (JSAMPLE) (colormap[val + 256] >> 8); in get_pseudocolor_row()
223 *dest_row++ = (JSAMPLE) (colormap[val + 512] >> 8); in get_pseudocolor_row()
247 rle_map *colormap; in load_image() local
253 colormap = source->header.cmap; in load_image()
298 (colormap[GETJSAMPLE(rle_row[channel][col]) + 256 * channel] >> 8); in load_image()
A Dwrgif.c220 emit_header (gif_dest_ptr dinfo, int num_colors, JSAMPARRAY colormap) in emit_header() argument
263 if (colormap != NULL) { in emit_header()
266 putc(GETJSAMPLE(colormap[0][i]) >> cshift, dinfo->pub.output_file); in emit_header()
267 putc(GETJSAMPLE(colormap[1][i]) >> cshift, dinfo->pub.output_file); in emit_header()
268 putc(GETJSAMPLE(colormap[2][i]) >> cshift, dinfo->pub.output_file); in emit_header()
271 put_3bytes(dinfo, GETJSAMPLE(colormap[0][i]) >> cshift); in emit_header()
308 emit_header(dest, cinfo->actual_number_of_colors, cinfo->colormap); in start_output_gif()
A Drdcolmap.c48 JSAMPROW colormap0 = cinfo->colormap[0]; in add_map_entry()
49 JSAMPROW colormap1 = cinfo->colormap[1]; in add_map_entry()
50 JSAMPROW colormap2 = cinfo->colormap[2]; in add_map_entry()
234 cinfo->colormap = (*cinfo->mem->alloc_sarray) in read_color_map()
A Dwrtarga.c151 register JSAMPROW color_map0 = cinfo->colormap[0]; in put_demapped_gray()
192 putc(GETJSAMPLE(cinfo->colormap[2][i]), outfile); in start_output_tga()
193 putc(GETJSAMPLE(cinfo->colormap[1][i]), outfile); in start_output_tga()
194 putc(GETJSAMPLE(cinfo->colormap[0][i]), outfile); in start_output_tga()
A Dwrppm.c136 register JSAMPROW color_map0 = cinfo->colormap[0]; in put_demapped_rgb()
137 register JSAMPROW color_map1 = cinfo->colormap[1]; in put_demapped_rgb()
138 register JSAMPROW color_map2 = cinfo->colormap[2]; in put_demapped_rgb()
160 register JSAMPROW color_map = cinfo->colormap[0]; in put_demapped_gray()
A Djquant2.c533 cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); in compute_color()
690 x = GETJSAMPLE(cinfo->colormap[0][i]); in find_nearby_colors()
713 x = GETJSAMPLE(cinfo->colormap[1][i]); in find_nearby_colors()
735 x = GETJSAMPLE(cinfo->colormap[2][i]); in find_nearby_colors()
815 inc0 = (minc0 - GETJSAMPLE(cinfo->colormap[0][icolor])) * C0_SCALE; in find_best_colors()
817 inc1 = (minc1 - GETJSAMPLE(cinfo->colormap[1][icolor])) * C1_SCALE; in find_best_colors()
819 inc2 = (minc2 - GETJSAMPLE(cinfo->colormap[2][icolor])) * C2_SCALE; in find_best_colors()
970 JSAMPROW colormap0 = cinfo->colormap[0]; in pass2_fs_dither()
971 JSAMPROW colormap1 = cinfo->colormap[1]; in pass2_fs_dither()
972 JSAMPROW colormap2 = cinfo->colormap[2]; in pass2_fs_dither()
[all …]
A Djdmaster.c315 cinfo->colormap = NULL; in master_selection()
316 } else if (cinfo->colormap != NULL) { in master_selection()
435 if (cinfo->quantize_colors && cinfo->colormap == NULL) { in prepare_for_output_pass()
506 cinfo->colormap != NULL) { in jpeg_new_colormap()
A Djquant1.c277 JSAMPARRAY colormap; /* Created colormap */ in create_colormap() local
296 colormap = (*cinfo->mem->alloc_sarray) in create_colormap()
315 colormap[i][ptr+k] = (JSAMPLE) val; in create_colormap()
324 cquantize->sv_colormap = colormap; in create_colormap()
749 cinfo->colormap = cquantize->sv_colormap; in start_pass_1_quant()
A Dfilelist.txt95 jquant1.c One-pass color quantization using a fixed-spacing colormap.
96 jquant2.c Two-pass color quantization using a custom-generated colormap.
146 rdcolmap.c Code to read a colormap file for djpeg's "-map" switch.
A Djdapimin.c209 cinfo->colormap = NULL; in default_decompress_parms()
/AliOS-Things-master/components/SDL2/src/image/
A DIMG_lbm.c85 Uint8 id[4], pbm, colormap[MAXCOLORS*3], *MiniBuf, *ptr, count, color, msk; in IMG_LoadLBM_RW() local
186 if (size > sizeof (colormap)) { in IMG_LoadLBM_RW()
191 if ( !SDL_RWread( src, &colormap, size, 1 ) ) in IMG_LoadLBM_RW()
266 ptr = &colormap[0]; in IMG_LoadLBM_RW()
283 ptr = &colormap[0]; in IMG_LoadLBM_RW()
433 …finalcolor = colormap[ pixelcolor*3 ] + (colormap[ pixelcolor*3+1 ]<<8) + (colormap[ pixelcolor*3+… in IMG_LoadLBM_RW()
A DIMG_xcf.c109 } colormap; // 1 member
272 prop->data.colormap.num = SDL_ReadBE32 (src); in xcf_read_property()
273 prop->data.colormap.cmap = (char *) SDL_malloc (sizeof (char) * prop->data.colormap.num * 3); in xcf_read_property()
274 SDL_RWread (src, prop->data.colormap.cmap, prop->data.colormap.num*3, 1); in xcf_read_property()
353 cm_num = prop.data.colormap.num; in read_xcf_header()
358 SDL_memcpy (h->cm_map, prop.data.colormap.cmap, 3*sizeof (char)*h->cm_num); in read_xcf_header()
360 SDL_free (prop.data.colormap.cmap); in read_xcf_header()
402 SDL_free (prop.data.colormap.cmap); in read_xcf_layer()
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/
A Dpngwrite.c1511 png_const_voidp colormap; member
1787 const void *cmap = display->colormap; in png_image_set_PLTE()
1940 int colormap = (format & PNG_FORMAT_FLAG_COLORMAP); in png_image_write_main() local
1942 int alpha = !colormap && (format & PNG_FORMAT_FLAG_ALPHA); in png_image_write_main()
1991 if (display->colormap != NULL && image->colormap_entries > 0) in png_image_write_main()
2082 if (colormap != 0 && image->colormap_entries <= 16) in png_image_write_main()
2123 (colormap == 0 && display->convert_to_8bit != 0)) in png_image_write_main()
2236 display.colormap = colormap; in png_image_write_to_memory()
2302 display.colormap = colormap; in png_image_write_to_stdio()
2330 const void *colormap) in png_image_write_to_file() argument
[all …]
A Dpngread.c1289 png_voidp colormap; member
1946 png_bytep entry = png_voidcast(png_bytep, display->colormap); in png_create_colormap_entry()
2736 if (memcmp((png_const_bytep)display->colormap + in png_image_read_colormap()
2738 (png_const_bytep)display->colormap + in png_image_read_colormap()
2810 png_const_colorp colormap = png_ptr->palette; in png_image_read_colormap() local
2842 png_colormap_compose(display, colormap[i].red, in png_image_read_colormap()
2846 png_colormap_compose(display, colormap[i].blue, in png_image_read_colormap()
2856 colormap[i].green, colormap[i].blue, in png_image_read_colormap()
4109 void *buffer, png_int_32 row_stride, void *colormap) in png_image_finish_read() argument
4165 (image->colormap_entries > 0 && colormap != NULL)) in png_image_finish_read()
[all …]
A Dpng.h2997 void *colormap));
3056 png_int_32 row_stride, const void *colormap));
3061 const void *colormap));
3088 const void *buffer, png_int_32 row_stride, const void *colormap));
3112 row_stride, colormap)\ argument
3114 row_stride, colormap)
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/gregbook/
A Drpng-x.c151 static Colormap colormap; variable
516 colormap = XCreateColormap(display, root, visual, AllocNone); in rpng_x_create_window()
517 if (!colormap) { in rpng_x_create_window()
552 attr.colormap = colormap; in rpng_x_create_window()
568 XSetWindowColormap(display, window, colormap); in rpng_x_create_window()
891 XFreeColormap(display, colormap); in rpng_x_cleanup()
A Drpng2-x.c300 static Colormap colormap; variable
905 colormap = XCreateColormap(display, root, visual, AllocNone); in rpng2_x_create_window()
906 if (!colormap) { in rpng2_x_create_window()
936 attr.colormap = colormap; in rpng2_x_create_window()
952 XSetWindowColormap(display, window, colormap); in rpng2_x_create_window()
2123 XFreeColormap(display, colormap); in rpng2_x_cleanup()
/AliOS-Things-master/components/SDL2/src/video/x11/
A DSDL_x11window.c311 data->colormap = attrib.colormap; in SetupWindowData()
460 xattr.colormap = in X11_CreateWindow()
465 if (!xattr.colormap) { in X11_CreateWindow()
522 X11_XStoreColors(display, xattr.colormap, colorcells, ncolors); in X11_CreateWindow()
526 xattr.colormap = in X11_CreateWindow()
1333 X11_XInstallColormap(display, data->colormap); in X11_SetWindowFullscreenViaWM()
1335 X11_XUninstallColormap(display, data->colormap); in X11_SetWindowFullscreenViaWM()
1371 xattr.colormap = data->colormap; in X11_BeginWindowFullscreenLegacy()
1381 X11_XInstallColormap(display, data->colormap); in X11_BeginWindowFullscreenLegacy()
1503 Colormap colormap = data->colormap; in X11_SetWindowGammaRamp() local
[all …]
A DSDL_x11window.h49 Colormap colormap; member
/AliOS-Things-master/components/SDL2/src/image/VisualC/external/include/
A Dpng.h2997 void *colormap));
3056 png_int_32 row_stride, const void *colormap));
3061 const void *colormap));
3088 const void *buffer, png_int_32 row_stride, const void *colormap));
3112 row_stride, colormap)\ argument
3114 row_stride, colormap)
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/libtests/
A Dpngstest.c587 png_uint_16 colormap[256*4]; member
2685 png_const_bytep a_cmap = (png_const_bytep)a->colormap; in compare_two_images()
2686 png_const_bytep b_cmap = (png_const_bytep)b->colormap; in compare_two_images()
2860 psa = (png_const_bytep)a->colormap + a_sample * *ppa++; in compare_two_images()
2865 psb = (png_const_bytep)b->colormap + b_sample * *ppb++; in compare_two_images()
3034 image->buffer+16, (png_int_32)image->stride, image->colormap); in read_file()
3180 image->buffer+16, (png_int_32)image->stride, image->colormap)) in write_one_file()
3218 image->buffer+16, (png_int_32)image->stride, image->colormap)) in write_one_file()
3241 image->buffer+16, (png_int_32)image->stride, image->colormap)) in write_one_file()
3258 (png_int_32)image->stride, image->colormap)) in write_one_file()

Completed in 54 milliseconds

12