• Home
  • Raw
  • Download

Lines Matching refs:sp

2154             png_bytep sp = row + (png_size_t)((row_width - 1) >> 3);  in png_do_unpack()  local
2159 *dp = (png_byte)((*sp >> shift) & 0x01); in png_do_unpack()
2164 sp--; in png_do_unpack()
2178 png_bytep sp = row + (png_size_t)((row_width - 1) >> 2); in png_do_unpack() local
2183 *dp = (png_byte)((*sp >> shift) & 0x03); in png_do_unpack()
2188 sp--; in png_do_unpack()
2201 png_bytep sp = row + (png_size_t)((row_width - 1) >> 1); in png_do_unpack() local
2206 *dp = (png_byte)((*sp >> shift) & 0x0f); in png_do_unpack()
2211 sp--; in png_do_unpack()
2384 png_bytep sp = row; /* source */ in png_do_scale_16_to_8() local
2386 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_scale_16_to_8()
2388 while (sp < ep) in png_do_scale_16_to_8()
2422 png_int_32 tmp = *sp++; /* must be signed! */ in png_do_scale_16_to_8()
2423 tmp += (((int)*sp++ - tmp + 128) * 65535) >> 24; in png_do_scale_16_to_8()
2445 png_bytep sp = row; /* source */ in png_do_chop() local
2447 png_bytep ep = sp + row_info->rowbytes; /* end+1 */ in png_do_chop()
2449 while (sp < ep) in png_do_chop()
2451 *dp++ = *sp; in png_do_chop()
2452 sp += 2; /* skip low byte */ in png_do_chop()
2475 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
2476 png_bytep dp = sp; in png_do_read_swap_alpha()
2482 save = *(--sp); in png_do_read_swap_alpha()
2483 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2484 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2485 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2494 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
2495 png_bytep dp = sp; in png_do_read_swap_alpha()
2501 save[0] = *(--sp); in png_do_read_swap_alpha()
2502 save[1] = *(--sp); in png_do_read_swap_alpha()
2503 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2504 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2505 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2506 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2507 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2508 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2521 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
2522 png_bytep dp = sp; in png_do_read_swap_alpha()
2528 save = *(--sp); in png_do_read_swap_alpha()
2529 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2538 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
2539 png_bytep dp = sp; in png_do_read_swap_alpha()
2545 save[0] = *(--sp); in png_do_read_swap_alpha()
2546 save[1] = *(--sp); in png_do_read_swap_alpha()
2547 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2548 *(--dp) = *(--sp); in png_do_read_swap_alpha()
2572 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
2573 png_bytep dp = sp; in png_do_read_invert_alpha()
2578 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2586 sp-=3; in png_do_read_invert_alpha()
2587 dp=sp; in png_do_read_invert_alpha()
2595 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
2596 png_bytep dp = sp; in png_do_read_invert_alpha()
2601 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2602 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2613 sp-=6; in png_do_read_invert_alpha()
2614 dp=sp; in png_do_read_invert_alpha()
2624 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
2625 png_bytep dp = sp; in png_do_read_invert_alpha()
2630 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2631 *(--dp) = *(--sp); in png_do_read_invert_alpha()
2639 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
2640 png_bytep dp = sp; in png_do_read_invert_alpha()
2645 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2646 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2651 sp-=2; in png_do_read_invert_alpha()
2652 dp=sp; in png_do_read_invert_alpha()
2684 png_bytep sp = row + (png_size_t)row_width; in png_do_read_filler() local
2685 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2689 *(--dp) = *(--sp); in png_do_read_filler()
2700 png_bytep sp = row + (png_size_t)row_width; in png_do_read_filler() local
2701 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2704 *(--dp) = *(--sp); in png_do_read_filler()
2719 png_bytep sp = row + (png_size_t)row_width * 2; in png_do_read_filler() local
2720 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2725 *(--dp) = *(--sp); in png_do_read_filler()
2726 *(--dp) = *(--sp); in png_do_read_filler()
2738 png_bytep sp = row + (png_size_t)row_width * 2; in png_do_read_filler() local
2739 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2742 *(--dp) = *(--sp); in png_do_read_filler()
2743 *(--dp) = *(--sp); in png_do_read_filler()
2761 png_bytep sp = row + (png_size_t)row_width * 3; in png_do_read_filler() local
2762 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2766 *(--dp) = *(--sp); in png_do_read_filler()
2767 *(--dp) = *(--sp); in png_do_read_filler()
2768 *(--dp) = *(--sp); in png_do_read_filler()
2779 png_bytep sp = row + (png_size_t)row_width * 3; in png_do_read_filler() local
2780 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2783 *(--dp) = *(--sp); in png_do_read_filler()
2784 *(--dp) = *(--sp); in png_do_read_filler()
2785 *(--dp) = *(--sp); in png_do_read_filler()
2800 png_bytep sp = row + (png_size_t)row_width * 6; in png_do_read_filler() local
2801 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2806 *(--dp) = *(--sp); in png_do_read_filler()
2807 *(--dp) = *(--sp); in png_do_read_filler()
2808 *(--dp) = *(--sp); in png_do_read_filler()
2809 *(--dp) = *(--sp); in png_do_read_filler()
2810 *(--dp) = *(--sp); in png_do_read_filler()
2811 *(--dp) = *(--sp); in png_do_read_filler()
2823 png_bytep sp = row + (png_size_t)row_width * 6; in png_do_read_filler() local
2824 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2827 *(--dp) = *(--sp); in png_do_read_filler()
2828 *(--dp) = *(--sp); in png_do_read_filler()
2829 *(--dp) = *(--sp); in png_do_read_filler()
2830 *(--dp) = *(--sp); in png_do_read_filler()
2831 *(--dp) = *(--sp); in png_do_read_filler()
2832 *(--dp) = *(--sp); in png_do_read_filler()
2865 png_bytep sp = row + (png_size_t)row_width - 1; in png_do_gray_to_rgb() local
2866 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_gray_to_rgb()
2869 *(dp--) = *sp; in png_do_gray_to_rgb()
2870 *(dp--) = *sp; in png_do_gray_to_rgb()
2871 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2878 png_bytep sp = row + (png_size_t)row_width * 2 - 1; in png_do_gray_to_rgb() local
2879 png_bytep dp = sp + (png_size_t)row_width * 4; in png_do_gray_to_rgb()
2882 *(dp--) = *sp; in png_do_gray_to_rgb()
2883 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2884 *(dp--) = *sp; in png_do_gray_to_rgb()
2885 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2886 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2887 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2897 png_bytep sp = row + (png_size_t)row_width * 2 - 1; in png_do_gray_to_rgb() local
2898 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_gray_to_rgb()
2901 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2902 *(dp--) = *sp; in png_do_gray_to_rgb()
2903 *(dp--) = *sp; in png_do_gray_to_rgb()
2904 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2911 png_bytep sp = row + (png_size_t)row_width * 4 - 1; in png_do_gray_to_rgb() local
2912 png_bytep dp = sp + (png_size_t)row_width * 4; in png_do_gray_to_rgb()
2915 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2916 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2917 *(dp--) = *sp; in png_do_gray_to_rgb()
2918 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2919 *(dp--) = *sp; in png_do_gray_to_rgb()
2920 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2921 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2922 *(dp--) = *(sp--); in png_do_gray_to_rgb()
3016 png_bytep sp = row; in png_do_rgb_to_gray() local
3022 png_byte red = *(sp++); in png_do_rgb_to_gray()
3023 png_byte green = *(sp++); in png_do_rgb_to_gray()
3024 png_byte blue = *(sp++); in png_do_rgb_to_gray()
3049 *(dp++) = *(sp++); in png_do_rgb_to_gray()
3055 png_bytep sp = row; in png_do_rgb_to_gray() local
3061 png_byte red = *(sp++); in png_do_rgb_to_gray()
3062 png_byte green = *(sp++); in png_do_rgb_to_gray()
3063 png_byte blue = *(sp++); in png_do_rgb_to_gray()
3078 *(dp++) = *(sp++); in png_do_rgb_to_gray()
3088 png_bytep sp = row; in png_do_rgb_to_gray() local
3097 hi=*(sp)++; lo=*(sp)++; red = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3098 hi=*(sp)++; lo=*(sp)++; green = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3099 hi=*(sp)++; lo=*(sp)++; blue = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3132 *(dp++) = *(sp++); in png_do_rgb_to_gray()
3133 *(dp++) = *(sp++); in png_do_rgb_to_gray()
3140 png_bytep sp = row; in png_do_rgb_to_gray() local
3149 hi=*(sp)++; lo=*(sp)++; red = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3150 hi=*(sp)++; lo=*(sp)++; green = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3151 hi=*(sp)++; lo=*(sp)++; blue = (png_uint_16)((hi << 8) | (lo)); in png_do_rgb_to_gray()
3167 *(dp++) = *(sp++); in png_do_rgb_to_gray()
3168 *(dp++) = *(sp++); in png_do_rgb_to_gray()
3205 png_bytep sp; in png_do_compose() local
3221 sp = row; in png_do_compose()
3225 if ((png_uint_16)((*sp >> shift) & 0x01) in png_do_compose()
3228 unsigned int tmp = *sp & (0x7f7f >> (7 - shift)); in png_do_compose()
3231 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3237 sp++; in png_do_compose()
3251 sp = row; in png_do_compose()
3255 if ((png_uint_16)((*sp >> shift) & 0x03) in png_do_compose()
3258 unsigned int tmp = *sp & (0x3f3f >> (6 - shift)); in png_do_compose()
3261 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3266 unsigned int p = (*sp >> shift) & 0x03; in png_do_compose()
3269 unsigned int tmp = *sp & (0x3f3f >> (6 - shift)); in png_do_compose()
3271 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3277 sp++; in png_do_compose()
3288 sp = row; in png_do_compose()
3292 if ((png_uint_16)((*sp >> shift) & 0x03) in png_do_compose()
3295 unsigned int tmp = *sp & (0x3f3f >> (6 - shift)); in png_do_compose()
3298 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3304 sp++; in png_do_compose()
3319 sp = row; in png_do_compose()
3323 if ((png_uint_16)((*sp >> shift) & 0x0f) in png_do_compose()
3326 unsigned int tmp = *sp & (0x0f0f >> (4 - shift)); in png_do_compose()
3329 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3334 unsigned int p = (*sp >> shift) & 0x0f; in png_do_compose()
3337 unsigned int tmp = *sp & (0x0f0f >> (4 - shift)); in png_do_compose()
3339 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3345 sp++; in png_do_compose()
3356 sp = row; in png_do_compose()
3360 if ((png_uint_16)((*sp >> shift) & 0x0f) in png_do_compose()
3363 unsigned int tmp = *sp & (0x0f0f >> (4 - shift)); in png_do_compose()
3366 *sp = (png_byte)(tmp & 0xff); in png_do_compose()
3372 sp++; in png_do_compose()
3387 sp = row; in png_do_compose()
3388 for (i = 0; i < row_width; i++, sp++) in png_do_compose()
3390 if (*sp == png_ptr->trans_color.gray) in png_do_compose()
3391 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3394 *sp = gamma_table[*sp]; in png_do_compose()
3400 sp = row; in png_do_compose()
3401 for (i = 0; i < row_width; i++, sp++) in png_do_compose()
3403 if (*sp == png_ptr->trans_color.gray) in png_do_compose()
3404 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3415 sp = row; in png_do_compose()
3416 for (i = 0; i < row_width; i++, sp += 2) in png_do_compose()
3420 v = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3425 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3427 *(sp + 1) = (png_byte)(png_ptr->background.gray in png_do_compose()
3433 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_compose()
3434 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3435 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3442 sp = row; in png_do_compose()
3443 for (i = 0; i < row_width; i++, sp += 2) in png_do_compose()
3447 v = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3451 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3453 *(sp + 1) = (png_byte)(png_ptr->background.gray in png_do_compose()
3474 sp = row; in png_do_compose()
3475 for (i = 0; i < row_width; i++, sp += 3) in png_do_compose()
3477 if (*sp == png_ptr->trans_color.red && in png_do_compose()
3478 *(sp + 1) == png_ptr->trans_color.green && in png_do_compose()
3479 *(sp + 2) == png_ptr->trans_color.blue) in png_do_compose()
3481 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3482 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3483 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3488 *sp = gamma_table[*sp]; in png_do_compose()
3489 *(sp + 1) = gamma_table[*(sp + 1)]; in png_do_compose()
3490 *(sp + 2) = gamma_table[*(sp + 2)]; in png_do_compose()
3497 sp = row; in png_do_compose()
3498 for (i = 0; i < row_width; i++, sp += 3) in png_do_compose()
3500 if (*sp == png_ptr->trans_color.red && in png_do_compose()
3501 *(sp + 1) == png_ptr->trans_color.green && in png_do_compose()
3502 *(sp + 2) == png_ptr->trans_color.blue) in png_do_compose()
3504 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3505 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3506 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3516 sp = row; in png_do_compose()
3517 for (i = 0; i < row_width; i++, sp += 6) in png_do_compose()
3519 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3521 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) in png_do_compose()
3522 + *(sp + 3)); in png_do_compose()
3524 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) in png_do_compose()
3525 + *(sp + 5)); in png_do_compose()
3532 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3533 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3534 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3536 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3538 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3540 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3545 png_uint_16 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_compose()
3546 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3547 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3549 v = gamma_16[*(sp + 3) >> gamma_shift][*(sp + 2)]; in png_do_compose()
3550 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3551 *(sp + 3) = (png_byte)(v & 0xff); in png_do_compose()
3553 v = gamma_16[*(sp + 5) >> gamma_shift][*(sp + 4)]; in png_do_compose()
3554 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3555 *(sp + 5) = (png_byte)(v & 0xff); in png_do_compose()
3563 sp = row; in png_do_compose()
3564 for (i = 0; i < row_width; i++, sp += 6) in png_do_compose()
3566 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3568 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) in png_do_compose()
3569 + *(sp + 3)); in png_do_compose()
3571 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) in png_do_compose()
3572 + *(sp + 5)); in png_do_compose()
3578 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3579 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3580 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3582 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3584 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3586 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3602 sp = row; in png_do_compose()
3603 for (i = 0; i < row_width; i++, sp += 2) in png_do_compose()
3605 png_uint_16 a = *(sp + 1); in png_do_compose()
3608 *sp = gamma_table[*sp]; in png_do_compose()
3613 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3620 v = gamma_to_1[*sp]; in png_do_compose()
3624 *sp = w; in png_do_compose()
3631 sp = row; in png_do_compose()
3632 for (i = 0; i < row_width; i++, sp += 2) in png_do_compose()
3634 png_byte a = *(sp + 1); in png_do_compose()
3637 *sp = (png_byte)png_ptr->background.gray; in png_do_compose()
3640 png_composite(*sp, *sp, a, png_ptr->background.gray); in png_do_compose()
3650 sp = row; in png_do_compose()
3651 for (i = 0; i < row_width; i++, sp += 4) in png_do_compose()
3653 png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8) in png_do_compose()
3654 + *(sp + 3)); in png_do_compose()
3660 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_compose()
3661 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3662 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3668 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3670 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff); in png_do_compose()
3677 g = gamma_16_to_1[*(sp + 1) >> gamma_shift][*sp]; in png_do_compose()
3684 *sp = (png_byte)((w >> 8) & 0xff); in png_do_compose()
3685 *(sp + 1) = (png_byte)(w & 0xff); in png_do_compose()
3692 sp = row; in png_do_compose()
3693 for (i = 0; i < row_width; i++, sp += 4) in png_do_compose()
3695 png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8) in png_do_compose()
3696 + *(sp + 3)); in png_do_compose()
3700 *sp = (png_byte)((png_ptr->background.gray >> 8) in png_do_compose()
3702 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff); in png_do_compose()
3709 g = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3711 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3712 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3728 sp = row; in png_do_compose()
3729 for (i = 0; i < row_width; i++, sp += 4) in png_do_compose()
3731 png_byte a = *(sp + 3); in png_do_compose()
3735 *sp = gamma_table[*sp]; in png_do_compose()
3736 *(sp + 1) = gamma_table[*(sp + 1)]; in png_do_compose()
3737 *(sp + 2) = gamma_table[*(sp + 2)]; in png_do_compose()
3743 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3744 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3745 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3752 v = gamma_to_1[*sp]; in png_do_compose()
3755 *sp = w; in png_do_compose()
3757 v = gamma_to_1[*(sp + 1)]; in png_do_compose()
3760 *(sp + 1) = w; in png_do_compose()
3762 v = gamma_to_1[*(sp + 2)]; in png_do_compose()
3765 *(sp + 2) = w; in png_do_compose()
3772 sp = row; in png_do_compose()
3773 for (i = 0; i < row_width; i++, sp += 4) in png_do_compose()
3775 png_byte a = *(sp + 3); in png_do_compose()
3779 *sp = (png_byte)png_ptr->background.red; in png_do_compose()
3780 *(sp + 1) = (png_byte)png_ptr->background.green; in png_do_compose()
3781 *(sp + 2) = (png_byte)png_ptr->background.blue; in png_do_compose()
3786 png_composite(*sp, *sp, a, png_ptr->background.red); in png_do_compose()
3788 png_composite(*(sp + 1), *(sp + 1), a, in png_do_compose()
3791 png_composite(*(sp + 2), *(sp + 2), a, in png_do_compose()
3803 sp = row; in png_do_compose()
3804 for (i = 0; i < row_width; i++, sp += 8) in png_do_compose()
3806 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6)) in png_do_compose()
3807 << 8) + (png_uint_16)(*(sp + 7))); in png_do_compose()
3813 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_compose()
3814 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3815 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3817 v = gamma_16[*(sp + 3) >> gamma_shift][*(sp + 2)]; in png_do_compose()
3818 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3819 *(sp + 3) = (png_byte)(v & 0xff); in png_do_compose()
3821 v = gamma_16[*(sp + 5) >> gamma_shift][*(sp + 4)]; in png_do_compose()
3822 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3823 *(sp + 5) = (png_byte)(v & 0xff); in png_do_compose()
3829 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3830 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3831 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3833 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3835 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3837 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3844 v = gamma_16_to_1[*(sp + 1) >> gamma_shift][*sp]; in png_do_compose()
3849 *sp = (png_byte)((w >> 8) & 0xff); in png_do_compose()
3850 *(sp + 1) = (png_byte)(w & 0xff); in png_do_compose()
3852 v = gamma_16_to_1[*(sp + 3) >> gamma_shift][*(sp + 2)]; in png_do_compose()
3858 *(sp + 2) = (png_byte)((w >> 8) & 0xff); in png_do_compose()
3859 *(sp + 3) = (png_byte)(w & 0xff); in png_do_compose()
3861 v = gamma_16_to_1[*(sp + 5) >> gamma_shift][*(sp + 4)]; in png_do_compose()
3867 *(sp + 4) = (png_byte)((w >> 8) & 0xff); in png_do_compose()
3868 *(sp + 5) = (png_byte)(w & 0xff); in png_do_compose()
3876 sp = row; in png_do_compose()
3877 for (i = 0; i < row_width; i++, sp += 8) in png_do_compose()
3879 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6)) in png_do_compose()
3880 << 8) + (png_uint_16)(*(sp + 7))); in png_do_compose()
3884 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff); in png_do_compose()
3885 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff); in png_do_compose()
3886 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8) in png_do_compose()
3888 *(sp + 3) = (png_byte)(png_ptr->background.green in png_do_compose()
3890 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8) in png_do_compose()
3892 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff); in png_do_compose()
3899 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_compose()
3900 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) in png_do_compose()
3901 + *(sp + 3)); in png_do_compose()
3902 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) in png_do_compose()
3903 + *(sp + 5)); in png_do_compose()
3906 *sp = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3907 *(sp + 1) = (png_byte)(v & 0xff); in png_do_compose()
3910 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3911 *(sp + 3) = (png_byte)(v & 0xff); in png_do_compose()
3914 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_compose()
3915 *(sp + 5) = (png_byte)(v & 0xff); in png_do_compose()
3944 png_bytep sp; in png_do_gamma() local
3959 sp = row; in png_do_gamma()
3962 *sp = gamma_table[*sp]; in png_do_gamma()
3963 sp++; in png_do_gamma()
3964 *sp = gamma_table[*sp]; in png_do_gamma()
3965 sp++; in png_do_gamma()
3966 *sp = gamma_table[*sp]; in png_do_gamma()
3967 sp++; in png_do_gamma()
3973 sp = row; in png_do_gamma()
3978 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3979 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3980 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3981 sp += 2; in png_do_gamma()
3983 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3984 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3985 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3986 sp += 2; in png_do_gamma()
3988 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3989 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3990 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3991 sp += 2; in png_do_gamma()
4001 sp = row; in png_do_gamma()
4004 *sp = gamma_table[*sp]; in png_do_gamma()
4005 sp++; in png_do_gamma()
4007 *sp = gamma_table[*sp]; in png_do_gamma()
4008 sp++; in png_do_gamma()
4010 *sp = gamma_table[*sp]; in png_do_gamma()
4011 sp++; in png_do_gamma()
4013 sp++; in png_do_gamma()
4019 sp = row; in png_do_gamma()
4022 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
4023 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4024 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4025 sp += 2; in png_do_gamma()
4027 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
4028 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4029 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4030 sp += 2; in png_do_gamma()
4032 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
4033 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4034 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4035 sp += 4; in png_do_gamma()
4045 sp = row; in png_do_gamma()
4048 *sp = gamma_table[*sp]; in png_do_gamma()
4049 sp += 2; in png_do_gamma()
4055 sp = row; in png_do_gamma()
4058 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
4059 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4060 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4061 sp += 4; in png_do_gamma()
4071 sp = row; in png_do_gamma()
4074 int a = *sp & 0xc0; in png_do_gamma()
4075 int b = *sp & 0x30; in png_do_gamma()
4076 int c = *sp & 0x0c; in png_do_gamma()
4077 int d = *sp & 0x03; in png_do_gamma()
4079 *sp = (png_byte)( in png_do_gamma()
4084 sp++; in png_do_gamma()
4090 sp = row; in png_do_gamma()
4093 int msb = *sp & 0xf0; in png_do_gamma()
4094 int lsb = *sp & 0x0f; in png_do_gamma()
4096 *sp = (png_byte)((((int)gamma_table[msb | (msb >> 4)]) & 0xf0) in png_do_gamma()
4098 sp++; in png_do_gamma()
4104 sp = row; in png_do_gamma()
4107 *sp = gamma_table[*sp]; in png_do_gamma()
4108 sp++; in png_do_gamma()
4114 sp = row; in png_do_gamma()
4117 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
4118 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
4119 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
4120 sp += 2; in png_do_gamma()
4209 png_bytep sp, dp; in png_do_expand_palette() local
4223 sp = row + (png_size_t)((row_width - 1) >> 3); in png_do_expand_palette()
4228 if ((*sp >> shift) & 0x01) in png_do_expand_palette()
4237 sp--; in png_do_expand_palette()
4250 sp = row + (png_size_t)((row_width - 1) >> 2); in png_do_expand_palette()
4255 value = (*sp >> shift) & 0x03; in png_do_expand_palette()
4260 sp--; in png_do_expand_palette()
4273 sp = row + (png_size_t)((row_width - 1) >> 1); in png_do_expand_palette()
4278 value = (*sp >> shift) & 0x0f; in png_do_expand_palette()
4283 sp--; in png_do_expand_palette()
4307 sp = row + (png_size_t)row_width - 1; in png_do_expand_palette()
4312 if ((int)(*sp) >= num_trans) in png_do_expand_palette()
4316 *dp-- = trans_alpha[*sp]; in png_do_expand_palette()
4318 *dp-- = palette[*sp].blue; in png_do_expand_palette()
4319 *dp-- = palette[*sp].green; in png_do_expand_palette()
4320 *dp-- = palette[*sp].red; in png_do_expand_palette()
4321 sp--; in png_do_expand_palette()
4332 sp = row + (png_size_t)row_width - 1; in png_do_expand_palette()
4337 *dp-- = palette[*sp].blue; in png_do_expand_palette()
4338 *dp-- = palette[*sp].green; in png_do_expand_palette()
4339 *dp-- = palette[*sp].red; in png_do_expand_palette()
4340 sp--; in png_do_expand_palette()
4362 png_bytep sp, dp; in png_do_expand() local
4380 sp = row + (png_size_t)((row_width - 1) >> 3); in png_do_expand()
4385 if ((*sp >> shift) & 0x01) in png_do_expand()
4394 sp--; in png_do_expand()
4408 sp = row + (png_size_t)((row_width - 1) >> 2); in png_do_expand()
4413 value = (*sp >> shift) & 0x03; in png_do_expand()
4419 sp--; in png_do_expand()
4433 sp = row + (png_size_t)((row_width - 1) >> 1); in png_do_expand()
4438 value = (*sp >> shift) & 0x0f; in png_do_expand()
4443 sp--; in png_do_expand()
4468 sp = row + (png_size_t)row_width - 1; in png_do_expand()
4473 if ((*sp & 0xffU) == gray) in png_do_expand()
4479 *dp-- = *sp--; in png_do_expand()
4487 sp = row + row_info->rowbytes - 1; in png_do_expand()
4491 if ((*(sp - 1) & 0xffU) == gray_high && in png_do_expand()
4492 (*(sp) & 0xffU) == gray_low) in png_do_expand()
4504 *dp-- = *sp--; in png_do_expand()
4505 *dp-- = *sp--; in png_do_expand()
4524 sp = row + (png_size_t)row_info->rowbytes - 1; in png_do_expand()
4528 if (*(sp - 2) == red && *(sp - 1) == green && *(sp) == blue) in png_do_expand()
4534 *dp-- = *sp--; in png_do_expand()
4535 *dp-- = *sp--; in png_do_expand()
4536 *dp-- = *sp--; in png_do_expand()
4547 sp = row + row_info->rowbytes - 1; in png_do_expand()
4551 if (*(sp - 5) == red_high && in png_do_expand()
4552 *(sp - 4) == red_low && in png_do_expand()
4553 *(sp - 3) == green_high && in png_do_expand()
4554 *(sp - 2) == green_low && in png_do_expand()
4555 *(sp - 1) == blue_high && in png_do_expand()
4556 *(sp ) == blue_low) in png_do_expand()
4568 *dp-- = *sp--; in png_do_expand()
4569 *dp-- = *sp--; in png_do_expand()
4570 *dp-- = *sp--; in png_do_expand()
4571 *dp-- = *sp--; in png_do_expand()
4572 *dp-- = *sp--; in png_do_expand()
4573 *dp-- = *sp--; in png_do_expand()
4604 png_byte *sp = row + row_info->rowbytes; /* source, last byte + 1 */ in png_do_expand_16() local
4605 png_byte *dp = sp + row_info->rowbytes; /* destination, end + 1 */ in png_do_expand_16()
4606 while (dp > sp) in png_do_expand_16()
4608 dp[-2] = dp[-1] = *--sp; dp -= 2; in png_do_expand_16()
4623 png_bytep sp, dp; in png_do_quantize() local
4634 sp = row; in png_do_quantize()
4638 r = *sp++; in png_do_quantize()
4639 g = *sp++; in png_do_quantize()
4640 b = *sp++; in png_do_quantize()
4671 sp = row; in png_do_quantize()
4675 r = *sp++; in png_do_quantize()
4676 g = *sp++; in png_do_quantize()
4677 b = *sp++; in png_do_quantize()
4678 sp++; in png_do_quantize()
4701 sp = row; in png_do_quantize()
4703 for (i = 0; i < row_width; i++, sp++) in png_do_quantize()
4705 *sp = quantize_lookup[*sp]; in png_do_quantize()