Lines Matching refs:sp
2392 png_bytep sp = row + (png_size_t)((row_width - 1) >> 3);
2397 *dp = (png_byte)((*sp >> shift) & 0x01);
2402 sp--;
2416 png_bytep sp = row + (png_size_t)((row_width - 1) >> 2);
2421 *dp = (png_byte)((*sp >> shift) & 0x03);
2426 sp--;
2439 png_bytep sp = row + (png_size_t)((row_width - 1) >> 1);
2444 *dp = (png_byte)((*sp >> shift) & 0x0f);
2449 sp--;
2622 png_bytep sp = row; /* source */
2624 png_bytep ep = sp + row_info->rowbytes; /* end+1 */
2626 while (sp < ep)
2660 png_int_32 tmp = *sp++; /* must be signed! */
2661 tmp += (((int)*sp++ - tmp + 128) * 65535) >> 24;
2683 png_bytep sp = row; /* source */
2685 png_bytep ep = sp + row_info->rowbytes; /* end+1 */
2687 while (sp < ep)
2689 *dp++ = *sp;
2690 sp += 2; /* skip low byte */
2713 png_bytep sp = row + row_info->rowbytes;
2714 png_bytep dp = sp;
2720 save = *(--sp);
2721 *(--dp) = *(--sp);
2722 *(--dp) = *(--sp);
2723 *(--dp) = *(--sp);
2732 png_bytep sp = row + row_info->rowbytes;
2733 png_bytep dp = sp;
2739 save[0] = *(--sp);
2740 save[1] = *(--sp);
2741 *(--dp) = *(--sp);
2742 *(--dp) = *(--sp);
2743 *(--dp) = *(--sp);
2744 *(--dp) = *(--sp);
2745 *(--dp) = *(--sp);
2746 *(--dp) = *(--sp);
2759 png_bytep sp = row + row_info->rowbytes;
2760 png_bytep dp = sp;
2766 save = *(--sp);
2767 *(--dp) = *(--sp);
2776 png_bytep sp = row + row_info->rowbytes;
2777 png_bytep dp = sp;
2783 save[0] = *(--sp);
2784 save[1] = *(--sp);
2785 *(--dp) = *(--sp);
2786 *(--dp) = *(--sp);
2810 png_bytep sp = row + row_info->rowbytes;
2811 png_bytep dp = sp;
2816 *(--dp) = (png_byte)(255 - *(--sp));
2819 *(--dp) = *(--sp);
2820 *(--dp) = *(--sp);
2821 *(--dp) = *(--sp);
2824 sp-=3;
2825 dp=sp;
2833 png_bytep sp = row + row_info->rowbytes;
2834 png_bytep dp = sp;
2839 *(--dp) = (png_byte)(255 - *(--sp));
2840 *(--dp) = (png_byte)(255 - *(--sp));
2843 *(--dp) = *(--sp);
2844 *(--dp) = *(--sp);
2845 *(--dp) = *(--sp);
2846 *(--dp) = *(--sp);
2847 *(--dp) = *(--sp);
2848 *(--dp) = *(--sp);
2851 sp-=6;
2852 dp=sp;
2862 png_bytep sp = row + row_info->rowbytes;
2863 png_bytep dp = sp;
2868 *(--dp) = (png_byte)(255 - *(--sp));
2869 *(--dp) = *(--sp);
2877 png_bytep sp = row + row_info->rowbytes;
2878 png_bytep dp = sp;
2883 *(--dp) = (png_byte)(255 - *(--sp));
2884 *(--dp) = (png_byte)(255 - *(--sp));
2886 *(--dp) = *(--sp);
2887 *(--dp) = *(--sp);
2889 sp-=2;
2890 dp=sp;
2922 png_bytep sp = row + (png_size_t)row_width;
2923 png_bytep dp = sp + (png_size_t)row_width;
2927 *(--dp) = *(--sp);
2938 png_bytep sp = row + (png_size_t)row_width;
2939 png_bytep dp = sp + (png_size_t)row_width;
2942 *(--dp) = *(--sp);
2957 png_bytep sp = row + (png_size_t)row_width * 2;
2958 png_bytep dp = sp + (png_size_t)row_width * 2;
2963 *(--dp) = *(--sp);
2964 *(--dp) = *(--sp);
2976 png_bytep sp = row + (png_size_t)row_width * 2;
2977 png_bytep dp = sp + (png_size_t)row_width * 2;
2980 *(--dp) = *(--sp);
2981 *(--dp) = *(--sp);
2999 png_bytep sp = row + (png_size_t)row_width * 3;
3000 png_bytep dp = sp + (png_size_t)row_width;
3004 *(--dp) = *(--sp);
3005 *(--dp) = *(--sp);
3006 *(--dp) = *(--sp);
3017 png_bytep sp = row + (png_size_t)row_width * 3;
3018 png_bytep dp = sp + (png_size_t)row_width;
3021 *(--dp) = *(--sp);
3022 *(--dp) = *(--sp);
3023 *(--dp) = *(--sp);
3038 png_bytep sp = row + (png_size_t)row_width * 6;
3039 png_bytep dp = sp + (png_size_t)row_width * 2;
3044 *(--dp) = *(--sp);
3045 *(--dp) = *(--sp);
3046 *(--dp) = *(--sp);
3047 *(--dp) = *(--sp);
3048 *(--dp) = *(--sp);
3049 *(--dp) = *(--sp);
3061 png_bytep sp = row + (png_size_t)row_width * 6;
3062 png_bytep dp = sp + (png_size_t)row_width * 2;
3065 *(--dp) = *(--sp);
3066 *(--dp) = *(--sp);
3067 *(--dp) = *(--sp);
3068 *(--dp) = *(--sp);
3069 *(--dp) = *(--sp);
3070 *(--dp) = *(--sp);
3103 png_bytep sp = row + (png_size_t)row_width - 1;
3104 png_bytep dp = sp + (png_size_t)row_width * 2;
3107 *(dp--) = *sp;
3108 *(dp--) = *sp;
3109 *(dp--) = *(sp--);
3116 png_bytep sp = row + (png_size_t)row_width * 2 - 1;
3117 png_bytep dp = sp + (png_size_t)row_width * 4;
3120 *(dp--) = *sp;
3121 *(dp--) = *(sp - 1);
3122 *(dp--) = *sp;
3123 *(dp--) = *(sp - 1);
3124 *(dp--) = *(sp--);
3125 *(dp--) = *(sp--);
3135 png_bytep sp = row + (png_size_t)row_width * 2 - 1;
3136 png_bytep dp = sp + (png_size_t)row_width * 2;
3139 *(dp--) = *(sp--);
3140 *(dp--) = *sp;
3141 *(dp--) = *sp;
3142 *(dp--) = *(sp--);
3149 png_bytep sp = row + (png_size_t)row_width * 4 - 1;
3150 png_bytep dp = sp + (png_size_t)row_width * 4;
3153 *(dp--) = *(sp--);
3154 *(dp--) = *(sp--);
3155 *(dp--) = *sp;
3156 *(dp--) = *(sp - 1);
3157 *(dp--) = *sp;
3158 *(dp--) = *(sp - 1);
3159 *(dp--) = *(sp--);
3160 *(dp--) = *(sp--);
3254 png_bytep sp = row;
3260 png_byte red = *(sp++);
3261 png_byte green = *(sp++);
3262 png_byte blue = *(sp++);
3287 *(dp++) = *(sp++);
3293 png_bytep sp = row;
3299 png_byte red = *(sp++);
3300 png_byte green = *(sp++);
3301 png_byte blue = *(sp++);
3316 *(dp++) = *(sp++);
3326 png_bytep sp = row;
3334 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3335 green = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3336 blue = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3369 *(dp++) = *(sp++);
3370 *(dp++) = *(sp++);
3377 png_bytep sp = row;
3385 red = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3386 green = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3387 blue = (png_uint_16)(((*(sp))<<8) | *(sp + 1)); sp += 2;
3403 *(dp++) = *(sp++);
3404 *(dp++) = *(sp++);
3499 png_bytep sp;
3516 sp = row;
3520 if ((png_uint_16)((*sp >> shift) & 0x01)
3523 *sp &= (png_byte)((0x7f7f >> (7 - shift)) & 0xff);
3524 *sp |= (png_byte)(png_ptr->background.gray << shift);
3530 sp++;
3544 sp = row;
3548 if ((png_uint_16)((*sp >> shift) & 0x03)
3551 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff);
3552 *sp |= (png_byte)(png_ptr->background.gray << shift);
3557 png_byte p = (png_byte)((*sp >> shift) & 0x03);
3560 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff);
3561 *sp |= (png_byte)(g << shift);
3567 sp++;
3578 sp = row;
3582 if ((png_uint_16)((*sp >> shift) & 0x03)
3585 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff);
3586 *sp |= (png_byte)(png_ptr->background.gray << shift);
3592 sp++;
3607 sp = row;
3611 if ((png_uint_16)((*sp >> shift) & 0x0f)
3614 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff);
3615 *sp |= (png_byte)(png_ptr->background.gray << shift);
3620 png_byte p = (png_byte)((*sp >> shift) & 0x0f);
3623 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff);
3624 *sp |= (png_byte)(g << shift);
3630 sp++;
3641 sp = row;
3645 if ((png_uint_16)((*sp >> shift) & 0x0f)
3648 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff);
3649 *sp |= (png_byte)(png_ptr->background.gray << shift);
3655 sp++;
3670 sp = row;
3671 for (i = 0; i < row_width; i++, sp++)
3673 if (*sp == png_ptr->trans_color.gray)
3674 *sp = (png_byte)png_ptr->background.gray;
3677 *sp = gamma_table[*sp];
3683 sp = row;
3684 for (i = 0; i < row_width; i++, sp++)
3686 if (*sp == png_ptr->trans_color.gray)
3687 *sp = (png_byte)png_ptr->background.gray;
3698 sp = row;
3699 for (i = 0; i < row_width; i++, sp += 2)
3703 v = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3708 *sp = (png_byte)((png_ptr->background.gray >> 8)
3710 *(sp + 1) = (png_byte)(png_ptr->background.gray
3716 v = gamma_16[*(sp + 1) >> gamma_shift][*sp];
3717 *sp = (png_byte)((v >> 8) & 0xff);
3718 *(sp + 1) = (png_byte)(v & 0xff);
3725 sp = row;
3726 for (i = 0; i < row_width; i++, sp += 2)
3730 v = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3734 *sp = (png_byte)((png_ptr->background.gray >> 8)
3736 *(sp + 1) = (png_byte)(png_ptr->background.gray
3757 sp = row;
3758 for (i = 0; i < row_width; i++, sp += 3)
3760 if (*sp == png_ptr->trans_color.red &&
3761 *(sp + 1) == png_ptr->trans_color.green &&
3762 *(sp + 2) == png_ptr->trans_color.blue)
3764 *sp = (png_byte)png_ptr->background.red;
3765 *(sp + 1) = (png_byte)png_ptr->background.green;
3766 *(sp + 2) = (png_byte)png_ptr->background.blue;
3771 *sp = gamma_table[*sp];
3772 *(sp + 1) = gamma_table[*(sp + 1)];
3773 *(sp + 2) = gamma_table[*(sp + 2)];
3780 sp = row;
3781 for (i = 0; i < row_width; i++, sp += 3)
3783 if (*sp == png_ptr->trans_color.red &&
3784 *(sp + 1) == png_ptr->trans_color.green &&
3785 *(sp + 2) == png_ptr->trans_color.blue)
3787 *sp = (png_byte)png_ptr->background.red;
3788 *(sp + 1) = (png_byte)png_ptr->background.green;
3789 *(sp + 2) = (png_byte)png_ptr->background.blue;
3799 sp = row;
3800 for (i = 0; i < row_width; i++, sp += 6)
3802 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3804 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8)
3805 + *(sp + 3));
3807 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8)
3808 + *(sp + 5));
3815 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
3816 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
3817 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8)
3819 *(sp + 3) = (png_byte)(png_ptr->background.green
3821 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8)
3823 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff);
3828 png_uint_16 v = gamma_16[*(sp + 1) >> gamma_shift][*sp];
3829 *sp = (png_byte)((v >> 8) & 0xff);
3830 *(sp + 1) = (png_byte)(v & 0xff);
3832 v = gamma_16[*(sp + 3) >> gamma_shift][*(sp + 2)];
3833 *(sp + 2) = (png_byte)((v >> 8) & 0xff);
3834 *(sp + 3) = (png_byte)(v & 0xff);
3836 v = gamma_16[*(sp + 5) >> gamma_shift][*(sp + 4)];
3837 *(sp + 4) = (png_byte)((v >> 8) & 0xff);
3838 *(sp + 5) = (png_byte)(v & 0xff);
3846 sp = row;
3847 for (i = 0; i < row_width; i++, sp += 6)
3849 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3851 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8)
3852 + *(sp + 3));
3854 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8)
3855 + *(sp + 5));
3861 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
3862 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
3863 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8)
3865 *(sp + 3) = (png_byte)(png_ptr->background.green
3867 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8)
3869 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff);
3885 sp = row;
3886 for (i = 0; i < row_width; i++, sp += 2)
3888 png_uint_16 a = *(sp + 1);
3891 *sp = gamma_table[*sp];
3896 *sp = (png_byte)png_ptr->background.gray;
3903 v = gamma_to_1[*sp];
3907 *sp = w;
3914 sp = row;
3915 for (i = 0; i < row_width; i++, sp += 2)
3917 png_byte a = *(sp + 1);
3920 *sp = (png_byte)png_ptr->background.gray;
3923 png_composite(*sp, *sp, a, png_ptr->background_1.gray);
3933 sp = row;
3934 for (i = 0; i < row_width; i++, sp += 4)
3936 png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8)
3937 + *(sp + 3));
3943 v = gamma_16[*(sp + 1) >> gamma_shift][*sp];
3944 *sp = (png_byte)((v >> 8) & 0xff);
3945 *(sp + 1) = (png_byte)(v & 0xff);
3951 *sp = (png_byte)((png_ptr->background.gray >> 8)
3953 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff);
3960 g = gamma_16_to_1[*(sp + 1) >> gamma_shift][*sp];
3966 *sp = (png_byte)((w >> 8) & 0xff);
3967 *(sp + 1) = (png_byte)(w & 0xff);
3974 sp = row;
3975 for (i = 0; i < row_width; i++, sp += 4)
3977 png_uint_16 a = (png_uint_16)(((*(sp + 2)) << 8)
3978 + *(sp + 3));
3982 *sp = (png_byte)((png_ptr->background.gray >> 8)
3984 *(sp + 1) = (png_byte)(png_ptr->background.gray & 0xff);
3991 g = (png_uint_16)(((*sp) << 8) + *(sp + 1));
3993 *sp = (png_byte)((v >> 8) & 0xff);
3994 *(sp + 1) = (png_byte)(v & 0xff);
4010 sp = row;
4011 for (i = 0; i < row_width; i++, sp += 4)
4013 png_byte a = *(sp + 3);
4017 *sp = gamma_table[*sp];
4018 *(sp + 1) = gamma_table[*(sp + 1)];
4019 *(sp + 2) = gamma_table[*(sp + 2)];
4025 *sp = (png_byte)png_ptr->background.red;
4026 *(sp + 1) = (png_byte)png_ptr->background.green;
4027 *(sp + 2) = (png_byte)png_ptr->background.blue;
4034 v = gamma_to_1[*sp];
4037 *sp = w;
4039 v = gamma_to_1[*(sp + 1)];
4042 *(sp + 1) = w;
4044 v = gamma_to_1[*(sp + 2)];
4047 *(sp + 2) = w;
4054 sp = row;
4055 for (i = 0; i < row_width; i++, sp += 4)
4057 png_byte a = *(sp + 3);
4061 *sp = (png_byte)png_ptr->background.red;
4062 *(sp + 1) = (png_byte)png_ptr->background.green;
4063 *(sp + 2) = (png_byte)png_ptr->background.blue;
4068 png_composite(*sp, *sp, a, png_ptr->background.red);
4070 png_composite(*(sp + 1), *(sp + 1), a,
4073 png_composite(*(sp + 2), *(sp + 2), a,
4085 sp = row;
4086 for (i = 0; i < row_width; i++, sp += 8)
4088 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6))
4089 << 8) + (png_uint_16)(*(sp + 7)));
4095 v = gamma_16[*(sp + 1) >> gamma_shift][*sp];
4096 *sp = (png_byte)((v >> 8) & 0xff);
4097 *(sp + 1) = (png_byte)(v & 0xff);
4099 v = gamma_16[*(sp + 3) >> gamma_shift][*(sp + 2)];
4100 *(sp + 2) = (png_byte)((v >> 8) & 0xff);
4101 *(sp + 3) = (png_byte)(v & 0xff);
4103 v = gamma_16[*(sp + 5) >> gamma_shift][*(sp + 4)];
4104 *(sp + 4) = (png_byte)((v >> 8) & 0xff);
4105 *(sp + 5) = (png_byte)(v & 0xff);
4111 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
4112 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
4113 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8)
4115 *(sp + 3) = (png_byte)(png_ptr->background.green
4117 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8)
4119 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff);
4126 v = gamma_16_to_1[*(sp + 1) >> gamma_shift][*sp];
4131 *sp = (png_byte)((w >> 8) & 0xff);
4132 *(sp + 1) = (png_byte)(w & 0xff);
4134 v = gamma_16_to_1[*(sp + 3) >> gamma_shift][*(sp + 2)];
4140 *(sp + 2) = (png_byte)((w >> 8) & 0xff);
4141 *(sp + 3) = (png_byte)(w & 0xff);
4143 v = gamma_16_to_1[*(sp + 5) >> gamma_shift][*(sp + 4)];
4149 *(sp + 4) = (png_byte)((w >> 8) & 0xff);
4150 *(sp + 5) = (png_byte)(w & 0xff);
4158 sp = row;
4159 for (i = 0; i < row_width; i++, sp += 8)
4161 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6))
4162 << 8) + (png_uint_16)(*(sp + 7)));
4166 *sp = (png_byte)((png_ptr->background.red >> 8) & 0xff);
4167 *(sp + 1) = (png_byte)(png_ptr->background.red & 0xff);
4168 *(sp + 2) = (png_byte)((png_ptr->background.green >> 8)
4170 *(sp + 3) = (png_byte)(png_ptr->background.green
4172 *(sp + 4) = (png_byte)((png_ptr->background.blue >> 8)
4174 *(sp + 5) = (png_byte)(png_ptr->background.blue & 0xff);
4181 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1));
4182 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8)
4183 + *(sp + 3));
4184 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8)
4185 + *(sp + 5));
4188 *sp = (png_byte)((v >> 8) & 0xff);
4189 *(sp + 1) = (png_byte)(v & 0xff);
4192 *(sp + 2) = (png_byte)((v >> 8) & 0xff);
4193 *(sp + 3) = (png_byte)(v & 0xff);
4196 *(sp + 4) = (png_byte)((v >> 8) & 0xff);
4197 *(sp + 5) = (png_byte)(v & 0xff);
4226 png_bytep sp;
4241 sp = row;
4244 *sp = gamma_table[*sp];
4245 sp++;
4246 *sp = gamma_table[*sp];
4247 sp++;
4248 *sp = gamma_table[*sp];
4249 sp++;
4255 sp = row;
4260 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
4261 *sp = (png_byte)((v >> 8) & 0xff);
4262 *(sp + 1) = (png_byte)(v & 0xff);
4263 sp += 2;
4265 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
4266 *sp = (png_byte)((v >> 8) & 0xff);
4267 *(sp + 1) = (png_byte)(v & 0xff);
4268 sp += 2;
4270 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
4271 *sp = (png_byte)((v >> 8) & 0xff);
4272 *(sp + 1) = (png_byte)(v & 0xff);
4273 sp += 2;
4283 sp = row;
4286 *sp = gamma_table[*sp];
4287 sp++;
4289 *sp = gamma_table[*sp];
4290 sp++;
4292 *sp = gamma_table[*sp];
4293 sp++;
4295 sp++;
4301 sp = row;
4304 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
4305 *sp = (png_byte)((v >> 8) & 0xff);
4306 *(sp + 1) = (png_byte)(v & 0xff);
4307 sp += 2;
4309 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
4310 *sp = (png_byte)((v >> 8) & 0xff);
4311 *(sp + 1) = (png_byte)(v & 0xff);
4312 sp += 2;
4314 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
4315 *sp = (png_byte)((v >> 8) & 0xff);
4316 *(sp + 1) = (png_byte)(v & 0xff);
4317 sp += 4;
4327 sp = row;
4330 *sp = gamma_table[*sp];
4331 sp += 2;
4337 sp = row;
4340 png_uint_16 v = gamma_16_table[*(spsp];
4341 *sp = (png_byte)((v >> 8) & 0xff);
4342 *(sp + 1) = (png_byte)(v & 0xff);
4343 sp += 4;
4353 sp = row;
4356 int a = *sp & 0xc0;
4357 int b = *sp & 0x30;
4358 int c = *sp & 0x0c;
4359 int d = *sp & 0x03;
4361 *sp = (png_byte)(
4366 sp++;
4372 sp = row;
4375 int msb = *sp & 0xf0;
4376 int lsb = *sp & 0x0f;
4378 *sp = (png_byte)((((int)gamma_table[msb | (msb >> 4)]) & 0xf0)
4380 sp++;
4386 sp = row;
4389 *sp = gamma_table[*sp];
4390 sp++;
4396 sp = row;
4399 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp];
4400 *sp = (png_byte)((v >> 8) & 0xff);
4401 *(sp + 1) = (png_byte)(v & 0xff);
4402 sp += 2;
4491 png_bytep sp, dp;
4505 sp = row + (png_size_t)((row_width - 1) >> 3);
4510 if ((*sp >> shift) & 0x01)
4519 sp--;
4532 sp = row + (png_size_t)((row_width - 1) >> 2);
4537 value = (*sp >> shift) & 0x03;
4542 sp--;
4555 sp = row + (png_size_t)((row_width - 1) >> 1);
4560 value = (*sp >> shift) & 0x0f;
4565 sp--;
4589 sp = row + (png_size_t)row_width - 1;
4594 if ((int)(*sp) >= num_trans)
4598 *dp-- = trans_alpha[*sp];
4600 *dp-- = palette[*sp].blue;
4601 *dp-- = palette[*sp].green;
4602 *dp-- = palette[*sp].red;
4603 sp--;
4614 sp = row + (png_size_t)row_width - 1;
4619 *dp-- = palette[*sp].blue;
4620 *dp-- = palette[*sp].green;
4621 *dp-- = palette[*sp].red;
4622 sp--;
4644 png_bytep sp, dp;
4662 sp = row + (png_size_t)((row_width - 1) >> 3);
4667 if ((*sp >> shift) & 0x01)
4676 sp--;
4690 sp = row + (png_size_t)((row_width - 1) >> 2);
4695 value = (*sp >> shift) & 0x03;
4701 sp--;
4715 sp = row + (png_size_t)((row_width - 1) >> 1);
4720 value = (*sp >> shift) & 0x0f;
4725 sp--;
4750 sp = row + (png_size_t)row_width - 1;
4755 if (*sp == gray)
4761 *dp-- = *sp--;
4769 sp = row + row_info->rowbytes - 1;
4773 if (*(sp - 1) == gray_high && *(sp) == gray_low)
4785 *dp-- = *sp--;
4786 *dp-- = *sp--;
4804 sp = row + (png_size_t)row_info->rowbytes - 1;
4808 if (*(sp - 2) == red && *(sp - 1) == green && *(sp) == blue)
4814 *dp-- = *sp--;
4815 *dp-- = *sp--;
4816 *dp-- = *sp--;
4827 sp = row + row_info->rowbytes - 1;
4831 if (*(sp - 5) == red_high &&
4832 *(sp - 4) == red_low &&
4833 *(sp - 3) == green_high &&
4834 *(sp - 2) == green_low &&
4835 *(sp - 1) == blue_high &&
4836 *(sp ) == blue_low)
4848 *dp-- = *sp--;
4849 *dp-- = *sp--;
4850 *dp-- = *sp--;
4851 *dp-- = *sp--;
4852 *dp-- = *sp--;
4853 *dp-- = *sp--;
4884 png_byte *sp = row + row_info->rowbytes; /* source, last byte + 1 */
4885 png_byte *dp = sp + row_info->rowbytes; /* destination, end + 1 */
4886 while (dp > sp)
4887 dp[-2] = dp[-1] = *--sp, dp -= 2;
4901 png_bytep sp, dp;
4912 sp = row;
4916 r = *sp++;
4917 g = *sp++;
4918 b = *sp++;
4949 sp = row;
4953 r = *sp++;
4954 g = *sp++;
4955 b = *sp++;
4956 sp++;
4979 sp = row;
4981 for (i = 0; i < row_width; i++, sp++)
4983 *sp = quantize_lookup[*sp];