Home | History | Annotate | Download | only in libpng16

Lines Matching defs:row_info

623 png_do_write_intrapixel(png_row_infop row_info, png_bytep row)
627 if ((row_info->color_type & PNG_COLOR_MASK_COLOR) != 0)
630 png_uint_32 row_width = row_info->width;
631 if (row_info->bit_depth == 8)
636 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
639 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
653 else if (row_info->bit_depth == 16)
658 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
661 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
690 png_row_info row_info;
816 row_info.color_type = png_ptr->color_type;
817 row_info.width = png_ptr->usr_width;
818 row_info.channels = png_ptr->usr_channels;
819 row_info.bit_depth = png_ptr->usr_bit_depth;
820 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);
823 png_debug1(3, "row_info->color_type = %d", row_info.color_type);
824 png_debug1(3, "row_info->width = %u", row_info.width);
825 png_debug1(3, "row_info->channels = %d", row_info.channels);
826 png_debug1(3, "row_info->bit_depth = %d", row_info.bit_depth);
827 png_debug1(3, "row_info->pixel_depth = %d", row_info.pixel_depth);
828 png_debug1(3, "row_info->rowbytes = %lu", (unsigned long)row_info.rowbytes);
831 memcpy(png_ptr->row_buf + 1, row, row_info.rowbytes);
838 png_do_write_interlace(&row_info, png_ptr->row_buf + 1, png_ptr->pass);
840 if (row_info.width == 0)
851 png_do_write_transformations(png_ptr, &row_info);
854 /* At this point the row_info pixel depth must match the 'transformed' depth,
857 if (row_info.pixel_depth != png_ptr->pixel_depth ||
858 row_info.pixel_depth != png_ptr->transformed_pixel_depth)
875 png_do_write_intrapixel(&row_info, png_ptr->row_buf + 1);
882 if (row_info.color_type == PNG_COLOR_TYPE_PALETTE &&
884 png_do_check_palette_indexes(png_ptr, &row_info);
888 png_write_find_filter(png_ptr, &row_info);