• Home
  • Raw
  • Download

Lines Matching refs:row_info

2152 png_do_unpack(png_row_infop row_info, png_bytep row)  in png_do_unpack()  argument
2156 if (row_info->bit_depth < 8) in png_do_unpack()
2159 png_uint_32 row_width=row_info->width; in png_do_unpack()
2161 switch (row_info->bit_depth) in png_do_unpack()
2236 row_info->bit_depth = 8; in png_do_unpack()
2237 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_unpack()
2238 row_info->rowbytes = row_width * row_info->channels; in png_do_unpack()
2250 png_do_unshift(png_row_infop row_info, png_bytep row, in png_do_unshift() argument
2258 color_type = row_info->color_type; in png_do_unshift()
2264 int bit_depth = row_info->bit_depth; in png_do_unshift()
2314 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2329 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2347 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2365 png_bytep bp_end = bp + row_info->rowbytes; in png_do_unshift()
2389 png_do_scale_16_to_8(png_row_infop row_info, png_bytep row) in png_do_scale_16_to_8() argument
2393 if (row_info->bit_depth == 16) in png_do_scale_16_to_8()
2397 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_scale_16_to_8()
2438 row_info->bit_depth = 8; in png_do_scale_16_to_8()
2439 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_scale_16_to_8()
2440 row_info->rowbytes = row_info->width * row_info->channels; in png_do_scale_16_to_8()
2450 png_do_chop(png_row_infop row_info, png_bytep row) in png_do_chop() argument
2454 if (row_info->bit_depth == 16) in png_do_chop()
2458 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_chop()
2466 row_info->bit_depth = 8; in png_do_chop()
2467 row_info->pixel_depth = (png_byte)(8 * row_info->channels); in png_do_chop()
2468 row_info->rowbytes = row_info->width * row_info->channels; in png_do_chop()
2475 png_do_read_swap_alpha(png_row_infop row_info, png_bytep row) in png_do_read_swap_alpha() argument
2477 png_uint_32 row_width = row_info->width; in png_do_read_swap_alpha()
2481 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_read_swap_alpha()
2484 if (row_info->bit_depth == 8) in png_do_read_swap_alpha()
2486 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha()
2505 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha()
2527 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) in png_do_read_swap_alpha()
2530 if (row_info->bit_depth == 8) in png_do_read_swap_alpha()
2532 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha()
2549 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha()
2571 png_do_read_invert_alpha(png_row_infop row_info, png_bytep row) in png_do_read_invert_alpha() argument
2576 row_width = row_info->width; in png_do_read_invert_alpha()
2577 if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) in png_do_read_invert_alpha()
2579 if (row_info->bit_depth == 8) in png_do_read_invert_alpha()
2582 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha()
2605 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha()
2629 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) in png_do_read_invert_alpha()
2631 if (row_info->bit_depth == 8) in png_do_read_invert_alpha()
2634 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha()
2649 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha()
2673 png_do_read_filler(png_row_infop row_info, png_bytep row, in png_do_read_filler() argument
2677 png_uint_32 row_width = row_info->width; in png_do_read_filler()
2687 row_info->color_type == PNG_COLOR_TYPE_GRAY) in png_do_read_filler()
2689 if (row_info->bit_depth == 8) in png_do_read_filler()
2702 row_info->channels = 2; in png_do_read_filler()
2703 row_info->pixel_depth = 16; in png_do_read_filler()
2704 row_info->rowbytes = row_width * 2; in png_do_read_filler()
2717 row_info->channels = 2; in png_do_read_filler()
2718 row_info->pixel_depth = 16; in png_do_read_filler()
2719 row_info->rowbytes = row_width * 2; in png_do_read_filler()
2724 else if (row_info->bit_depth == 16) in png_do_read_filler()
2740 row_info->channels = 2; in png_do_read_filler()
2741 row_info->pixel_depth = 32; in png_do_read_filler()
2742 row_info->rowbytes = row_width * 4; in png_do_read_filler()
2757 row_info->channels = 2; in png_do_read_filler()
2758 row_info->pixel_depth = 32; in png_do_read_filler()
2759 row_info->rowbytes = row_width * 4; in png_do_read_filler()
2764 else if (row_info->color_type == PNG_COLOR_TYPE_RGB) in png_do_read_filler()
2766 if (row_info->bit_depth == 8) in png_do_read_filler()
2781 row_info->channels = 4; in png_do_read_filler()
2782 row_info->pixel_depth = 32; in png_do_read_filler()
2783 row_info->rowbytes = row_width * 4; in png_do_read_filler()
2798 row_info->channels = 4; in png_do_read_filler()
2799 row_info->pixel_depth = 32; in png_do_read_filler()
2800 row_info->rowbytes = row_width * 4; in png_do_read_filler()
2805 else if (row_info->bit_depth == 16) in png_do_read_filler()
2825 row_info->channels = 4; in png_do_read_filler()
2826 row_info->pixel_depth = 64; in png_do_read_filler()
2827 row_info->rowbytes = row_width * 8; in png_do_read_filler()
2847 row_info->channels = 4; in png_do_read_filler()
2848 row_info->pixel_depth = 64; in png_do_read_filler()
2849 row_info->rowbytes = row_width * 8; in png_do_read_filler()
2860 png_do_gray_to_rgb(png_row_infop row_info, png_bytep row) in png_do_gray_to_rgb() argument
2863 png_uint_32 row_width = row_info->width; in png_do_gray_to_rgb()
2867 if (row_info->bit_depth >= 8 && in png_do_gray_to_rgb()
2868 (row_info->color_type & PNG_COLOR_MASK_COLOR) == 0) in png_do_gray_to_rgb()
2870 if (row_info->color_type == PNG_COLOR_TYPE_GRAY) in png_do_gray_to_rgb()
2872 if (row_info->bit_depth == 8) in png_do_gray_to_rgb()
2902 else if (row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) in png_do_gray_to_rgb()
2904 if (row_info->bit_depth == 8) in png_do_gray_to_rgb()
2936 row_info->channels = (png_byte)(row_info->channels + 2); in png_do_gray_to_rgb()
2937 row_info->color_type |= PNG_COLOR_MASK_COLOR; in png_do_gray_to_rgb()
2938 row_info->pixel_depth = (png_byte)(row_info->channels * in png_do_gray_to_rgb()
2939 row_info->bit_depth); in png_do_gray_to_rgb()
2940 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, row_width); in png_do_gray_to_rgb()
2999 png_do_rgb_to_gray(png_structrp png_ptr, png_row_infop row_info, png_bytep row) in png_do_rgb_to_gray() argument
3005 if ((row_info->color_type & PNG_COLOR_MASK_PALETTE) == 0 && in png_do_rgb_to_gray()
3006 (row_info->color_type & PNG_COLOR_MASK_COLOR) != 0) in png_do_rgb_to_gray()
3011 png_uint_32 row_width = row_info->width; in png_do_rgb_to_gray()
3012 int have_alpha = (row_info->color_type & PNG_COLOR_MASK_ALPHA) != 0; in png_do_rgb_to_gray()
3014 if (row_info->bit_depth == 8) in png_do_rgb_to_gray()
3182 row_info->channels = (png_byte)(row_info->channels - 2); in png_do_rgb_to_gray()
3183 row_info->color_type = (png_byte)(row_info->color_type & in png_do_rgb_to_gray()
3185 row_info->pixel_depth = (png_byte)(row_info->channels * in png_do_rgb_to_gray()
3186 row_info->bit_depth); in png_do_rgb_to_gray()
3187 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, row_width); in png_do_rgb_to_gray()
3200 png_do_compose(png_row_infop row_info, png_bytep row, png_structrp png_ptr) in png_do_compose() argument
3215 png_uint_32 row_width = row_info->width; in png_do_compose()
3220 switch (row_info->color_type) in png_do_compose()
3224 switch (row_info->bit_depth) in png_do_compose()
3476 if (row_info->bit_depth == 8) in png_do_compose()
3603 if (row_info->bit_depth == 8) in png_do_compose()
3729 if (row_info->bit_depth == 8) in png_do_compose()
3944 png_do_gamma(png_row_infop row_info, png_bytep row, png_structrp png_ptr) in png_do_gamma() argument
3952 png_uint_32 row_width=row_info->width; in png_do_gamma()
3956 if (((row_info->bit_depth <= 8 && gamma_table != NULL) || in png_do_gamma()
3957 (row_info->bit_depth == 16 && gamma_16_table != NULL))) in png_do_gamma()
3959 switch (row_info->color_type) in png_do_gamma()
3963 if (row_info->bit_depth == 8) in png_do_gamma()
4005 if (row_info->bit_depth == 8) in png_do_gamma()
4049 if (row_info->bit_depth == 8) in png_do_gamma()
4075 if (row_info->bit_depth == 2) in png_do_gamma()
4094 if (row_info->bit_depth == 4) in png_do_gamma()
4108 else if (row_info->bit_depth == 8) in png_do_gamma()
4118 else if (row_info->bit_depth == 16) in png_do_gamma()
4145 png_do_encode_alpha(png_row_infop row_info, png_bytep row, png_structrp png_ptr) in png_do_encode_alpha() argument
4147 png_uint_32 row_width = row_info->width; in png_do_encode_alpha()
4151 if ((row_info->color_type & PNG_COLOR_MASK_ALPHA) != 0) in png_do_encode_alpha()
4153 if (row_info->bit_depth == 8) in png_do_encode_alpha()
4159 int step = (row_info->color_type & PNG_COLOR_MASK_COLOR) ? 4 : 2; in png_do_encode_alpha()
4171 else if (row_info->bit_depth == 16) in png_do_encode_alpha()
4178 int step = (row_info->color_type & PNG_COLOR_MASK_COLOR) ? 8 : 4; in png_do_encode_alpha()
4209 png_do_expand_palette(png_structrp png_ptr, png_row_infop row_info, in png_do_expand_palette() argument
4216 png_uint_32 row_width=row_info->width; in png_do_expand_palette()
4220 if (row_info->color_type == PNG_COLOR_TYPE_PALETTE) in png_do_expand_palette()
4222 if (row_info->bit_depth < 8) in png_do_expand_palette()
4224 switch (row_info->bit_depth) in png_do_expand_palette()
4302 row_info->bit_depth = 8; in png_do_expand_palette()
4303 row_info->pixel_depth = 8; in png_do_expand_palette()
4304 row_info->rowbytes = row_width; in png_do_expand_palette()
4307 if (row_info->bit_depth == 8) in png_do_expand_palette()
4323 i = png_do_expand_palette_rgba8_neon(png_ptr, row_info, row, in png_do_expand_palette()
4341 row_info->bit_depth = 8; in png_do_expand_palette()
4342 row_info->pixel_depth = 32; in png_do_expand_palette()
4343 row_info->rowbytes = row_width * 4; in png_do_expand_palette()
4344 row_info->color_type = 6; in png_do_expand_palette()
4345 row_info->channels = 4; in png_do_expand_palette()
4354 i = png_do_expand_palette_rgb8_neon(png_ptr, row_info, row, in png_do_expand_palette()
4368 row_info->bit_depth = 8; in png_do_expand_palette()
4369 row_info->pixel_depth = 24; in png_do_expand_palette()
4370 row_info->rowbytes = row_width * 3; in png_do_expand_palette()
4371 row_info->color_type = 2; in png_do_expand_palette()
4372 row_info->channels = 3; in png_do_expand_palette()
4383 png_do_expand(png_row_infop row_info, png_bytep row, in png_do_expand() argument
4389 png_uint_32 row_width=row_info->width; in png_do_expand()
4393 if (row_info->color_type == PNG_COLOR_TYPE_GRAY) in png_do_expand()
4397 if (row_info->bit_depth < 8) in png_do_expand()
4399 switch (row_info->bit_depth) in png_do_expand()
4482 row_info->bit_depth = 8; in png_do_expand()
4483 row_info->pixel_depth = 8; in png_do_expand()
4484 row_info->rowbytes = row_width; in png_do_expand()
4489 if (row_info->bit_depth == 8) in png_do_expand()
4507 else if (row_info->bit_depth == 16) in png_do_expand()
4511 sp = row + row_info->rowbytes - 1; in png_do_expand()
4512 dp = row + (row_info->rowbytes << 1) - 1; in png_do_expand()
4533 row_info->color_type = PNG_COLOR_TYPE_GRAY_ALPHA; in png_do_expand()
4534 row_info->channels = 2; in png_do_expand()
4535 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 1); in png_do_expand()
4536 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, in png_do_expand()
4540 else if (row_info->color_type == PNG_COLOR_TYPE_RGB && in png_do_expand()
4543 if (row_info->bit_depth == 8) in png_do_expand()
4548 sp = row + (size_t)row_info->rowbytes - 1; in png_do_expand()
4563 else if (row_info->bit_depth == 16) in png_do_expand()
4571 sp = row + row_info->rowbytes - 1; in png_do_expand()
4600 row_info->color_type = PNG_COLOR_TYPE_RGB_ALPHA; in png_do_expand()
4601 row_info->channels = 4; in png_do_expand()
4602 row_info->pixel_depth = (png_byte)(row_info->bit_depth << 2); in png_do_expand()
4603 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, row_width); in png_do_expand()
4613 png_do_expand_16(png_row_infop row_info, png_bytep row) in png_do_expand_16() argument
4615 if (row_info->bit_depth == 8 && in png_do_expand_16()
4616 row_info->color_type != PNG_COLOR_TYPE_PALETTE) in png_do_expand_16()
4627 png_byte *sp = row + row_info->rowbytes; /* source, last byte + 1 */ in png_do_expand_16()
4628 png_byte *dp = sp + row_info->rowbytes; /* destination, end + 1 */ in png_do_expand_16()
4634 row_info->rowbytes *= 2; in png_do_expand_16()
4635 row_info->bit_depth = 16; in png_do_expand_16()
4636 row_info->pixel_depth = (png_byte)(row_info->channels * 16); in png_do_expand_16()
4643 png_do_quantize(png_row_infop row_info, png_bytep row, in png_do_quantize() argument
4648 png_uint_32 row_width=row_info->width; in png_do_quantize()
4652 if (row_info->bit_depth == 8) in png_do_quantize()
4654 if (row_info->color_type == PNG_COLOR_TYPE_RGB && palette_lookup) in png_do_quantize()
4684 row_info->color_type = PNG_COLOR_TYPE_PALETTE; in png_do_quantize()
4685 row_info->channels = 1; in png_do_quantize()
4686 row_info->pixel_depth = row_info->bit_depth; in png_do_quantize()
4687 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, row_width); in png_do_quantize()
4690 else if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA && in png_do_quantize()
4715 row_info->color_type = PNG_COLOR_TYPE_PALETTE; in png_do_quantize()
4716 row_info->channels = 1; in png_do_quantize()
4717 row_info->pixel_depth = row_info->bit_depth; in png_do_quantize()
4718 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, row_width); in png_do_quantize()
4721 else if (row_info->color_type == PNG_COLOR_TYPE_PALETTE && in png_do_quantize()
4740 png_do_read_transformations(png_structrp png_ptr, png_row_infop row_info) in png_do_read_transformations() argument
4772 if (row_info->color_type == PNG_COLOR_TYPE_PALETTE) in png_do_read_transformations()
4786 png_do_expand_palette(png_ptr, row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
4794 png_do_expand(row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
4798 png_do_expand(row_info, png_ptr->row_buf + 1, NULL); in png_do_read_transformations()
4806 (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA || in png_do_read_transformations()
4807 row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)) in png_do_read_transformations()
4808 png_do_strip_channel(row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
4816 png_do_rgb_to_gray(png_ptr, row_info, in png_do_read_transformations()
4870 png_do_gray_to_rgb(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
4876 png_do_compose(row_info, png_ptr->row_buf + 1, png_ptr); in png_do_read_transformations()
4898 png_do_gamma(row_info, png_ptr->row_buf + 1, png_ptr); in png_do_read_transformations()
4904 (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA || in png_do_read_transformations()
4905 row_info->color_type == PNG_COLOR_TYPE_GRAY_ALPHA)) in png_do_read_transformations()
4906 png_do_strip_channel(row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
4912 (row_info->color_type & PNG_COLOR_MASK_ALPHA) != 0) in png_do_read_transformations()
4913 png_do_encode_alpha(row_info, png_ptr->row_buf + 1, png_ptr); in png_do_read_transformations()
4918 png_do_scale_16_to_8(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
4927 png_do_chop(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
4933 png_do_quantize(row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
4936 if (row_info->rowbytes == 0) in png_do_read_transformations()
4948 png_do_expand_16(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
4955 png_do_gray_to_rgb(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
4960 png_do_invert(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
4965 png_do_read_invert_alpha(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
4970 png_do_unshift(row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
4976 png_do_unpack(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
4981 if (row_info->color_type == PNG_COLOR_TYPE_PALETTE && in png_do_read_transformations()
4983 png_do_check_palette_indexes(png_ptr, row_info); in png_do_read_transformations()
4988 png_do_bgr(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
4993 png_do_packswap(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
4998 png_do_read_filler(row_info, png_ptr->row_buf + 1, in png_do_read_transformations()
5004 png_do_read_swap_alpha(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
5010 png_do_swap(row_info, png_ptr->row_buf + 1); in png_do_read_transformations()
5020 row_info, /* row_info: */ in png_do_read_transformations()
5030 row_info->bit_depth = png_ptr->user_transform_depth; in png_do_read_transformations()
5033 row_info->channels = png_ptr->user_transform_channels; in png_do_read_transformations()
5035 row_info->pixel_depth = (png_byte)(row_info->bit_depth * in png_do_read_transformations()
5036 row_info->channels); in png_do_read_transformations()
5038 row_info->rowbytes = PNG_ROWBYTES(row_info->pixel_depth, row_info->width); in png_do_read_transformations()