/external/libpng/contrib/libtests/ |
D | makepng.c | 215 int pixel_depth = pixel_depth_of_type(color_type, bit_depth); in image_size_of_type() local 219 if (pixel_depth <= 8) /* there will be one row */ in image_size_of_type() 220 return 1 << pixel_depth; in image_size_of_type() 226 else if (pixel_depth < 8) in image_size_of_type() 229 else if (pixel_depth > 16) in image_size_of_type() 401 unsigned int pixel_depth = pixel_depth_of_type(color_type, bit_depth); in generate_row() local 407 switch (pixel_depth) in generate_row() 504 assert(size_max == 255 && rowbytes == 256*(pixel_depth>>3)); in generate_row() 505 pixel_depth >>= 3; /* now in bytes */ in generate_row() 508 const size_t pixel_index = --rowbytes/pixel_depth; in generate_row() [all …]
|
/external/pdfium/third_party/libpng16/ |
D | pngrutil.c | 892 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * png_ptr->channels); in png_handle_IHDR() 893 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width); in png_handle_IHDR() 3059 unsigned int pixel_depth = png_ptr->transformed_pixel_depth; in png_combine_row() local 3072 if (pixel_depth == 0) in png_combine_row() 3080 PNG_ROWBYTES(pixel_depth, row_width)) in png_combine_row() 3091 end_mask = (pixel_depth * row_width) & 7; in png_combine_row() 3095 end_ptr = dp + PNG_ROWBYTES(pixel_depth, row_width) - 1; in png_combine_row() 3127 if (pixel_depth < 8) in png_combine_row() 3258 png_uint_32 pixels_per_byte = 8 / pixel_depth; in png_combine_row() 3263 mask = MASK(pass, pixel_depth, display, 0); in png_combine_row() [all …]
|
D | pngpread.c | 267 (uInt) PNG_ROWBYTES(png_ptr->pixel_depth, in png_push_read_chunk() 654 png_ptr->zstream.avail_out = (uInt)(PNG_ROWBYTES(png_ptr->pixel_depth, in png_process_IDAT_data() 739 row_info.pixel_depth = png_ptr->pixel_depth; in png_push_process_row() 740 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_push_process_row() 766 png_ptr->transformed_pixel_depth = row_info.pixel_depth; in png_push_process_row() 767 if (row_info.pixel_depth > png_ptr->maximum_pixel_depth) in png_push_process_row() 771 else if (png_ptr->transformed_pixel_depth != row_info.pixel_depth) in png_push_process_row()
|
D | pngtrans.c | 522 row_info->pixel_depth = 8; in png_do_strip_channel() 535 row_info->pixel_depth = 16; in png_do_strip_channel() 562 row_info->pixel_depth = 24; in png_do_strip_channel() 580 row_info->pixel_depth = 48; in png_do_strip_channel() 695 int padding = (-row_info->pixel_depth * row_info->width) & 7; in png_do_check_palette_indexes()
|
D | pngrtran.c | 2111 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * in png_read_transform_info() 2114 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info() 2223 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack() 2425 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_scale_16_to_8() 2453 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_chop() 2690 row_info->pixel_depth = 16; in png_do_read_filler() 2705 row_info->pixel_depth = 16; in png_do_read_filler() 2728 row_info->pixel_depth = 32; in png_do_read_filler() 2745 row_info->pixel_depth = 32; in png_do_read_filler() 2769 row_info->pixel_depth = 32; in png_do_read_filler() [all …]
|
D | pnginfo.h | 76 png_byte pixel_depth; /* number of bits per pixel */ member
|
D | pngwtran.c | 156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack() 157 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_pack()
|
D | pngwutil.c | 220 unsigned int pd = png_ptr->pixel_depth; in png_image_size() 801 png_ptr->pixel_depth = (png_byte)(bit_depth * png_ptr->channels); in png_write_IHDR() 802 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, width); in png_write_IHDR() 1893 png_ptr->transformed_pixel_depth = png_ptr->pixel_depth; in png_write_start_row() 2084 switch (row_info->pixel_depth) in png_do_write_interlace() 2209 pixel_bytes = (row_info->pixel_depth >> 3); in png_do_write_interlace() 2234 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_write_interlace() 2510 bpp = (row_info->pixel_depth + 7) >> 3; in png_write_find_filter()
|
/external/skia/third_party/libpng/ |
D | pngrutil.c | 892 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * png_ptr->channels); in png_handle_IHDR() 893 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width); in png_handle_IHDR() 3059 unsigned int pixel_depth = png_ptr->transformed_pixel_depth; in png_combine_row() local 3072 if (pixel_depth == 0) in png_combine_row() 3080 PNG_ROWBYTES(pixel_depth, row_width)) in png_combine_row() 3091 end_mask = (pixel_depth * row_width) & 7; in png_combine_row() 3095 end_ptr = dp + PNG_ROWBYTES(pixel_depth, row_width) - 1; in png_combine_row() 3127 if (pixel_depth < 8) in png_combine_row() 3258 png_uint_32 pixels_per_byte = 8 / pixel_depth; in png_combine_row() 3263 mask = MASK(pass, pixel_depth, display, 0); in png_combine_row() [all …]
|
D | pngpread.c | 265 (uInt) PNG_ROWBYTES(png_ptr->pixel_depth, in png_push_read_chunk() 663 png_ptr->zstream.avail_out = (uInt)(PNG_ROWBYTES(png_ptr->pixel_depth, in png_process_IDAT_data() 748 row_info.pixel_depth = png_ptr->pixel_depth; in png_push_process_row() 749 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_push_process_row() 775 png_ptr->transformed_pixel_depth = row_info.pixel_depth; in png_push_process_row() 776 if (row_info.pixel_depth > png_ptr->maximum_pixel_depth) in png_push_process_row() 780 else if (png_ptr->transformed_pixel_depth != row_info.pixel_depth) in png_push_process_row()
|
D | pngtrans.c | 522 row_info->pixel_depth = 8; in png_do_strip_channel() 535 row_info->pixel_depth = 16; in png_do_strip_channel() 562 row_info->pixel_depth = 24; in png_do_strip_channel() 580 row_info->pixel_depth = 48; in png_do_strip_channel() 695 int padding = (-row_info->pixel_depth * row_info->width) & 7; in png_do_check_palette_indexes()
|
D | pngrtran.c | 2111 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * in png_read_transform_info() 2114 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info() 2223 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack() 2425 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_scale_16_to_8() 2453 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_chop() 2690 row_info->pixel_depth = 16; in png_do_read_filler() 2705 row_info->pixel_depth = 16; in png_do_read_filler() 2728 row_info->pixel_depth = 32; in png_do_read_filler() 2745 row_info->pixel_depth = 32; in png_do_read_filler() 2769 row_info->pixel_depth = 32; in png_do_read_filler() [all …]
|
D | pnginfo.h | 76 png_byte pixel_depth; /* number of bits per pixel */ member
|
D | pngwutil.c | 220 unsigned int pd = png_ptr->pixel_depth; in png_image_size() 801 png_ptr->pixel_depth = (png_byte)(bit_depth * png_ptr->channels); in png_write_IHDR() 802 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, width); in png_write_IHDR() 1893 png_ptr->transformed_pixel_depth = png_ptr->pixel_depth; in png_write_start_row() 2084 switch (row_info->pixel_depth) in png_do_write_interlace() 2209 pixel_bytes = (row_info->pixel_depth >> 3); in png_do_write_interlace() 2234 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_write_interlace() 2410 bpp = (row_info->pixel_depth + 7) >> 3; in png_write_find_filter()
|
D | pngwtran.c | 156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack() 157 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_pack()
|
/external/libpng/ |
D | pngrutil.c | 894 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * png_ptr->channels); in png_handle_IHDR() 895 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width); in png_handle_IHDR() 3061 unsigned int pixel_depth = png_ptr->transformed_pixel_depth; in png_combine_row() local 3074 if (pixel_depth == 0) in png_combine_row() 3082 PNG_ROWBYTES(pixel_depth, row_width)) in png_combine_row() 3093 end_mask = (pixel_depth * row_width) & 7; in png_combine_row() 3097 end_ptr = dp + PNG_ROWBYTES(pixel_depth, row_width) - 1; in png_combine_row() 3129 if (pixel_depth < 8) in png_combine_row() 3260 png_uint_32 pixels_per_byte = 8 / pixel_depth; in png_combine_row() 3265 mask = MASK(pass, pixel_depth, display, 0); in png_combine_row() [all …]
|
D | pngpread.c | 267 (uInt) PNG_ROWBYTES(png_ptr->pixel_depth, in png_push_read_chunk() 657 png_ptr->zstream.avail_out = (uInt)(PNG_ROWBYTES(png_ptr->pixel_depth, in png_process_IDAT_data() 747 row_info.pixel_depth = png_ptr->pixel_depth; in png_push_process_row() 748 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_push_process_row() 774 png_ptr->transformed_pixel_depth = row_info.pixel_depth; in png_push_process_row() 775 if (row_info.pixel_depth > png_ptr->maximum_pixel_depth) in png_push_process_row() 779 else if (png_ptr->transformed_pixel_depth != row_info.pixel_depth) in png_push_process_row()
|
D | pngtrans.c | 523 row_info->pixel_depth = 8; in png_do_strip_channel() 536 row_info->pixel_depth = 16; in png_do_strip_channel() 563 row_info->pixel_depth = 24; in png_do_strip_channel() 581 row_info->pixel_depth = 48; in png_do_strip_channel() 696 int padding = (-row_info->pixel_depth * row_info->width) & 7; in png_do_check_palette_indexes()
|
D | pngrtran.c | 2111 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * in png_read_transform_info() 2114 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info() 2223 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack() 2425 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_scale_16_to_8() 2453 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_chop() 2690 row_info->pixel_depth = 16; in png_do_read_filler() 2705 row_info->pixel_depth = 16; in png_do_read_filler() 2728 row_info->pixel_depth = 32; in png_do_read_filler() 2745 row_info->pixel_depth = 32; in png_do_read_filler() 2769 row_info->pixel_depth = 32; in png_do_read_filler() [all …]
|
D | pnginfo.h | 76 png_byte pixel_depth; /* number of bits per pixel */ member
|
D | pngwtran.c | 156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack() 157 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_pack()
|
D | pngwutil.c | 220 unsigned int pd = png_ptr->pixel_depth; in png_image_size() 801 png_ptr->pixel_depth = (png_byte)(bit_depth * png_ptr->channels); in png_write_IHDR() 802 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, width); in png_write_IHDR() 1894 png_ptr->transformed_pixel_depth = png_ptr->pixel_depth; in png_write_start_row() 2085 switch (row_info->pixel_depth) in png_do_write_interlace() 2210 pixel_bytes = (row_info->pixel_depth >> 3); in png_do_write_interlace() 2235 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_write_interlace() 2539 bpp = (row_info->pixel_depth + 7) >> 3; in png_write_find_filter()
|
/external/syslinux/com32/lib/libpng/ |
D | pngrtran.c | 1315 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * in png_read_transform_info() 1318 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info() 1565 png_ptr->row_info.pixel_depth = (png_byte)(png_ptr->row_info.bit_depth * in png_do_read_transformations() 1567 png_ptr->row_info.rowbytes = PNG_ROWBYTES(png_ptr->row_info.pixel_depth, in png_do_read_transformations() 1662 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack() 1835 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_chop() 2067 row_info->pixel_depth = 16; in png_do_read_filler() 2081 row_info->pixel_depth = 16; in png_do_read_filler() 2102 row_info->pixel_depth = 32; in png_do_read_filler() 2118 row_info->pixel_depth = 32; in png_do_read_filler() [all …]
|
D | pngtrans.c | 469 row_info->pixel_depth = 24; in png_do_strip_filler() 515 row_info->pixel_depth = 48; in png_do_strip_filler() 545 row_info->pixel_depth = 8; in png_do_strip_filler() 571 row_info->pixel_depth = 16; in png_do_strip_filler()
|
D | pngrutil.c | 496 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * in png_handle_IHDR() 498 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width); in png_handle_IHDR() 2505 PNG_ROWBYTES(png_ptr->row_info.pixel_depth, png_ptr->width)); in png_combine_row() 2509 switch (png_ptr->row_info.pixel_depth) in png_combine_row() 2672 png_size_t pixel_bytes = (png_ptr->row_info.pixel_depth >> 3); in png_combine_row() 2722 switch (row_info->pixel_depth) in png_do_read_interlace() 2892 png_size_t pixel_bytes = (row_info->pixel_depth >> 3); in png_do_read_interlace() 2917 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, final_width); in png_do_read_interlace() 2939 png_uint_32 bpp = (row_info->pixel_depth + 7) >> 3; in png_read_filter_row() 2970 png_uint_32 bpp = (row_info->pixel_depth + 7) >> 3; in png_read_filter_row() [all …]
|