Home | History | Annotate | Download | only in libpng

Lines Matching refs:row_info

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