Lines Matching refs:row_info
205 png_do_invert(png_row_infop row_info, png_bytep row) in png_do_invert() argument
213 if (row == NULL || row_info == NULL) in png_do_invert()
216 if (row_info->color_type == PNG_COLOR_TYPE_GRAY) in png_do_invert()
220 png_uint_32 istop = row_info->rowbytes; in png_do_invert()
228 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA && in png_do_invert()
229 row_info->bit_depth == 8) in png_do_invert()
233 png_uint_32 istop = row_info->rowbytes; in png_do_invert()
241 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA && in png_do_invert()
242 row_info->bit_depth == 16) in png_do_invert()
246 png_uint_32 istop = row_info->rowbytes; in png_do_invert()
261 png_do_swap(png_row_infop row_info, png_bytep row) in png_do_swap() argument
267 row != NULL && row_info != NULL && in png_do_swap()
269 row_info->bit_depth == 16) in png_do_swap()
273 png_uint_32 istop= row_info->width * row_info->channels; in png_do_swap()
393 png_do_packswap(png_row_infop row_info, png_bytep row) in png_do_packswap() argument
399 row != NULL && row_info != NULL && in png_do_packswap()
401 row_info->bit_depth < 8) in png_do_packswap()
405 end = row + row_info->rowbytes; in png_do_packswap()
407 if (row_info->bit_depth == 1) in png_do_packswap()
409 else if (row_info->bit_depth == 2) in png_do_packswap()
411 else if (row_info->bit_depth == 4) in png_do_packswap()
426 png_do_strip_filler(png_row_infop row_info, png_bytep row, png_uint_32 flags) in png_do_strip_filler() argument
431 if (row != NULL && row_info != NULL) in png_do_strip_filler()
436 png_uint_32 row_width=row_info->width; in png_do_strip_filler()
439 if ((row_info->color_type == PNG_COLOR_TYPE_RGB || in png_do_strip_filler()
440 (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA && in png_do_strip_filler()
442 row_info->channels == 4) in png_do_strip_filler()
444 if (row_info->bit_depth == 8) in png_do_strip_filler()
469 row_info->pixel_depth = 24; in png_do_strip_filler()
470 row_info->rowbytes = row_width * 3; in png_do_strip_filler()
515 row_info->pixel_depth = 48; in png_do_strip_filler()
516 row_info->rowbytes = row_width * 6; in png_do_strip_filler()
518 row_info->channels = 3; in png_do_strip_filler()
520 else if ((row_info->color_type == PNG_COLOR_TYPE_GRAY || in png_do_strip_filler()
521 (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA && in png_do_strip_filler()
523 row_info->channels == 2) in png_do_strip_filler()
525 if (row_info->bit_depth == 8) in png_do_strip_filler()
545 row_info->pixel_depth = 8; in png_do_strip_filler()
546 row_info->rowbytes = row_width; in png_do_strip_filler()
571 row_info->pixel_depth = 16; in png_do_strip_filler()
572 row_info->rowbytes = row_width * 2; in png_do_strip_filler()
574 row_info->channels = 1; in png_do_strip_filler()
577 row_info->color_type &= ~PNG_COLOR_MASK_ALPHA; in png_do_strip_filler()
585 png_do_bgr(png_row_infop row_info, png_bytep row) in png_do_bgr() argument
591 row != NULL && row_info != NULL && in png_do_bgr()
593 (row_info->color_type & PNG_COLOR_MASK_COLOR)) in png_do_bgr()
595 png_uint_32 row_width = row_info->width; in png_do_bgr()
596 if (row_info->bit_depth == 8) in png_do_bgr()
598 if (row_info->color_type == PNG_COLOR_TYPE_RGB) in png_do_bgr()
610 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_bgr()
623 else if (row_info->bit_depth == 16) in png_do_bgr()
625 if (row_info->color_type == PNG_COLOR_TYPE_RGB) in png_do_bgr()
640 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_bgr()