Searched refs:bit_depth (Results 1 - 17 of 17) sorted by relevance

/vbox/src/libs/libpng-1.2.8/
H A Dpngwtran.c35 /* png_byte bit_depth; bit depth of samples */
52 (png_uint_32)png_ptr->bit_depth);
82 /* Pack pixels into bytes. Pass the true bit depth in bit_depth. The
87 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth) argument
90 if (row_info->bit_depth == 8 &&
96 switch ((int)bit_depth)
196 row_info->bit_depth = (png_byte)bit_depth;
197 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels);
206 * true number of bits in bit_depth
213 png_do_shift(png_row_infop row_info, png_bytep row, png_color_8p bit_depth) argument
[all...]
H A Dpngrtran.c709 switch (png_ptr->bit_depth)
891 double m = (double)(((png_uint_32)1 << png_ptr->bit_depth) - 1);
1049 info_ptr->bit_depth = 8;
1056 if (info_ptr->bit_depth < 8)
1057 info_ptr->bit_depth = 8;
1085 if ((png_ptr->transformations & PNG_16_TO_8) && (info_ptr->bit_depth == 16))
1086 info_ptr->bit_depth = 8;
1094 png_ptr->palette_lookup && info_ptr->bit_depth == 8)
1102 if ((png_ptr->transformations & PNG_PACK) && (info_ptr->bit_depth < 8))
1103 info_ptr->bit_depth
2363 png_build_grayscale_palette(int bit_depth, png_colorp palette) argument
[all...]
H A Dpngtrans.c30 if (png_ptr->bit_depth == 16)
41 if (png_ptr->bit_depth < 8)
55 if (png_ptr->bit_depth < 8)
116 if (png_ptr->color_type == PNG_COLOR_TYPE_GRAY && png_ptr->bit_depth >= 8)
169 * if (row_info->bit_depth == 1 &&
188 row_info->bit_depth == 8)
201 row_info->bit_depth == 16)
227 row_info->bit_depth == 16)
358 row_info->bit_depth < 8)
364 if (row_info->bit_depth
[all...]
H A Dexample.c83 int bit_depth, color_type, interlace_type;
94 int bit_depth, color_type, interlace_type;
169 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
200 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
622 * bit_depth is one of 1, 2, 4, 8, or 16, but valid values also depend on
629 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth, PNG_COLOR_TYPE_???,
H A Dpngset.c246 png_uint_32 width, png_uint_32 height, int bit_depth,
275 if (bit_depth != 1 && bit_depth != 2 && bit_depth != 4 &&
276 bit_depth != 8 && bit_depth != 16)
283 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) ||
286 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8))
325 info_ptr->bit_depth = (png_byte)bit_depth;
245 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.c207 * png_byte bit_depth bit depth of samples
221 if(row_info->bit_depth == 1)
230 if(row_info->bit_depth == 2)
239 if(row_info->bit_depth == 4)
248 if(row_info->bit_depth == 8)
250 if(row_info->bit_depth == 16)
268 if(row_info->bit_depth == 8)
270 if(row_info->bit_depth == 16)
279 if(row_info->bit_depth == 16)dp++;
618 int bit_depth, color_typ local
[all...]
H A Dpngwutil.c372 int bit_depth, int color_type, int compression_type, int filter_type,
385 switch (bit_depth)
396 if (bit_depth != 8 && bit_depth != 16)
401 switch (bit_depth)
411 if (bit_depth != 8 && bit_depth != 16)
416 if (bit_depth != 8 && bit_depth != 16)
465 png_ptr->bit_depth
371 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 Dpngget.c70 return info_ptr->bit_depth;
535 png_uint_32 *width, png_uint_32 *height, int *bit_depth,
541 bit_depth != NULL && color_type != NULL)
546 *bit_depth = info_ptr->bit_depth;
547 if (info_ptr->bit_depth < 1 || info_ptr->bit_depth > 16)
534 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 Dpng.h662 png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */ member in struct:png_info_struct
718 * in the pixel data. Values are in the range [1, bit_depth], and are
804 * The integer range [0, 2^bit_depth - 1] maps to the floating-point
997 png_byte bit_depth; /* bit depth of row */ member in struct:png_row_info_struct
1144 png_byte bit_depth; /* bit depth of file */ member in struct:png_struct_def
1513 extern PNG_EXPORT(void,png_build_grayscale_palette) PNGARG((int bit_depth,
2055 /* Returns image bit_depth. */
2176 int *bit_depth, int *color_type, int *interlace_method,
2180 png_infop info_ptr, png_uint_32 width, png_uint_32 height, int bit_depth,
2936 int bit_depth, in
[all...]
H A Dpngrutil.c340 int bit_depth, color_type, compression_type, filter_type; local
359 bit_depth = buf[8];
368 png_ptr->bit_depth = (png_byte)bit_depth;
395 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth *
398 png_debug1(3,"bit_depth = %d\n", png_ptr->bit_depth);
401 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth,
2989 if ((png_ptr->transformations & PNG_PACK) && png_ptr->bit_depth < 8)
H A Dpngwrite.c41 info_ptr->bit_depth, info_ptr->color_type, info_ptr->compression_type,
840 png_ptr->row_info.bit_depth = png_ptr->usr_bit_depth;
841 png_ptr->row_info.pixel_depth = (png_byte)(png_ptr->row_info.bit_depth *
850 png_debug1(3, "row_info->bit_depth = %d\n", png_ptr->row_info.bit_depth);
H A Dpngread.c727 png_ptr->row_info.bit_depth = png_ptr->bit_depth;
1366 if ((png_ptr->bit_depth < 8) ||
H A Dpngpread.c805 png_ptr->row_info.bit_depth = png_ptr->bit_depth;
/vbox/src/libs/libpng-1.2.8/contrib/pngminus/
H A Dpnm2png.c203 int bit_depth = 0; local
223 bit_depth = 1;
236 bit_depth = 1;
238 bit_depth = 2;
240 bit_depth = 4;
242 bit_depth = 8;
244 bit_depth = 16;
257 bit_depth = 1;
259 bit_depth = 2;
261 bit_depth
[all...]
H A Dpng2pnm.c200 int bit_depth; local
247 &width, &height, &bit_depth, &color_type,
256 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
264 if (bit_depth == 16)
281 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
285 if (bit_depth == 16)
350 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L));
357 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L));
368 fprintf (alpha_file, "%ld\n", ((1L << (int) bit_depth) - 1L));
383 if (bit_depth
[all...]
/vbox/src/libs/libpng-1.2.8/contrib/gregbook/
H A Dreadpng.c48 int bit_depth, color_type; variable
110 * etc., but want bit_depth and color_type for later [don't care about
113 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
157 if (bit_depth == 16) {
161 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
162 if (bit_depth == 1)
164 else if (bit_depth == 2)
166 else /* bit_depth == 4 */
204 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
208 if (bit_depth
[all...]
H A Dreadpng2.c360 int color_type, bit_depth; local
397 &mainprog_ptr->height, &bit_depth, &color_type, NULL, NULL, NULL);
415 if (bit_depth == 16) {
419 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
420 if (bit_depth == 1)
423 else if (bit_depth == 2)
426 else /* bit_depth == 4 */
444 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
448 if (bit_depth == 16)

Completed in 711 milliseconds