Lines Matching refs:row_info

261 png_do_invert(png_row_infop row_info, png_bytep row)
266 * if (row_info->bit_depth == 1 &&
268 if (row_info->color_type == PNG_COLOR_TYPE_GRAY)
272 png_size_t istop = row_info->rowbytes;
281 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
282 row_info->bit_depth == 8)
286 png_size_t istop = row_info->rowbytes;
296 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
297 row_info->bit_depth == 16)
301 png_size_t istop = row_info->rowbytes;
318 png_do_swap(png_row_infop row_info, png_bytep row)
322 if (row_info->bit_depth == 16)
326 png_uint_32 istop= row_info->width * row_info->channels;
447 png_do_packswap(png_row_infop row_info, png_bytep row)
451 if (row_info->bit_depth < 8)
456 end = row + row_info->rowbytes;
458 if (row_info->bit_depth == 1)
461 else if (row_info->bit_depth == 2)
464 else if (row_info->bit_depth == 4)
487 png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start)
491 png_bytep ep = row + row_info->rowbytes; /* One beyond end of row */
502 if (row_info->channels == 2)
504 if (row_info->bit_depth == 8)
515 row_info->pixel_depth = 8;
518 else if (row_info->bit_depth == 16)
528 row_info->pixel_depth = 16;
534 row_info->channels = 1;
537 if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
538 row_info->color_type = PNG_COLOR_TYPE_GRAY;
542 else if (row_info->channels == 4)
544 if (row_info->bit_depth == 8)
555 row_info->pixel_depth = 24;
558 else if (row_info->bit_depth == 16)
573 row_info->pixel_depth = 48;
579 row_info->channels = 3;
582 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
583 row_info->color_type = PNG_COLOR_TYPE_RGB;
590 row_info->rowbytes = dp-row;
597 png_do_bgr(png_row_infop row_info, png_bytep row)
601 if ((row_info->color_type & PNG_COLOR_MASK_COLOR))
603 png_uint_32 row_width = row_info->width;
604 if (row_info->bit_depth == 8)
606 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
619 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
634 else if (row_info->bit_depth == 16)
636 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
652 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
677 png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info)
679 if (png_ptr->num_palette < (1 << row_info->bit_depth) &&
688 int padding = (-row_info->pixel_depth * row_info->width) & 7;
689 png_bytep rp = png_ptr->row_buf + row_info->rowbytes;
691 switch (row_info->bit_depth)