Searched refs:color_type (Results 26 - 49 of 49) sorted by relevance

12

/external/chromium_org/tools/imagediff/
H A Dimage_diff_png.cc156 int bit_depth, color_type, interlace_type, compression_type; local
159 png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type,
175 if (color_type == PNG_COLOR_TYPE_PALETTE ||
176 (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8))
188 if (color_type == PNG_COLOR_TYPE_GRAY ||
189 color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
/external/chromium_org/third_party/libpng/
H A Dpngwutil.c393 int bit_depth, int color_type, int compression_type, int filter_type,
406 switch (color_type)
462 * 5. The color_type is RGB or RGBA
468 (color_type == PNG_COLOR_TYPE_RGB ||
469 color_type == PNG_COLOR_TYPE_RGB_ALPHA) &&
491 png_ptr->color_type = (png_byte)color_type;
511 buf[9] = (png_byte)color_type;
525 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE ||
590 if (png_ptr->color_type
392 png_write_IHDR(png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int compression_type, int filter_type, int interlace_type) argument
931 png_write_sBIT(png_structp png_ptr, png_color_8p sbit, int color_type) argument
1076 png_write_tRNS(png_structp png_ptr, png_bytep trans, png_color_16p tran, int num_trans, int color_type) argument
1133 png_write_bKGD(png_structp png_ptr, png_color_16p back, int color_type) argument
[all...]
H A Dpngget.c85 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) */
577 png_get_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_type, int *compression_type, int *filter_type) argument
H A Dpngwrite.c50 info_ptr->bit_depth, info_ptr->color_type, info_ptr->compression_type,
83 png_write_sBIT(png_ptr, &(info_ptr->sig_bit), info_ptr->color_type);
151 else if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
160 info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
168 info_ptr->num_trans, info_ptr->color_type);
173 png_write_bKGD(png_ptr, &(info_ptr->background), info_ptr->color_type);
904 png_ptr->row_info.color_type = png_ptr->color_type;
914 png_debug1(3, "row_info->color_type = %d", png_ptr->row_info.color_type);
[all...]
H A Dpngread.c467 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
480 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
769 png_ptr->row_info.color_type = png_ptr->color_type;
1420 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) ||
H A Dpngpread.c289 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
316 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
935 png_ptr->row_info.color_type = png_ptr->color_type;
H A Dpng.h823 png_byte color_type PNG_DEPSTRUCT; /* see PNG_COLOR_TYPE_ below (from IHDR) */
1063 /* These describe the color_type field in png_info. */
1159 png_byte color_type; /* color type of row */ member in struct:png_row_info_struct
1322 png_byte color_type PNG_DEPSTRUCT; /* color type of file */
2283 /* Returns image color_type. */
2400 int *bit_depth, int *color_type, int *interlace_method,
2405 int color_type, int interlace_method, int compression_method,
3237 int bit_depth, int color_type, int compression_method, int filter_method,
3261 int color_type)) PNG_PRIVATE;
3299 png_color_16p values, int number, int color_type)) PNG_PRIVAT
[all...]
/external/libpng/
H A Dpngwutil.c393 int bit_depth, int color_type, int compression_type, int filter_type,
406 switch (color_type)
462 * 5. The color_type is RGB or RGBA
468 (color_type == PNG_COLOR_TYPE_RGB ||
469 color_type == PNG_COLOR_TYPE_RGB_ALPHA) &&
491 png_ptr->color_type = (png_byte)color_type;
511 buf[9] = (png_byte)color_type;
525 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE ||
590 if (png_ptr->color_type
392 png_write_IHDR(png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int compression_type, int filter_type, int interlace_type) argument
931 png_write_sBIT(png_structp png_ptr, png_color_8p sbit, int color_type) argument
1076 png_write_tRNS(png_structp png_ptr, png_bytep trans, png_color_16p tran, int num_trans, int color_type) argument
1133 png_write_bKGD(png_structp png_ptr, png_color_16p back, int color_type) argument
[all...]
H A Dpngset.c229 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
227 png_set_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int interlace_type, int compression_type, int filter_type) argument
[all...]
H A Dpngtest.c212 * 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_NON
[all...]
H A Dpngget.c85 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) */
577 png_get_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_type, int *compression_type, int *filter_type) argument
H A Dpngwrite.c50 info_ptr->bit_depth, info_ptr->color_type, info_ptr->compression_type,
83 png_write_sBIT(png_ptr, &(info_ptr->sig_bit), info_ptr->color_type);
151 else if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
160 info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
168 info_ptr->num_trans, info_ptr->color_type);
173 png_write_bKGD(png_ptr, &(info_ptr->background), info_ptr->color_type);
904 png_ptr->row_info.color_type = png_ptr->color_type;
914 png_debug1(3, "row_info->color_type = %d", png_ptr->row_info.color_type);
[all...]
H A Dpngread.c471 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
484 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
793 png_ptr->row_info.color_type = png_ptr->color_type;
1600 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) ||
H A Dpngpread.c289 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
316 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
935 png_ptr->row_info.color_type = png_ptr->color_type;
H A Dpng.h870 png_byte color_type PNG_DEPSTRUCT; /* see PNG_COLOR_TYPE_ below (from IHDR) */
1110 /* These describe the color_type field in png_info. */
1206 png_byte color_type; /* color type of row */ member in struct:png_row_info_struct
1375 png_byte color_type PNG_DEPSTRUCT; /* color type of file */
2355 /* Returns image color_type. */
2472 int *bit_depth, int *color_type, int *interlace_method,
2477 int color_type, int interlace_method, int compression_method,
3321 int bit_depth, int color_type, int compression_method, int filter_method,
3345 int color_type)) PNG_PRIVATE;
3383 png_color_16p values, int number, int color_type)) PNG_PRIVAT
[all...]
H A DCHANGES1069 Compute background.gray and background_1.gray even when color_type is RGB
1079 Compute background.gray and background_1.gray even when color_type is RGB
1085 Check for invalid bit_depth or color_type in png_get_IHDR(), and
1088 Compute gamma for color components of background even when color_type is gray.
1360 Undid new code added in 1.2.6rc2 to update the color_type in
1364 Revised png_set_strip_filler() to not remove alpha if color_type has alpha.
1377 Reduce color_type to a nonalpha type after strip alpha operation in
2135 Avoid changing color_type from GRAY to RGB by
/external/qemu/distrib/libpng-1.2.19/
H A Dpngwutil.c377 int bit_depth, int color_type, int compression_type, int filter_type,
387 switch (color_type)
442 * 5. The color_type is RGB or RGBA
448 (color_type == PNG_COLOR_TYPE_RGB ||
449 color_type == PNG_COLOR_TYPE_RGB_ALPHA) &&
471 png_ptr->color_type = (png_byte)color_type;
491 buf[9] = (png_byte)color_type;
505 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE ||
560 if (png_ptr->color_type
376 png_write_IHDR(png_structp png_ptr, png_uint_32 width, png_uint_32 height, int bit_depth, int color_type, int compression_type, int filter_type, int interlace_type) argument
885 png_write_sBIT(png_structp png_ptr, png_color_8p sbit, int color_type) argument
1058 png_write_tRNS(png_structp png_ptr, png_bytep trans, png_color_16p tran, int num_trans, int color_type) argument
1113 png_write_bKGD(png_structp png_ptr, png_color_16p back, int color_type) argument
[all...]
H A Dpngrutil.c352 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
[all...]
H A Dpngget.c82 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) */
539 png_get_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type, int *interlace_type, int *compression_type, int *filter_type) argument
H A Dpngwrite.c43 info_ptr->bit_depth, info_ptr->color_type, info_ptr->compression_type,
75 png_write_sBIT(png_ptr, &(info_ptr->sig_bit), info_ptr->color_type);
141 else if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
150 info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
158 info_ptr->num_trans, info_ptr->color_type);
163 png_write_bKGD(png_ptr, &(info_ptr->background), info_ptr->color_type);
866 png_ptr->row_info.color_type = png_ptr->color_type;
876 png_debug1(3, "row_info->color_type = %d\n", png_ptr->row_info.color_type);
[all...]
H A Dpngread.c444 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
457 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
742 png_ptr->row_info.color_type = png_ptr->color_type;
1388 (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) ||
H A Dpng.h707 png_byte color_type; /* see PNG_COLOR_TYPE_ below (from IHDR) */ member in struct:png_info_struct
946 /* These describe the color_type field in png_info. */
1042 png_byte color_type; /* color type of row */ member in struct:png_row_info_struct
1189 png_byte color_type; /* color type of file */ member in struct:png_struct_def
2130 /* Returns image color_type. */
2247 int *bit_depth, int *color_type, int *interlace_method,
2252 int color_type, int interlace_method, int compression_method,
3017 int bit_depth, int color_type, int compression_method, int filter_method,
3040 int color_type));
3078 png_color_16p values, int number, int color_type));
[all...]
H A Dpngpread.c261 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
284 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE &&
810 png_ptr->row_info.color_type = png_ptr->color_type;
/external/chromium_org/tools/telemetry/third_party/png/
H A Dpng.py599 self.color_type = 4*self.alpha + 2*(not greyscale) + 1*self.colormap
600 assert self.color_type in (0,2,3,4,6)
677 self.bitdepth, self.color_type,
1756 (self.width, self.height, self.bitdepth, self.color_type,
1763 if self.color_type not in (0,2,3,4,6):
1764 raise Error("invalid colour type %d" % self.color_type)
1768 if ((self.color_type & 1 and self.bitdepth > 8) or
1769 (self.bitdepth < 8 and self.color_type not in (0,3))):
1773 % (self.bitdepth, self.color_type))
1787 colormap = bool(self.color_type
[all...]

Completed in 2431 milliseconds

12