Lines Matching refs:row_info
262 png_do_invert(png_row_infop row_info, png_bytep row) in png_do_invert() argument
269 if (row_info->color_type == PNG_COLOR_TYPE_GRAY) in png_do_invert()
273 size_t istop = row_info->rowbytes; in png_do_invert()
282 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA && in png_do_invert()
283 row_info->bit_depth == 8) in png_do_invert()
287 size_t istop = row_info->rowbytes; in png_do_invert()
297 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA && in png_do_invert()
298 row_info->bit_depth == 16) in png_do_invert()
302 size_t istop = row_info->rowbytes; in png_do_invert()
319 png_do_swap(png_row_infop row_info, png_bytep row) in png_do_swap() argument
323 if (row_info->bit_depth == 16) in png_do_swap()
327 png_uint_32 istop= row_info->width * row_info->channels; in png_do_swap()
455 png_do_packswap(png_row_infop row_info, png_bytep row) in png_do_packswap() argument
459 if (row_info->bit_depth < 8) in png_do_packswap()
464 end = row + row_info->rowbytes; in png_do_packswap()
466 if (row_info->bit_depth == 1) in png_do_packswap()
469 else if (row_info->bit_depth == 2) in png_do_packswap()
472 else if (row_info->bit_depth == 4) in png_do_packswap()
495 png_do_strip_channel(png_row_infop row_info, png_bytep row, int at_start) in png_do_strip_channel() argument
499 png_bytep ep = row + row_info->rowbytes; /* One beyond end of row */ in png_do_strip_channel()
510 if (row_info->channels == 2) in png_do_strip_channel()
512 if (row_info->bit_depth == 8) in png_do_strip_channel()
527 row_info->pixel_depth = 8; in png_do_strip_channel()
530 else if (row_info->bit_depth == 16) in png_do_strip_channel()
544 row_info->pixel_depth = 16; in png_do_strip_channel()
550 row_info->channels = 1; in png_do_strip_channel()
553 if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) in png_do_strip_channel()
554 row_info->color_type = PNG_COLOR_TYPE_GRAY; in png_do_strip_channel()
558 else if (row_info->channels == 4) in png_do_strip_channel()
560 if (row_info->bit_depth == 8) in png_do_strip_channel()
575 row_info->pixel_depth = 24; in png_do_strip_channel()
578 else if (row_info->bit_depth == 16) in png_do_strip_channel()
595 row_info->pixel_depth = 48; in png_do_strip_channel()
601 row_info->channels = 3; in png_do_strip_channel()
604 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_strip_channel()
605 row_info->color_type = PNG_COLOR_TYPE_RGB; in png_do_strip_channel()
612 row_info->rowbytes = (size_t)(dp-row); in png_do_strip_channel()
619 png_do_bgr(png_row_infop row_info, png_bytep row) in png_do_bgr() argument
623 if ((row_info->color_type & PNG_COLOR_MASK_COLOR) != 0) in png_do_bgr()
625 png_uint_32 row_width = row_info->width; in png_do_bgr()
626 if (row_info->bit_depth == 8) in png_do_bgr()
628 if (row_info->color_type == PNG_COLOR_TYPE_RGB) in png_do_bgr()
641 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_bgr()
656 else if (row_info->bit_depth == 16) in png_do_bgr()
658 if (row_info->color_type == PNG_COLOR_TYPE_RGB) in png_do_bgr()
674 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_bgr()
699 png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info) in png_do_check_palette_indexes() argument
701 if (png_ptr->num_palette < (1 << row_info->bit_depth) && in png_do_check_palette_indexes()
710 int padding = PNG_PADBITS(row_info->pixel_depth, row_info->width); in png_do_check_palette_indexes()
711 png_bytep rp = png_ptr->row_buf + row_info->rowbytes - 1; in png_do_check_palette_indexes()
713 switch (row_info->bit_depth) in png_do_check_palette_indexes()