HomeSort by relevance Sort by last modified time
    Searched full:color_type (Results 1 - 25 of 48) sorted by null

1 2

  /external/libpng/contrib/pngminus/
png2pnm.c 202 int color_type; local
247 &width, &height, &bit_depth, &color_type,
253 if (color_type == PNG_COLOR_TYPE_PALETTE)
256 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
267 if (color_type == PNG_COLOR_TYPE_GRAY ||
268 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
281 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
294 if (color_type == PNG_COLOR_TYPE_GRAY)
296 else if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
298 else if (color_type == PNG_COLOR_TYPE_RGB
    [all...]
pnm2png.c 199 int color_type; local
222 color_type = PNG_COLOR_TYPE_GRAY;
228 color_type = PNG_COLOR_TYPE_GRAY;
249 color_type = PNG_COLOR_TYPE_RGB;
276 if (color_type == PNG_COLOR_TYPE_GRAY)
277 color_type = PNG_COLOR_TYPE_GRAY_ALPHA;
278 if (color_type == PNG_COLOR_TYPE_RGB)
279 color_type = PNG_COLOR_TYPE_RGB_ALPHA;
319 if (color_type == PNG_COLOR_TYPE_GRAY)
321 else if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA
    [all...]
  /bootable/recovery/minui/
resources.c 99 int color_type = info_ptr->color_type; local
103 ((channels == 3 && color_type == PNG_COLOR_TYPE_RGB) ||
104 (channels == 4 && color_type == PNG_COLOR_TYPE_RGBA) ||
105 (channels == 1 && color_type == PNG_COLOR_TYPE_PALETTE)))) {
125 if (color_type == PNG_COLOR_TYPE_PALETTE) {
  /external/libpng/
pngwtran.c 39 /* png_byte color_type; color type of pixels */
228 row_info->color_type != PNG_COLOR_TYPE_PALETTE)
233 if (row_info->color_type & PNG_COLOR_MASK_COLOR)
251 if (row_info->color_type & PNG_COLOR_MASK_ALPHA)
352 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
392 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
441 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
483 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
532 (row_info->color_type & PNG_COLOR_MASK_COLOR))
541 if (row_info->color_type == PNG_COLOR_TYPE_RGB
    [all...]
pngrtran.c 560 (png_ptr->color_type & PNG_COLOR_MASK_ALPHA) ||
561 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE))
717 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
792 int color_type = png_ptr->color_type; local
801 * Note: if PNG_BACKGROUND_EXPAND is set and color_type is either RGB or
809 !(color_type & PNG_COLOR_MASK_COLOR))
826 if (!(color_type & PNG_COLOR_MASK_COLOR)) /* i.e., GRAY or GRAY_ALPHA */
875 else if (color_type == PNG_COLOR_TYPE_PALETTE)
911 if ((color_type == PNG_COLOR_TYPE_PALETTE && png_ptr->num_trans != 0
    [all...]
pngtrans.c 136 if (png_ptr->color_type == PNG_COLOR_TYPE_RGB)
144 if (png_ptr->color_type == PNG_COLOR_TYPE_GRAY && png_ptr->bit_depth >= 8)
216 if (row_info->color_type == PNG_COLOR_TYPE_GRAY)
228 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
241 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
439 if ((row_info->color_type == PNG_COLOR_TYPE_RGB ||
440 (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA &&
520 else if ((row_info->color_type == PNG_COLOR_TYPE_GRAY ||
521 (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
577 row_info->color_type &= ~PNG_COLOR_MASK_ALPHA
    [all...]
png.c 962 int color_type, int interlace_type, int compression_type,
1028 if (color_type < 0 || color_type == 1 ||
1029 color_type == 5 || color_type > 6)
1035 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) ||
1036 ((color_type == PNG_COLOR_TYPE_RGB ||
1037 color_type == PNG_COLOR_TYPE_GRAY_ALPHA ||
1038 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8))
1064 * 5. The color_type is RGB or RGB
    [all...]
pngget.c 85 return info_ptr->color_type;
579 int *color_type, int *interlace_type, int *compression_type,
586 height == NULL || bit_depth == NULL || color_type == NULL)
592 *color_type = info_ptr->color_type;
609 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type,
813 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
824 else /* if (info_ptr->color_type != PNG_COLOR_TYPE_PALETTE) */
pngset.c 229 int color_type, int interlace_type, int compression_type,
240 info_ptr->color_type = (png_byte)color_type;
246 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type,
249 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
251 else if (info_ptr->color_type & PNG_COLOR_MASK_COLOR)
255 if (info_ptr->color_type & PNG_COLOR_MASK_ALPHA)
456 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
874 if ((info_ptr->color_type == PNG_COLOR_TYPE_GRAY &&
876 (info_ptr->color_type == PNG_COLOR_TYPE_RGB &
    [all...]
pngrutil.c 461 int bit_depth, color_type, compression_type, filter_type; local
481 color_type = buf[9];
491 png_ptr->color_type = (png_byte)color_type;
498 switch (png_ptr->color_type)
526 color_type, interlace_type, compression_type, filter_type);
556 if (!(png_ptr->color_type&PNG_COLOR_MASK_COLOR))
564 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
573 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
617 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE
    [all...]
example.c 89 int bit_depth, color_type, interlace_type;
101 int bit_depth, color_type, interlace_type;
177 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
204 if (color_type == PNG_COLOR_TYPE_PALETTE)
208 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
277 if (color_type & PNG_COLOR_MASK_COLOR)
319 if (color_type & PNG_COLOR_MASK_COLOR)
635 * the color_type selected. color_type is one of PNG_COLOR_TYPE_GRAY,
pngtest.c 212 * png_byte color_type color type of pixels
218 /* Counts the number of zero samples (or zero pixels if color_type is 3 */
220 if (row_info->color_type == 0 || row_info->color_type == 3)
272 if (row_info->color_type > 3)color_channels--;
288 if (row_info->color_type > 3)
706 int bit_depth, color_type; local
910 &color_type, &interlace_type, &compression_type, &filter_type))
914 color_type, interlace_type, compression_type, filter_type);
916 color_type, PNG_INTERLACE_NONE, compression_type, filter_type)
    [all...]
  /external/qemu/distrib/libpng-1.2.19/
pngwtran.c 34 /* png_byte color_type; color type of pixels */
221 row_info->color_type != PNG_COLOR_TYPE_PALETTE)
226 if (row_info->color_type & PNG_COLOR_MASK_COLOR)
244 if (row_info->color_type & PNG_COLOR_MASK_ALPHA)
344 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
384 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
432 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
474 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
522 (row_info->color_type & PNG_COLOR_MASK_COLOR))
531 if (row_info->color_type == PNG_COLOR_TYPE_RGB
    [all...]
pngrtran.c 532 (png_ptr->color_type & PNG_COLOR_MASK_ALPHA) ||
533 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE))
667 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
735 int color_type = png_ptr->color_type; local
743 /* Note: if PNG_BACKGROUND_EXPAND is set and color_type is either RGB or
751 !(color_type & PNG_COLOR_MASK_COLOR))
768 if (!(color_type & PNG_COLOR_MASK_COLOR)) /* i.e., GRAY or GRAY_ALPHA */
813 else if (color_type == PNG_COLOR_TYPE_PALETTE)
848 if ((color_type == PNG_COLOR_TYPE_PALETTE && png_ptr->num_trans != 0
    [all...]
pngtrans.c 115 if (png_ptr->color_type == PNG_COLOR_TYPE_RGB)
123 if (png_ptr->color_type == PNG_COLOR_TYPE_GRAY && png_ptr->bit_depth >= 8)
186 if (row_info->color_type == PNG_COLOR_TYPE_GRAY)
198 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
211 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
406 if ((row_info->color_type == PNG_COLOR_TYPE_RGB ||
407 (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA &&
487 else if ((row_info->color_type == PNG_COLOR_TYPE_GRAY ||
488 (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
544 row_info->color_type &= ~PNG_COLOR_MASK_ALPHA
    [all...]
pngset.c 262 int color_type, int interlace_type, int compression_type,
294 if (color_type < 0 || color_type == 1 ||
295 color_type == 5 || color_type > 6)
298 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) ||
299 ((color_type == PNG_COLOR_TYPE_RGB ||
300 color_type == PNG_COLOR_TYPE_GRAY_ALPHA ||
301 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8))
318 * 5. The color_type is RGB or RGB
    [all...]
pngget.c 82 return info_ptr->color_type;
541 int *color_type, int *interlace_type, int *compression_type,
546 bit_depth != NULL && color_type != NULL)
554 *color_type = info_ptr->color_type;
555 if (info_ptr->color_type > 6)
770 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
780 else /* if (info_ptr->color_type != PNG_COLOR_TYPE_PALETTE) */
pngrutil.c 352 int bit_depth, color_type, compression_type, filter_type; local
372 color_type = buf[9];
382 png_ptr->color_type = (png_byte)color_type;
389 switch (png_ptr->color_type)
414 color_type, interlace_type, compression_type, filter_type);
442 if (!(png_ptr->color_type&PNG_COLOR_MASK_COLOR))
450 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
459 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
501 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE
    [all...]
  /external/libpng/contrib/gregbook/
readpng.c 72 int bit_depth, color_type; variable
134 * etc., but want bit_depth and color_type for later [don't care about
137 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
173 * and blue values, regardless of color_type: */
185 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
226 if (color_type == PNG_COLOR_TYPE_PALETTE)
228 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
234 if (color_type == PNG_COLOR_TYPE_GRAY ||
235 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
readppm.c 68 int bit_depth, color_type, channels; variable
96 color_type = 2;
99 color_type = 6;
102 color_type = 0;
readpng2.c 381 int color_type, bit_depth; local
418 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
434 * green and blue values, regardless of color_type: */
443 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
466 if (color_type == PNG_COLOR_TYPE_PALETTE)
468 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
474 if (color_type == PNG_COLOR_TYPE_GRAY ||
475 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
writepng.c 87 int color_type, interlace_type; local
141 color_type = PNG_COLOR_TYPE_GRAY;
143 color_type = PNG_COLOR_TYPE_RGB;
145 color_type = PNG_COLOR_TYPE_RGB_ALPHA;
155 mainprog_ptr->sample_depth, color_type, interlace_type,
  /external/skia/src/images/
SkImageDecoder_libpng.cpp 164 // call only if color_type is PALETTE. Returns true if the ctable has alpha
227 int bit_depth, color_type, interlace_type; local
229 &color_type, &interlace_type, int_p_NULL, int_p_NULL);
241 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
246 if (color_type == PNG_COLOR_TYPE_GRAY ||
247 color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
269 int bit_depth, color_type, interlace_type; local
271 &color_type, &interlace_type, int_p_NULL, int_p_NULL);
312 if (color_type == PNG_COLOR_TYPE_PALETTE) {
330 if (color_type == PNG_COLOR_TYPE_RGB || color_type == PNG_COLOR_TYPE_GRAY)
442 int bit_depth, color_type, interlace_type; local
460 int bit_depth, color_type, interlace_type; local
628 int bit_depth, color_type, interlace_type; local
    [all...]
  /external/opencv/otherlibs/highgui/
grfmt_png.cpp 152 int bit_depth, color_type; local
158 &bit_depth, &color_type, 0, 0, 0 );
160 m_iscolor = color_type == PNG_COLOR_TYPE_RGB ||
161 color_type == PNG_COLOR_TYPE_RGB_ALPHA ||
162 color_type == PNG_COLOR_TYPE_PALETTE;
166 m_color_type = color_type;
  /frameworks/base/tools/aapt/
Images.cpp 75 int color_type; local
82 &outImageInfo->height, &bit_depth, &color_type,
86 //printf("color_type=%d, bit_depth=%d, interlace_type=%d, compression_type=%d\n",
87 // color_type, bit_depth, interlace_type, compression_type);
89 if (color_type == PNG_COLOR_TYPE_PALETTE)
92 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
103 if ((color_type&PNG_COLOR_MASK_ALPHA) == 0)
106 if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
131 bit_depth, color_type,
979 int color_type; local
    [all...]

Completed in 689 milliseconds

1 2