Searched defs:color_type (Results 1 - 11 of 11) sorted by relevance

/openjdk7/jdk/src/share/native/sun/awt/splashscreen/
H A Dsplashscreen_png.c60 int bit_depth, color_type; local
84 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
/openjdk7/jdk/src/share/native/sun/awt/libpng/
H A Dpnginfo.h95 png_byte color_type; /* see PNG_COLOR_TYPE_ below (from IHDR) */ member in struct:png_info_def
H A Dpngget.c110 return info_ptr->color_type;
670 int *color_type, int *interlace_type, int *compression_type,
677 height == NULL || bit_depth == NULL || color_type == NULL)
683 *color_type = info_ptr->color_type;
700 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type,
933 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
945 else /* if (info_ptr->color_type != PNG_COLOR_TYPE_PALETTE) */
668 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 Dpngset.c199 int color_type, int interlace_type, int compression_type,
210 info_ptr->color_type = (png_byte)color_type;
216 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type,
219 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
222 else if (info_ptr->color_type & PNG_COLOR_MASK_COLOR)
228 if (info_ptr->color_type & PNG_COLOR_MASK_ALPHA)
505 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE)
882 if ((info_ptr->color_type == PNG_COLOR_TYPE_GRAY &&
884 (info_ptr->color_type
197 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 Dpngstruct.h155 png_byte color_type; /* color type of file */ member in struct:png_struct_def
H A Dpng.c832 int color_type, int interlace_type, int compression_type,
899 if (color_type < 0 || color_type == 1 ||
900 color_type == 5 || color_type > 6)
906 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) ||
907 ((color_type == PNG_COLOR_TYPE_RGB ||
908 color_type == PNG_COLOR_TYPE_GRAY_ALPHA ||
909 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8))
935 * 5. The color_type i
830 png_check_IHDR(png_structp png_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 Dpngrutil.c558 int bit_depth, color_type, compression_type, filter_type; local
578 color_type = buf[9];
588 png_ptr->color_type = (png_byte)color_type;
595 switch (png_ptr->color_type)
624 color_type, interlace_type, compression_type, filter_type);
654 if (!(png_ptr->color_type&PNG_COLOR_MASK_COLOR))
663 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
672 if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE)
716 if (png_ptr->color_type
[all...]
H A Dpngtest.c223 * png_byte color_type color type of pixels
229 /* Counts the number of zero samples (or zero pixels if color_type is 3 */
231 if (row_info->color_type == 0 || row_info->color_type == 3)
291 if (row_info->color_type > 3)color_channels--;
309 if (row_info->color_type > 3)
809 int bit_depth, color_type; local
1008 &color_type, &interlace_type, &compression_type, &filter_type))
1012 color_type, interlace_type, compression_type, filter_type);
1014 color_type, PNG_INTERLACE_NON
[all...]
H A Dpngwutil.c680 int bit_depth, int color_type, int compression_type, int filter_type,
690 switch (color_type)
771 * 5. The color_type is RGB or RGBA
777 (color_type == PNG_COLOR_TYPE_RGB ||
778 color_type == PNG_COLOR_TYPE_RGB_ALPHA) &&
800 png_ptr->color_type = (png_byte)color_type;
820 buf[9] = (png_byte)color_type;
835 if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE ||
916 if (png_ptr->color_type
679 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
1277 png_write_sBIT(png_structp png_ptr, png_const_color_8p sbit, int color_type) argument
1373 png_write_tRNS(png_structp png_ptr, png_const_bytep trans_alpha, png_const_color_16p tran, int num_trans, int color_type) argument
1438 png_write_bKGD(png_structp png_ptr, png_const_color_16p back, int color_type) argument
[all...]
H A Dpng.h738 /* These describe the color_type field in png_info. */
834 png_byte color_type; /* color type of row */ member in struct:png_row_info_struct
2016 /* Returns image color_type. */
2131 png_uint_32 *width, png_uint_32 *height, int *bit_depth, int *color_type,
2136 png_uint_32 width, png_uint_32 height, int bit_depth, int color_type,
/openjdk7/jdk/src/solaris/native/sun/awt/
H A Dgtk2_interface.c2040 GtkStateType state_type, ColorType color_type)
2050 switch (color_type)
2039 gtk2_get_color_for_state(JNIEnv *env, WidgetType widget_type, GtkStateType state_type, ColorType color_type) argument

Completed in 75 milliseconds