Searched defs:bit_depth (Results 1 - 12 of 12) 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 Dpngwtran.c68 /* png_byte bit_depth; bit depth of samples */
88 (png_uint_32)png_ptr->bit_depth);
124 /* Pack pixels into bytes. Pass the true bit depth in bit_depth. The
129 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) argument
133 if (row_info->bit_depth == 8 &&
136 switch ((int)bit_depth)
257 row_info->bit_depth = (png_byte)bit_depth;
258 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels);
267 * true number of bits in bit_depth
274 png_do_shift(png_row_infop row_info, png_bytep row, png_const_color_8p bit_depth) argument
[all...]
H A Dpnginfo.h94 png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */ member in struct:png_info_def
150 * in the pixel data. Values are in the range [1, bit_depth], and are
234 * The integer range [0, 2^bit_depth - 1] maps to the floating-point
H A Dpngget.c101 return info_ptr->bit_depth;
669 png_uint_32 *width, png_uint_32 *height, int *bit_depth,
677 height == NULL || bit_depth == NULL || color_type == NULL)
682 *bit_depth = info_ptr->bit_depth;
700 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type,
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.c198 png_uint_32 width, png_uint_32 height, int bit_depth,
209 info_ptr->bit_depth = (png_byte)bit_depth;
216 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type,
231 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * info_ptr->bit_depth);
880 int sample_max = (1 << info_ptr->bit_depth);
889 "tRNS chunk has out-of-range samples for bit_depth");
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
H A Dpngstruct.h156 png_byte bit_depth; /* bit depth of file */ member in struct:png_struct_def
H A Dpng.c831 png_uint_32 width, png_uint_32 height, int bit_depth,
892 if (bit_depth != 1 && bit_depth != 2 && bit_depth != 4 &&
893 bit_depth != 8 && bit_depth != 16)
906 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) ||
909 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8))
2142 /* This does the right thing based on the bit_depth field of the
2151 if (png_ptr->bit_depth
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
2331 png_build_gamma_table(png_structp png_ptr, int bit_depth) argument
[all...]
H A Dpngrtran.c1224 switch (png_ptr->bit_depth)
1479 png_ptr->bit_depth != 16)
1542 png_build_gamma_table(png_ptr, png_ptr->bit_depth);
1863 info_ptr->bit_depth = 8;
1873 if (info_ptr->bit_depth < 8)
1874 info_ptr->bit_depth = 8;
1899 if (info_ptr->bit_depth == 16)
1904 info_ptr->bit_depth = 8;
1909 info_ptr->bit_depth = 8;
1923 info_ptr->bit_depth
3378 png_build_grayscale_palette(int bit_depth, png_colorp palette) argument
[all...]
H A Dpngrutil.c558 int bit_depth, color_type, compression_type, filter_type; local
577 bit_depth = buf[8];
586 png_ptr->bit_depth = (png_byte)bit_depth;
617 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth *
620 png_debug1(3, "bit_depth = %d", png_ptr->bit_depth);
623 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth,
3490 if ((png_ptr->transformations & PNG_PACK) && png_ptr->bit_depth < 8)
3535 if (png_ptr->bit_depth < 1
[all...]
H A Dpngtest.c224 * png_byte bit_depth bit depth of samples
238 if (row_info->bit_depth == 1)
250 if (row_info->bit_depth == 2)
262 if (row_info->bit_depth == 4)
274 if (row_info->bit_depth == 8)
278 if (row_info->bit_depth == 16)
297 if (row_info->bit_depth == 8)
301 if (row_info->bit_depth == 16)
312 if (row_info->bit_depth == 16)
809 int bit_depth, color_typ local
[all...]
H A Dpngwutil.c680 int bit_depth, int color_type, int compression_type, int filter_type,
693 switch (bit_depth)
712 if (bit_depth != 8 && bit_depth != 16)
714 if (bit_depth != 8)
722 switch (bit_depth)
737 if (bit_depth != 8 && bit_depth != 16)
745 if (bit_depth != 8 && bit_depth !
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
[all...]
H A Dpng.h835 png_byte bit_depth; /* bit depth of row */ member in struct:png_row_info_struct
1158 PNG_EXPORT(35, void, png_build_grayscale_palette, (int bit_depth,
2012 /* Returns image bit_depth. */
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,

Completed in 77 milliseconds