HomeSort by relevance Sort by last modified time
    Searched refs:bit_depth (Results 1 - 25 of 37) sorted by null

1 2

  /external/libpng/
pngwtran.c 40 /* png_byte bit_depth; bit depth of samples */
57 (png_uint_32)png_ptr->bit_depth);
87 /* Pack pixels into bytes. Pass the true bit depth in bit_depth. The
92 png_do_pack(png_row_infop row_info, png_bytep row, png_uint_32 bit_depth)
96 if (row_info->bit_depth == 8 &&
102 switch ((int)bit_depth)
202 row_info->bit_depth = (png_byte)bit_depth;
203 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels);
212 * true number of bits in bit_depth. The row should be packe
    [all...]
pngrtran.c 818 switch (png_ptr->bit_depth)
    [all...]
pngtrans.c 41 if (png_ptr->bit_depth == 16)
55 if (png_ptr->bit_depth < 8)
72 if (png_ptr->bit_depth < 8)
144 if (png_ptr->color_type == PNG_COLOR_TYPE_GRAY && png_ptr->bit_depth >= 8)
210 * if (row_info->bit_depth == 1 &&
229 row_info->bit_depth == 8)
242 row_info->bit_depth == 16)
269 row_info->bit_depth == 16)
401 row_info->bit_depth < 8)
407 if (row_info->bit_depth == 1
    [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,
208 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
634 * bit_depth is one of 1, 2, 4, 8, or 16, but valid values also depend on
641 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth, PNG_COLOR_TYPE_???,
pngtest.c 213 * png_byte bit_depth bit depth of samples
226 if (row_info->bit_depth == 1)
236 if (row_info->bit_depth == 2)
246 if (row_info->bit_depth == 4)
256 if (row_info->bit_depth == 8)
259 if (row_info->bit_depth == 16)
278 if (row_info->bit_depth == 8)
281 if (row_info->bit_depth == 16)
291 if (row_info->bit_depth == 16)
706 int bit_depth, color_type local
    [all...]
png.c 961 png_uint_32 width, png_uint_32 height, int bit_depth,
1021 if (bit_depth != 1 && bit_depth != 2 && bit_depth != 4 &&
1022 bit_depth != 8 && bit_depth != 16)
1035 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) ||
1038 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8))
pngwutil.c 393 int bit_depth, int color_type, int compression_type, int filter_type,
409 switch (bit_depth)
421 if (bit_depth != 8 && bit_depth != 16)
426 switch (bit_depth)
436 if (bit_depth != 8 && bit_depth != 16)
441 if (bit_depth != 8 && bit_depth != 16)
490 png_ptr->bit_depth = (png_byte)bit_depth
    [all...]
pngget.c 76 return info_ptr->bit_depth;
578 png_uint_32 *width, png_uint_32 *height, int *bit_depth,
586 height == NULL || bit_depth == NULL || color_type == NULL)
591 *bit_depth = info_ptr->bit_depth;
609 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type,
pngset.c 228 png_uint_32 width, png_uint_32 height, int bit_depth,
239 info_ptr->bit_depth = (png_byte)bit_depth;
246 info_ptr->bit_depth, info_ptr->color_type, info_ptr->interlace_type,
257 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * info_ptr->bit_depth);
863 int sample_max = (1 << info_ptr->bit_depth);
871 "tRNS chunk has out-of-range samples for bit_depth");
    [all...]
  /external/qemu/distrib/libpng-1.2.19/
pngwtran.c 35 /* 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)
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. The row should be packe
    [all...]
pngrtran.c 771 switch (png_ptr->bit_depth)
    [all...]
pngtrans.c 33 if (png_ptr->bit_depth == 16)
45 if (png_ptr->bit_depth < 8)
60 if (png_ptr->bit_depth < 8)
123 if (png_ptr->color_type == PNG_COLOR_TYPE_GRAY && png_ptr->bit_depth >= 8)
180 * if (row_info->bit_depth == 1 &&
199 row_info->bit_depth == 8)
212 row_info->bit_depth == 16)
238 row_info->bit_depth == 16)
369 row_info->bit_depth < 8)
375 if (row_info->bit_depth == 1
    [all...]
pngset.c 261 png_uint_32 width, png_uint_32 height, int bit_depth,
290 if (bit_depth != 1 && bit_depth != 2 && bit_depth != 4 &&
291 bit_depth != 8 && bit_depth != 16)
298 if (((color_type == PNG_COLOR_TYPE_PALETTE) && bit_depth > 8) ||
301 color_type == PNG_COLOR_TYPE_RGB_ALPHA) && bit_depth < 8))
340 info_ptr->bit_depth = (png_byte)bit_depth;
    [all...]
pngwutil.c 377 int bit_depth, int color_type, int compression_type, int filter_type,
390 switch (bit_depth)
401 if (bit_depth != 8 && bit_depth != 16)
406 switch (bit_depth)
416 if (bit_depth != 8 && bit_depth != 16)
421 if (bit_depth != 8 && bit_depth != 16)
470 png_ptr->bit_depth = (png_byte)bit_depth
    [all...]
pngget.c 72 return info_ptr->bit_depth;
540 png_uint_32 *width, png_uint_32 *height, int *bit_depth,
546 bit_depth != NULL && color_type != NULL)
551 *bit_depth = info_ptr->bit_depth;
552 if (info_ptr->bit_depth < 1 || info_ptr->bit_depth > 16)
png.h 706 png_byte bit_depth; /* 1, 2, 4, 8, or 16 bits/channel (from IHDR) */ member in struct:png_info_struct
1043 png_byte bit_depth; \/* bit depth of row *\/ member in struct:png_row_info_struct
1190 png_byte bit_depth; \/* bit depth of file *\/ member in struct:png_struct_def
    [all...]
  /external/libpng/contrib/pngminus/
pnm2png.c 203 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 = 4
    [all...]
png2pnm.c 200 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 == 16)
    [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,
181 if (bit_depth == 16) {
185 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
186 if (bit_depth == 1)
188 else if (bit_depth == 2)
190 else /* bit_depth == 4 */
228 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
232 if (bit_depth == 16
    [all...]
readppm.c 68 int bit_depth, color_type, channels; variable
119 bit_depth = 8;
readpng2.c 381 int color_type, bit_depth; local
418 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
439 if (bit_depth == 16) {
443 } else if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
444 if (bit_depth == 1)
447 else if (bit_depth == 2)
450 else /* bit_depth == 4 */
468 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
472 if (bit_depth == 16)
  /bootable/recovery/minui/
resources.c 98 int bit_depth = info_ptr->bit_depth; local
100 if (!(bit_depth == 8 &&
  /frameworks/base/tools/aapt/
Images.cpp 69 int bit_depth, interlace_type, compression_type; local
75 &outImageInfo->height, &bit_depth, &color_type,
79 //printf("color_type=%d, bit_depth=%d, interlace_type=%d, compression_type=%d\n",
80 // color_type, bit_depth, interlace_type, compression_type);
85 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
93 if (bit_depth == 16)
124 bit_depth, color_type,
128 &outImageInfo->height, &bit_depth, &color_type,
845 int bit_depth, interlace_type, compression_type; local
959 &bit_depth, &color_type, &interlace_type
    [all...]
  /external/skia/src/images/
SkImageDecoder_libpng.cpp 189 int bit_depth, color_type, interlace_type; local
190 png_get_IHDR(png_ptr, info_ptr, &origWidth, &origHeight, &bit_depth, &color_type,
194 if (bit_depth == 16) {
199 if (bit_depth < 8) {
203 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
258 if (16 == bit_depth) {
266 if (16 == bit_depth) {
797 * bit_depth is one of 1, 2, 4, 8, or 16, but valid values also depend on
  /development/tools/etc1tool/
etc1tool.cpp 195 int bit_depth, color_type; local
196 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth,

Completed in 377 milliseconds

1 2