Lines Matching defs:row_info

258 png_do_invert(png_row_infop row_info, png_bytep row)

263 * if (row_info->bit_depth == 1 &&
265 if (row_info->color_type == PNG_COLOR_TYPE_GRAY)
269 png_size_t istop = row_info->rowbytes;
278 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
279 row_info->bit_depth == 8)
283 png_size_t istop = row_info->rowbytes;
293 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
294 row_info->bit_depth == 16)
298 png_size_t istop = row_info->rowbytes;
315 png_do_swap(png_row_infop row_info, png_bytep row)
319 if (row_info->bit_depth == 16)
323 png_uint_32 istop= row_info->width * row_info->channels;
444 png_do_packswap(png_row_infop row_info, png_bytep row)
448 if (row_info->bit_depth < 8)
453 end = row + row_info->rowbytes;
455 if (row_info->bit_depth == 1)
458 else if (row_info->bit_depth == 2)
461 else if (row_info->bit_depth == 4)
484 png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start)
488 png_bytep ep = row + row_info->rowbytes; /* One beyond end of row */
499 if (row_info->channels == 2)
501 if (row_info->bit_depth == 8)
512 row_info->pixel_depth = 8;
515 else if (row_info->bit_depth == 16)
525 row_info->pixel_depth = 16;
531 row_info->channels = 1;
534 if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
535 row_info->color_type = PNG_COLOR_TYPE_GRAY;
539 else if (row_info->channels == 4)
541 if (row_info->bit_depth == 8)
552 row_info->pixel_depth = 24;
555 else if (row_info->bit_depth == 16)
570 row_info->pixel_depth = 48;
576 row_info->channels = 3;
579 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
580 row_info->color_type = PNG_COLOR_TYPE_RGB;
587 row_info->rowbytes = dp-row;
594 png_do_bgr(png_row_infop row_info, png_bytep row)
598 if ((row_info->color_type & PNG_COLOR_MASK_COLOR))
600 png_uint_32 row_width = row_info->width;
601 if (row_info->bit_depth == 8)
603 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
616 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
631 else if (row_info->bit_depth == 16)
633 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
649 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
674 png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info)
676 if (png_ptr->num_palette < (1 << row_info->bit_depth) &&
685 int padding = (-row_info->pixel_depth * row_info->width) & 7;
686 png_bytep rp = png_ptr->row_buf + row_info->rowbytes;
688 switch (row_info->bit_depth)