Home
last modified time | relevance | path

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

12

/external/libpng/contrib/libtests/
Dmakepng.c215 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/
Dpngrutil.c892 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 …]
Dpngpread.c267 (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()
Dpngrtran.c2111 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 …]
Dpngtrans.c522 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()
Dpnginfo.h76 png_byte pixel_depth; /* number of bits per pixel */ member
Dpngwtran.c156 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()
Dpngwutil.c220 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()
Dpngwrite.c820 row_info.pixel_depth = (png_byte)(row_info.bit_depth * row_info.channels); in png_write_row()
821 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_write_row()
827 png_debug1(3, "row_info->pixel_depth = %d", row_info.pixel_depth); in png_write_row()
857 if (row_info.pixel_depth != png_ptr->pixel_depth || in png_write_row()
858 row_info.pixel_depth != png_ptr->transformed_pixel_depth) in png_write_row()
Dpngstruct.h256 png_byte pixel_depth; /* number of bits per pixel */ member
/external/libpng/
Dpngrutil.c902 png_ptr->pixel_depth = (png_byte)(png_ptr->bit_depth * png_ptr->channels); in png_handle_IHDR()
903 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, png_ptr->width); in png_handle_IHDR()
3182 unsigned int pixel_depth = png_ptr->transformed_pixel_depth; in png_combine_row() local
3195 if (pixel_depth == 0) in png_combine_row()
3203 PNG_ROWBYTES(pixel_depth, row_width)) in png_combine_row()
3214 end_mask = (pixel_depth * row_width) & 7; in png_combine_row()
3218 end_ptr = dp + PNG_ROWBYTES(pixel_depth, row_width) - 1; in png_combine_row()
3250 if (pixel_depth < 8) in png_combine_row()
3381 png_uint_32 pixels_per_byte = 8 / pixel_depth; in png_combine_row()
3386 mask = MASK(pass, pixel_depth, display, 0); in png_combine_row()
[all …]
Dpngpread.c268 (uInt) PNG_ROWBYTES(png_ptr->pixel_depth, in png_push_read_chunk()
658 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()
Dpngrtran.c2114 info_ptr->pixel_depth = (png_byte)(info_ptr->channels * in png_read_transform_info()
2117 info_ptr->rowbytes = PNG_ROWBYTES(info_ptr->pixel_depth, info_ptr->width); in png_read_transform_info()
2226 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack()
2428 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_scale_16_to_8()
2456 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_chop()
2693 row_info->pixel_depth = 16; in png_do_read_filler()
2708 row_info->pixel_depth = 16; in png_do_read_filler()
2731 row_info->pixel_depth = 32; in png_do_read_filler()
2748 row_info->pixel_depth = 32; in png_do_read_filler()
2772 row_info->pixel_depth = 32; in png_do_read_filler()
[all …]
Dpngtrans.c527 row_info->pixel_depth = 8; in png_do_strip_channel()
544 row_info->pixel_depth = 16; in png_do_strip_channel()
575 row_info->pixel_depth = 24; in png_do_strip_channel()
595 row_info->pixel_depth = 48; in png_do_strip_channel()
710 int padding = PNG_PADBITS(row_info->pixel_depth, row_info->width); in png_do_check_palette_indexes()
Dpnginfo.h76 png_byte pixel_depth; /* number of bits per pixel */ member
Dpngwtran.c156 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()
Dpngwutil.c220 unsigned int pd = png_ptr->pixel_depth; in png_image_size()
806 png_ptr->pixel_depth = (png_byte)(bit_depth * png_ptr->channels); in png_write_IHDR()
807 png_ptr->rowbytes = PNG_ROWBYTES(png_ptr->pixel_depth, width); in png_write_IHDR()
1923 png_ptr->transformed_pixel_depth = png_ptr->pixel_depth; in png_write_start_row()
2114 switch (row_info->pixel_depth) in png_do_write_interlace()
2239 pixel_bytes = (row_info->pixel_depth >> 3); in png_do_write_interlace()
2264 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_write_interlace()
2568 bpp = (row_info->pixel_depth + 7) >> 3; in png_write_find_filter()
Dpngwrite.c831 row_info.pixel_depth = (png_byte)(row_info.bit_depth * row_info.channels); in png_write_row()
832 row_info.rowbytes = PNG_ROWBYTES(row_info.pixel_depth, row_info.width); in png_write_row()
838 png_debug1(3, "row_info->pixel_depth = %d", row_info.pixel_depth); in png_write_row()
868 if (row_info.pixel_depth != png_ptr->pixel_depth || in png_write_row()
869 row_info.pixel_depth != png_ptr->transformed_pixel_depth) in png_write_row()
Dpngstruct.h256 png_byte pixel_depth; /* number of bits per pixel */ member
/external/syslinux/com32/lib/libpng/
Dpngrtran.c1315 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 …]
Dpngtrans.c469 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()
Dpngrutil.c496 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 …]
Dpngpread.c335 (uInt) PNG_ROWBYTES(png_ptr->pixel_depth, in png_push_read_chunk()
862 (uInt) PNG_ROWBYTES(png_ptr->pixel_depth, in png_process_IDAT_data()
939 png_ptr->row_info.pixel_depth = png_ptr->pixel_depth; in png_push_process_row()
941 png_ptr->row_info.rowbytes = PNG_ROWBYTES(png_ptr->row_info.pixel_depth, in png_push_process_row()
Dpngwtran.c203 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack()
204 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_pack()
Dpngread.c731 (uInt)(PNG_ROWBYTES(png_ptr->pixel_depth, in png_read_row()
773 png_ptr->row_info.pixel_depth = png_ptr->pixel_depth; in png_read_row()
774 png_ptr->row_info.rowbytes = PNG_ROWBYTES(png_ptr->row_info.pixel_depth, in png_read_row()

12