Lines Matching refs:row_info
176 png_do_invert(png_row_infop row_info, png_bytep row)
180 * if (row_info->bit_depth == 1 &&
183 if (row == NULL || row_info == NULL)
186 if (row_info->color_type == PNG_COLOR_TYPE_GRAY)
190 png_uint_32 istop = row_info->rowbytes;
198 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
199 row_info->bit_depth == 8)
203 png_uint_32 istop = row_info->rowbytes;
211 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
212 row_info->bit_depth == 16)
216 png_uint_32 istop = row_info->rowbytes;
231 png_do_swap(png_row_infop row_info, png_bytep row)
236 row != NULL && row_info != NULL &&
238 row_info->bit_depth == 16)
242 png_uint_32 istop= row_info->width * row_info->channels;
362 png_do_packswap(png_row_infop row_info, png_bytep row)
367 row != NULL && row_info != NULL &&
369 row_info->bit_depth < 8)
373 end = row + row_info->rowbytes;
375 if (row_info->bit_depth == 1)
377 else if (row_info->bit_depth == 2)
379 else if (row_info->bit_depth == 4)
394 png_do_strip_filler(png_row_infop row_info, png_bytep row, png_uint_32 flags)
398 if (row != NULL && row_info != NULL)
403 png_uint_32 row_width=row_info->width;
406 if ((row_info->color_type == PNG_COLOR_TYPE_RGB ||
407 (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA &&
409 row_info->channels == 4)
411 if (row_info->bit_depth == 8)
436 row_info->pixel_depth = 24;
437 row_info->rowbytes = row_width * 3;
439 else /* if (row_info->bit_depth == 16) */
482 row_info->pixel_depth = 48;
483 row_info->rowbytes = row_width * 6;
485 row_info->channels = 3;
487 else if ((row_info->color_type == PNG_COLOR_TYPE_GRAY ||
488 (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA &&
490 row_info->channels == 2)
492 if (row_info->bit_depth == 8)
512 row_info->pixel_depth = 8;
513 row_info->rowbytes = row_width;
515 else /* if (row_info->bit_depth == 16) */
538 row_info->pixel_depth = 16;
539 row_info->rowbytes = row_width * 2;
541 row_info->channels = 1;
544 row_info->color_type &= ~PNG_COLOR_MASK_ALPHA;
552 png_do_bgr(png_row_infop row_info, png_bytep row)
557 row != NULL && row_info != NULL &&
559 (row_info->color_type & PNG_COLOR_MASK_COLOR))
561 png_uint_32 row_width = row_info->width;
562 if (row_info->bit_depth == 8)
564 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
576 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
589 else if (row_info->bit_depth == 16)
591 if (row_info->color_type == PNG_COLOR_TYPE_RGB)
606 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA)