Searched refs:pixel_depth (Results 1 - 25 of 25) sorted by relevance

/external/libpng/
H A Dpnginfo.h76 png_byte pixel_depth; /* number of bits per pixel */ member in struct:png_info_def
H A Dpngpread.c265 (uInt) PNG_ROWBYTES(png_ptr->pixel_depth,
652 png_ptr->zstream.avail_out = (uInt)(PNG_ROWBYTES(png_ptr->pixel_depth,
737 row_info.pixel_depth = png_ptr->pixel_depth;
738 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width);
764 png_ptr->transformed_pixel_depth = row_info.pixel_depth;
765 if (row_info.pixel_depth > png_ptr->maximum_pixel_depth)
769 else if (png_ptr->transformed_pixel_depth != row_info.pixel_depth)
H A Dpngrtran.c2111 info_ptr->pixel_depth = (png_byte)(info_ptr->channels *
2114 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width);
2223 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
2425 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
2453 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
2690 row_info->pixel_depth = 16;
2705 row_info->pixel_depth = 16;
2728 row_info->pixel_depth = 32;
2745 row_info->pixel_depth = 32;
2769 row_info->pixel_depth
[all...]
H A Dpngrutil.c892 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * png_ptr->channels);
893 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width);
3059 unsigned int pixel_depth = png_ptr->transformed_pixel_depth; local
3072 if (pixel_depth == 0)
3080 PNG_ROWBYTES(pixel_depth, row_width))
3091 end_mask = (pixel_depth * row_width) & 7;
3095 end_ptr = dp + PNG_ROWBYTES(pixel_depth, row_width) - 1;
3127 if (pixel_depth < 8)
3258 png_uint_32 pixels_per_byte = 8 / pixel_depth;
3263 mask = MASK(pass, pixel_depth, displa
[all...]
H A Dpngtrans.c522 row_info->pixel_depth = 8;
535 row_info->pixel_depth = 16;
562 row_info->pixel_depth = 24;
580 row_info->pixel_depth = 48;
691 * an 'int' because pixel_depth becomes an 'int' in the expression below,
695 int padding = (-row_info->pixel_depth * row_info->width) & 7;
H A Dpngwtran.c156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels);
157 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,
521 /* png_byte pixel_depth; bits per pixel (depth*channels) */
H A Dpngwutil.c220 unsigned int pd = png_ptr->pixel_depth;
801 png_ptr->pixel_depth = (png_byte)(bit_depth * png_ptr->channels);
802 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, width);
1893 png_ptr->transformed_pixel_depth = png_ptr->pixel_depth;
2084 switch (row_info->pixel_depth)
2209 pixel_bytes = (row_info->pixel_depth >> 3);
2234 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,
2410 bpp = (row_info->pixel_depth + 7) >> 3;
H A Dpngstruct.h256 png_byte pixel_depth; /* number of bits per pixel */ member in struct:png_struct_def
H A Dpngwrite.c820 row_info.pixel_depth = (png_byte)(row_info.bit_depth * row_info.channels);
821 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width);
827 png_debug1(3, "row_info->pixel_depth = %d", row_info.pixel_depth);
857 if (row_info.pixel_depth != png_ptr->pixel_depth ||
858 row_info.pixel_depth != png_ptr->transformed_pixel_depth)
H A Dpngread.c396 row_info.pixel_depth = png_ptr->pixel_depth;
397 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width);
569 png_ptr->transformed_pixel_depth = row_info.pixel_depth;
570 if (row_info.pixel_depth > png_ptr->maximum_pixel_depth)
574 else if (png_ptr->transformed_pixel_depth != row_info.pixel_depth)
H A Dpngset.c241 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * info_ptr->bit_depth);
243 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, width);
H A Dpng.h796 png_byte pixel_depth; /* bits per pixel (depth * channels) */ member in struct:png_row_info_struct
/external/pdfium/third_party/lpng_v163/
H A Dpnginfo.h77 png_byte pixel_depth; /* number of bits per pixel */ member in struct:png_info_def
H A Dpngpread.c305 (uInt) PNG_ROWBYTES(png_ptr->pixel_depth,
858 png_ptr->zstream.avail_out = (uInt)(PNG_ROWBYTES(png_ptr->pixel_depth,
943 row_info.pixel_depth = png_ptr->pixel_depth;
944 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width);
970 png_ptr->transformed_pixel_depth = row_info.pixel_depth;
971 if (row_info.pixel_depth > png_ptr->maximum_pixel_depth)
975 else if (png_ptr->transformed_pixel_depth != row_info.pixel_depth)
H A Dpngrtran.c2096 info_ptr->pixel_depth = (png_byte)(info_ptr->channels *
2099 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width);
2395 /* png_byte pixel_depth; bits per pixel (depth*channels) */
2404 row_info->pixel_depth = (png_byte)(row_info->bit_depth *
2407 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, row_info->width);
2505 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
2707 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
2735 row_info->pixel_depth = (png_byte)(8 * row_info->channels);
2972 row_info->pixel_depth = 16;
2987 row_info->pixel_depth
[all...]
H A Dpngrutil.c857 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth *
859 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width);
2999 unsigned int pixel_depth = png_ptr->transformed_pixel_depth; local
3012 if (pixel_depth == 0)
3020 PNG_ROWBYTES(pixel_depth, row_width))
3031 end_mask = (pixel_depth * row_width) & 7;
3035 end_ptr = dp + PNG_ROWBYTES(pixel_depth, row_width) - 1;
3065 if (pixel_depth < 8)
3196 png_uint_32 pixels_per_byte = 8 / pixel_depth;
3201 mask = MASK(pass, pixel_depth, displa
[all...]
H A Dpngtrans.c512 row_info->pixel_depth = 8;
525 row_info->pixel_depth = 16;
552 row_info->pixel_depth = 24;
570 row_info->pixel_depth = 48;
681 * an 'int' because pixel_depth becomes an 'int' in the expression below,
685 int padding = (-row_info->pixel_depth * row_info->width) & 7;
H A Dpngwtran.c41 /* png_byte pixel_depth; bits per pixel (depth*channels) */
229 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels);
230 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,
H A Dpngstruct.h255 png_byte pixel_depth; /* number of bits per pixel */ member in struct:png_struct_def
H A Dpngwrite.c743 row_info.pixel_depth = (png_byte)(row_info.bit_depth * row_info.channels);
744 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width);
750 png_debug1(3, "row_info->pixel_depth = %d", row_info.pixel_depth);
780 if (row_info.pixel_depth != png_ptr->pixel_depth ||
781 row_info.pixel_depth != png_ptr->transformed_pixel_depth)
H A Dpngwutil.c219 unsigned int pd = png_ptr->pixel_depth;
881 png_ptr->pixel_depth = (png_byte)(bit_depth * png_ptr->channels);
882 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, width);
1965 png_ptr->transformed_pixel_depth = png_ptr->pixel_depth;
2151 switch (row_info->pixel_depth)
2276 pixel_bytes = (row_info->pixel_depth >> 3);
2301 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth,
2342 bpp = (row_info->pixel_depth + 7) >> 3;
H A Dpngread.c329 row_info.pixel_depth = png_ptr->pixel_depth;
330 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width);
500 png_ptr->transformed_pixel_depth = row_info.pixel_depth;
501 if (row_info.pixel_depth > png_ptr->maximum_pixel_depth)
505 else if (png_ptr->transformed_pixel_depth != row_info.pixel_depth)
H A Dpngset.c238 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * info_ptr->bit_depth);
240 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, width);
H A Dpng.h1120 png_byte pixel_depth; /* bits per pixel (depth * channels) */ member in struct:png_row_info_struct
/external/libpng/contrib/libtests/
H A Dmakepng.c215 int pixel_depth = pixel_depth_of_type(color_type, bit_depth); local
219 if (pixel_depth <= 8) /* there will be one row */
220 return 1 << pixel_depth;
226 else if (pixel_depth < 8)
229 else if (pixel_depth > 16)
401 unsigned int pixel_depth = pixel_depth_of_type(color_type, bit_depth); local
407 switch (pixel_depth)
504 assert(size_max == 255 && rowbytes == 256*(pixel_depth>>3));
505 pixel_depth >>= 3; /* now in bytes */
508 const size_t pixel_index = --rowbytes/pixel_depth;
827 const unsigned int pixel_depth = local
[all...]

Completed in 348 milliseconds