• Home
  • Raw
  • Download

Lines Matching refs:sp

1609             png_bytep sp = row + (png_size_t)((row_width - 1) >> 3);  in png_do_unpack()  local
1614 *dp = (png_byte)((*sp >> shift) & 0x01); in png_do_unpack()
1618 sp--; in png_do_unpack()
1631 png_bytep sp = row + (png_size_t)((row_width - 1) >> 2); in png_do_unpack() local
1636 *dp = (png_byte)((*sp >> shift) & 0x03); in png_do_unpack()
1640 sp--; in png_do_unpack()
1652 png_bytep sp = row + (png_size_t)((row_width - 1) >> 1); in png_do_unpack() local
1657 *dp = (png_byte)((*sp >> shift) & 0x0f); in png_do_unpack()
1661 sp--; in png_do_unpack()
1805 png_bytep sp = row; in png_do_chop() local
1810 for (i = 0; i<istop; i++, sp += 2, dp++) in png_do_chop()
1838 *dp = *sp + ((((int)(*(sp + 1)) - *sp) > 128) ? 1 : 0); in png_do_chop()
1841 *dp = *sp; in png_do_chop()
1867 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
1868 png_bytep dp = sp; in png_do_read_swap_alpha()
1874 save = *(--sp); in png_do_read_swap_alpha()
1875 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1876 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1877 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1884 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
1885 png_bytep dp = sp; in png_do_read_swap_alpha()
1891 save[0] = *(--sp); in png_do_read_swap_alpha()
1892 save[1] = *(--sp); in png_do_read_swap_alpha()
1893 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1894 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1895 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1896 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1897 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1898 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1909 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
1910 png_bytep dp = sp; in png_do_read_swap_alpha()
1916 save = *(--sp); in png_do_read_swap_alpha()
1917 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1924 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
1925 png_bytep dp = sp; in png_do_read_swap_alpha()
1931 save[0] = *(--sp); in png_do_read_swap_alpha()
1932 save[1] = *(--sp); in png_do_read_swap_alpha()
1933 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1934 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1960 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
1961 png_bytep dp = sp; in png_do_read_invert_alpha()
1966 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
1974 sp-=3; in png_do_read_invert_alpha()
1975 dp=sp; in png_do_read_invert_alpha()
1981 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
1982 png_bytep dp = sp; in png_do_read_invert_alpha()
1987 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
1988 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
1999 sp-=6; in png_do_read_invert_alpha()
2000 dp=sp; in png_do_read_invert_alpha()
2009 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
2010 png_bytep dp = sp; in png_do_read_invert_alpha()
2015 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2016 *(--dp) = *(--sp); in png_do_read_invert_alpha()
2022 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
2023 png_bytep dp = sp; in png_do_read_invert_alpha()
2028 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2029 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2034 sp-=2; in png_do_read_invert_alpha()
2035 dp=sp; in png_do_read_invert_alpha()
2068 png_bytep sp = row + (png_size_t)row_width; in png_do_read_filler() local
2069 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2073 *(--dp) = *(--sp); in png_do_read_filler()
2083 png_bytep sp = row + (png_size_t)row_width; in png_do_read_filler() local
2084 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2087 *(--dp) = *(--sp); in png_do_read_filler()
2100 png_bytep sp = row + (png_size_t)row_width * 2; in png_do_read_filler() local
2101 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2106 *(--dp) = *(--sp); in png_do_read_filler()
2107 *(--dp) = *(--sp); in png_do_read_filler()
2118 png_bytep sp = row + (png_size_t)row_width * 2; in png_do_read_filler() local
2119 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2122 *(--dp) = *(--sp); in png_do_read_filler()
2123 *(--dp) = *(--sp); in png_do_read_filler()
2140 png_bytep sp = row + (png_size_t)row_width * 3; in png_do_read_filler() local
2141 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2145 *(--dp) = *(--sp); in png_do_read_filler()
2146 *(--dp) = *(--sp); in png_do_read_filler()
2147 *(--dp) = *(--sp); in png_do_read_filler()
2157 png_bytep sp = row + (png_size_t)row_width * 3; in png_do_read_filler() local
2158 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2161 *(--dp) = *(--sp); in png_do_read_filler()
2162 *(--dp) = *(--sp); in png_do_read_filler()
2163 *(--dp) = *(--sp); in png_do_read_filler()
2176 png_bytep sp = row + (png_size_t)row_width * 6; in png_do_read_filler() local
2177 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2182 *(--dp) = *(--sp); in png_do_read_filler()
2183 *(--dp) = *(--sp); in png_do_read_filler()
2184 *(--dp) = *(--sp); in png_do_read_filler()
2185 *(--dp) = *(--sp); in png_do_read_filler()
2186 *(--dp) = *(--sp); in png_do_read_filler()
2187 *(--dp) = *(--sp); in png_do_read_filler()
2198 png_bytep sp = row + (png_size_t)row_width * 6; in png_do_read_filler() local
2199 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2202 *(--dp) = *(--sp); in png_do_read_filler()
2203 *(--dp) = *(--sp); in png_do_read_filler()
2204 *(--dp) = *(--sp); in png_do_read_filler()
2205 *(--dp) = *(--sp); in png_do_read_filler()
2206 *(--dp) = *(--sp); in png_do_read_filler()
2207 *(--dp) = *(--sp); in png_do_read_filler()
2240 png_bytep sp = row + (png_size_t)row_width - 1; in png_do_gray_to_rgb() local
2241 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_gray_to_rgb()
2244 *(dp--) = *sp; in png_do_gray_to_rgb()
2245 *(dp--) = *sp; in png_do_gray_to_rgb()
2246 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2251 png_bytep sp = row + (png_size_t)row_width * 2 - 1; in png_do_gray_to_rgb() local
2252 png_bytep dp = sp + (png_size_t)row_width * 4; in png_do_gray_to_rgb()
2255 *(dp--) = *sp; in png_do_gray_to_rgb()
2256 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2257 *(dp--) = *sp; in png_do_gray_to_rgb()
2258 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2259 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2260 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2268 png_bytep sp = row + (png_size_t)row_width * 2 - 1; in png_do_gray_to_rgb() local
2269 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_gray_to_rgb()
2272 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2273 *(dp--) = *sp; in png_do_gray_to_rgb()
2274 *(dp--) = *sp; in png_do_gray_to_rgb()
2275 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2280 png_bytep sp = row + (png_size_t)row_width * 4 - 1; in png_do_gray_to_rgb() local
2281 png_bytep dp = sp + (png_size_t)row_width * 4; in png_do_gray_to_rgb()
2284 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2285 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2286 *(dp--) = *sp; in png_do_gray_to_rgb()
2287 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2288 *(dp--) = *sp; in png_do_gray_to_rgb()
2289 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2290 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2291 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2354 png_bytep sp = row; in png_do_rgb_to_gray() local
2359 png_byte red = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2360 png_byte green = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2361 png_byte blue = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2369 *(dp++) = *(sp - 1); in png_do_rgb_to_gray()
2375 png_bytep sp = row; in png_do_rgb_to_gray() local
2379 png_byte red = *(sp++); in png_do_rgb_to_gray()
2380 png_byte green = *(sp++); in png_do_rgb_to_gray()
2381 png_byte blue = *(sp++); in png_do_rgb_to_gray()
2388 *(dp++) = *(sp - 1); in png_do_rgb_to_gray()
2399 png_bytep sp = row; in png_do_rgb_to_gray() local
2405 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2406 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2407 blue = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2434 png_bytep sp = row; in png_do_rgb_to_gray() local
2440 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2441 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2442 blue = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2460 png_bytep sp = row; in png_do_rgb_to_gray() local
2464 png_byte red = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2465 png_byte green = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2466 png_byte blue = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2471 *(dp++) = *(sp++); /* alpha */ in png_do_rgb_to_gray()
2477 png_bytep sp = row; in png_do_rgb_to_gray() local
2481 png_byte red = *(sp++); in png_do_rgb_to_gray()
2482 png_byte green = *(sp++); in png_do_rgb_to_gray()
2483 png_byte blue = *(sp++); in png_do_rgb_to_gray()
2487 *(dp++) = *(sp++); /* alpha */ in png_do_rgb_to_gray()
2497 png_bytep sp = row; in png_do_rgb_to_gray() local
2503 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2504 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2505 blue = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2527 *(dp++) = *(sp++); /* alpha */ in png_do_rgb_to_gray()
2528 *(dp++) = *(sp++); in png_do_rgb_to_gray()
2534 png_bytep sp = row; in png_do_rgb_to_gray() local
2539 red = (png_uint_16)((*(sp)<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2540 green = (png_uint_16)((*(sp)<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2541 blue = (png_uint_16)((*(sp)<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2547 *(dp++) = *(sp++); /* alpha */ in png_do_rgb_to_gray()
2548 *(dp++) = *(sp++); in png_do_rgb_to_gray()
2818 png_bytep sp, dp; in png_do_background() local
2840 sp = row; in png_do_background()
2844 if ((png_uint_16)((*sp >> shift) & 0x01) in png_do_background()
2847 *sp &= (png_byte)((0x7f7f >> (7 - shift)) & 0xff); in png_do_background()
2848 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2853 sp++; in png_do_background()
2866 sp = row; in png_do_background()
2870 if ((png_uint_16)((*sp >> shift) & 0x03) in png_do_background()
2873 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_background()
2874 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2878 png_byte p = (png_byte)((*sp >> shift) & 0x03); in png_do_background()
2881 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_background()
2882 *sp |= (png_byte)(g << shift); in png_do_background()
2887 sp++; in png_do_background()
2896 sp = row; in png_do_background()
2900 if ((png_uint_16)((*sp >> shift) & 0x03) in png_do_background()
2903 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_background()
2904 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2909 sp++; in png_do_background()
2923 sp = row; in png_do_background()
2927 if ((png_uint_16)((*sp >> shift) & 0x0f) in png_do_background()
2930 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_background()
2931 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2935 png_byte p = (png_byte)((*sp >> shift) & 0x0f); in png_do_background()
2938 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_background()
2939 *sp |= (png_byte)(g << shift); in png_do_background()
2944 sp++; in png_do_background()
2953 sp = row; in png_do_background()
2957 if ((png_uint_16)((*sp >> shift) & 0x0f) in png_do_background()
2960 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_background()
2961 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2966 sp++; in png_do_background()
2980 sp = row; in png_do_background()
2981 for (i = 0; i < row_width; i++, sp++) in png_do_background()
2983 if (*sp == trans_values->gray) in png_do_background()
2985 *sp = (png_byte)background->gray; in png_do_background()
2989 *sp = gamma_table[*sp]; in png_do_background()
2996 sp = row; in png_do_background()
2997 for (i = 0; i < row_width; i++, sp++) in png_do_background()
2999 if (*sp == trans_values->gray) in png_do_background()
3001 *sp = (png_byte)background->gray; in png_do_background()
3013 sp = row; in png_do_background()
3014 for (i = 0; i < row_width; i++, sp += 2) in png_do_background()
3018 v = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_background()
3022 *sp = (png_byte)((background->gray >> 8) & 0xff); in png_do_background()
3023 *(sp + 1) = (png_byte)(background->gray & 0xff); in png_do_background()
3027 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3028 *sp = (png_byte)((v >> 8) & 0xff); in png_do_background()
3029 *(sp + 1) = (png_byte)(v & 0xff); in png_do_background()
3036 sp = row; in png_do_background()
3037 for (i = 0; i < row_width; i++, sp += 2) in png_do_background()
3041 v = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_background()
3044 *sp = (png_byte)((background->gray >> 8) & 0xff); in png_do_background()
3045 *(sp + 1) = (png_byte)(background->gray & 0xff); in png_do_background()
3062 sp = row; in png_do_background()
3063 for (i = 0; i < row_width; i++, sp += 3) in png_do_background()
3065 if (*sp == trans_values->red && in png_do_background()
3066 *(sp + 1) == trans_values->green && in png_do_background()
3067 *(sp + 2) == trans_values->blue) in png_do_background()
3069 *sp = (png_byte)background->red; in png_do_background()
3070 *(sp + 1) = (png_byte)background->green; in png_do_background()
3071 *(sp + 2) = (png_byte)background->blue; in png_do_background()
3075 *sp = gamma_table[*sp]; in png_do_background()
3076 *(sp + 1) = gamma_table[*(sp + 1)]; in png_do_background()
3077 *(sp + 2) = gamma_table[*(sp + 2)]; in png_do_background()
3084 sp = row; in png_do_background()
3085 for (i = 0; i < row_width; i++, sp += 3) in png_do_background()
3087 if (*sp == trans_values->red && in png_do_background()
3088 *(sp + 1) == trans_values->green && in png_do_background()
3089 *(sp + 2) == trans_values->blue) in png_do_background()
3091 *sp = (png_byte)background->red; in png_do_background()
3092 *(sp + 1) = (png_byte)background->green; in png_do_background()
3093 *(sp + 2) = (png_byte)background->blue; in png_do_background()
3103 sp = row; in png_do_background()
3104 for (i = 0; i < row_width; i++, sp += 6) in png_do_background()
3106 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_background()
3107 png_uint_16 g = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3)); in png_do_background()
3108 png_uint_16 b = (png_uint_16)(((*(sp+4)) << 8) + *(sp+5)); in png_do_background()
3113 *sp = (png_byte)((background->red >> 8) & 0xff); in png_do_background()
3114 *(sp + 1) = (png_byte)(background->red & 0xff); in png_do_background()
3115 *(sp + 2) = (png_byte)((background->green >> 8) & 0xff); in png_do_background()
3116 *(sp + 3) = (png_byte)(background->green & 0xff); in png_do_background()
3117 *(sp + 4) = (png_byte)((background->blue >> 8) & 0xff); in png_do_background()
3118 *(sp + 5) = (png_byte)(background->blue & 0xff); in png_do_background()
3122 png_uint_16 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3123 *sp = (png_byte)((v >> 8) & 0xff); in png_do_background()
3124 *(sp + 1) = (png_byte)(v & 0xff); in png_do_background()
3125 v = gamma_16[*(sp + 3) >> gamma_shift][*(sp + 2)]; in png_do_background()
3126 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_background()
3127 *(sp + 3) = (png_byte)(v & 0xff); in png_do_background()
3128 v = gamma_16[*(sp + 5) >> gamma_shift][*(sp + 4)]; in png_do_background()
3129 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_background()
3130 *(sp + 5) = (png_byte)(v & 0xff); in png_do_background()
3137 sp = row; in png_do_background()
3138 for (i = 0; i < row_width; i++, sp += 6) in png_do_background()
3140 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp+1)); in png_do_background()
3141 png_uint_16 g = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3)); in png_do_background()
3142 png_uint_16 b = (png_uint_16)(((*(sp+4)) << 8) + *(sp+5)); in png_do_background()
3147 *sp = (png_byte)((background->red >> 8) & 0xff); in png_do_background()
3148 *(sp + 1) = (png_byte)(background->red & 0xff); in png_do_background()
3149 *(sp + 2) = (png_byte)((background->green >> 8) & 0xff); in png_do_background()
3150 *(sp + 3) = (png_byte)(background->green & 0xff); in png_do_background()
3151 *(sp + 4) = (png_byte)((background->blue >> 8) & 0xff); in png_do_background()
3152 *(sp + 5) = (png_byte)(background->blue & 0xff); in png_do_background()
3168 sp = row; in png_do_background()
3170 for (i = 0; i < row_width; i++, sp += 2, dp++) in png_do_background()
3172 png_uint_16 a = *(sp + 1); in png_do_background()
3176 *dp = gamma_table[*sp]; in png_do_background()
3187 v = gamma_to_1[*sp]; in png_do_background()
3196 sp = row; in png_do_background()
3198 for (i = 0; i < row_width; i++, sp += 2, dp++) in png_do_background()
3200 png_byte a = *(sp + 1); in png_do_background()
3204 *dp = *sp; in png_do_background()
3213 png_composite(*dp, *sp, a, background_1->gray); in png_do_background()
3227 sp = row; in png_do_background()
3229 for (i = 0; i < row_width; i++, sp += 4, dp += 2) in png_do_background()
3231 png_uint_16 a = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3)); in png_do_background()
3237 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3256 g = gamma_16_to_1[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3268 sp = row; in png_do_background()
3270 for (i = 0; i < row_width; i++, sp += 4, dp += 2) in png_do_background()
3272 png_uint_16 a = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3)); in png_do_background()
3275 png_memcpy(dp, sp, 2); in png_do_background()
3291 g = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_background()
3311 sp = row; in png_do_background()
3313 for (i = 0; i < row_width; i++, sp += 4, dp += 3) in png_do_background()
3315 png_byte a = *(sp + 3); in png_do_background()
3319 *dp = gamma_table[*sp]; in png_do_background()
3320 *(dp + 1) = gamma_table[*(sp + 1)]; in png_do_background()
3321 *(dp + 2) = gamma_table[*(sp + 2)]; in png_do_background()
3334 v = gamma_to_1[*sp]; in png_do_background()
3337 v = gamma_to_1[*(sp + 1)]; in png_do_background()
3340 v = gamma_to_1[*(sp + 2)]; in png_do_background()
3349 sp = row; in png_do_background()
3351 for (i = 0; i < row_width; i++, sp += 4, dp += 3) in png_do_background()
3353 png_byte a = *(sp + 3); in png_do_background()
3357 *dp = *sp; in png_do_background()
3358 *(dp + 1) = *(sp + 1); in png_do_background()
3359 *(dp + 2) = *(sp + 2); in png_do_background()
3369 png_composite(*dp, *sp, a, background->red); in png_do_background()
3370 png_composite(*(dp + 1), *(sp + 1), a, in png_do_background()
3372 png_composite(*(dp + 2), *(sp + 2), a, in png_do_background()
3384 sp = row; in png_do_background()
3386 for (i = 0; i < row_width; i++, sp += 8, dp += 6) in png_do_background()
3388 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6)) in png_do_background()
3389 << 8) + (png_uint_16)(*(sp + 7))); in png_do_background()
3394 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3397 v = gamma_16[*(sp + 3) >> gamma_shift][*(sp + 2)]; in png_do_background()
3400 v = gamma_16[*(sp + 5) >> gamma_shift][*(sp + 4)]; in png_do_background()
3418 v = gamma_16_to_1[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3423 v = gamma_16_to_1[*(sp + 3) >> gamma_shift][*(sp + 2)]; in png_do_background()
3428 v = gamma_16_to_1[*(sp + 5) >> gamma_shift][*(sp + 4)]; in png_do_background()
3439 sp = row; in png_do_background()
3441 for (i = 0; i < row_width; i++, sp += 8, dp += 6) in png_do_background()
3443 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6)) in png_do_background()
3444 << 8) + (png_uint_16)(*(sp + 7))); in png_do_background()
3447 png_memcpy(dp, sp, 6); in png_do_background()
3462 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_background()
3463 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) in png_do_background()
3464 + *(sp + 3)); in png_do_background()
3465 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) in png_do_background()
3466 + *(sp + 5)); in png_do_background()
3509 png_bytep sp; in png_do_gamma() local
3528 sp = row; in png_do_gamma()
3531 *sp = gamma_table[*sp]; in png_do_gamma()
3532 sp++; in png_do_gamma()
3533 *sp = gamma_table[*sp]; in png_do_gamma()
3534 sp++; in png_do_gamma()
3535 *sp = gamma_table[*sp]; in png_do_gamma()
3536 sp++; in png_do_gamma()
3541 sp = row; in png_do_gamma()
3546 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3547 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3548 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3549 sp += 2; in png_do_gamma()
3550 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3551 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3552 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3553 sp += 2; in png_do_gamma()
3554 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3555 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3556 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3557 sp += 2; in png_do_gamma()
3567 sp = row; in png_do_gamma()
3570 *sp = gamma_table[*sp]; in png_do_gamma()
3571 sp++; in png_do_gamma()
3572 *sp = gamma_table[*sp]; in png_do_gamma()
3573 sp++; in png_do_gamma()
3574 *sp = gamma_table[*sp]; in png_do_gamma()
3575 sp++; in png_do_gamma()
3576 sp++; in png_do_gamma()
3581 sp = row; in png_do_gamma()
3584 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3585 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3586 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3587 sp += 2; in png_do_gamma()
3588 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3589 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3590 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3591 sp += 2; in png_do_gamma()
3592 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3593 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3594 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3595 sp += 4; in png_do_gamma()
3605 sp = row; in png_do_gamma()
3608 *sp = gamma_table[*sp]; in png_do_gamma()
3609 sp += 2; in png_do_gamma()
3614 sp = row; in png_do_gamma()
3617 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3618 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3619 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3620 sp += 4; in png_do_gamma()
3630 sp = row; in png_do_gamma()
3633 int a = *sp & 0xc0; in png_do_gamma()
3634 int b = *sp & 0x30; in png_do_gamma()
3635 int c = *sp & 0x0c; in png_do_gamma()
3636 int d = *sp & 0x03; in png_do_gamma()
3638 *sp = (png_byte)( in png_do_gamma()
3643 sp++; in png_do_gamma()
3649 sp = row; in png_do_gamma()
3652 int msb = *sp & 0xf0; in png_do_gamma()
3653 int lsb = *sp & 0x0f; in png_do_gamma()
3655 *sp = (png_byte)((((int)gamma_table[msb | (msb >> 4)]) & 0xf0) in png_do_gamma()
3657 sp++; in png_do_gamma()
3663 sp = row; in png_do_gamma()
3666 *sp = gamma_table[*sp]; in png_do_gamma()
3667 sp++; in png_do_gamma()
3673 sp = row; in png_do_gamma()
3676 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3677 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3678 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3679 sp += 2; in png_do_gamma()
3698 png_bytep sp, dp; in png_do_expand_palette() local
3716 sp = row + (png_size_t)((row_width - 1) >> 3); in png_do_expand_palette()
3721 if ((*sp >> shift) & 0x01) in png_do_expand_palette()
3728 sp--; in png_do_expand_palette()
3740 sp = row + (png_size_t)((row_width - 1) >> 2); in png_do_expand_palette()
3745 value = (*sp >> shift) & 0x03; in png_do_expand_palette()
3750 sp--; in png_do_expand_palette()
3762 sp = row + (png_size_t)((row_width - 1) >> 1); in png_do_expand_palette()
3767 value = (*sp >> shift) & 0x0f; in png_do_expand_palette()
3772 sp--; in png_do_expand_palette()
3792 sp = row + (png_size_t)row_width - 1; in png_do_expand_palette()
3797 if ((int)(*sp) >= num_trans) in png_do_expand_palette()
3800 *dp-- = trans[*sp]; in png_do_expand_palette()
3801 *dp-- = palette[*sp].blue; in png_do_expand_palette()
3802 *dp-- = palette[*sp].green; in png_do_expand_palette()
3803 *dp-- = palette[*sp].red; in png_do_expand_palette()
3804 sp--; in png_do_expand_palette()
3814 sp = row + (png_size_t)row_width - 1; in png_do_expand_palette()
3819 *dp-- = palette[*sp].blue; in png_do_expand_palette()
3820 *dp-- = palette[*sp].green; in png_do_expand_palette()
3821 *dp-- = palette[*sp].red; in png_do_expand_palette()
3822 sp--; in png_do_expand_palette()
3845 png_bytep sp, dp; in png_do_expand() local
3866 sp = row + (png_size_t)((row_width - 1) >> 3); in png_do_expand()
3871 if ((*sp >> shift) & 0x01) in png_do_expand()
3878 sp--; in png_do_expand()
3891 sp = row + (png_size_t)((row_width - 1) >> 2); in png_do_expand()
3896 value = (*sp >> shift) & 0x03; in png_do_expand()
3902 sp--; in png_do_expand()
3915 sp = row + (png_size_t)((row_width - 1) >> 1); in png_do_expand()
3920 value = (*sp >> shift) & 0x0f; in png_do_expand()
3925 sp--; in png_do_expand()
3946 sp = row + (png_size_t)row_width - 1; in png_do_expand()
3950 if (*sp == gray) in png_do_expand()
3954 *dp-- = *sp--; in png_do_expand()
3962 sp = row + row_info->rowbytes - 1; in png_do_expand()
3966 if (*(sp - 1) == gray_high && *(sp) == gray_low) in png_do_expand()
3976 *dp-- = *sp--; in png_do_expand()
3977 *dp-- = *sp--; in png_do_expand()
3995 sp = row + (png_size_t)row_info->rowbytes - 1; in png_do_expand()
3999 if (*(sp - 2) == red && *(sp - 1) == green && *(sp) == blue) in png_do_expand()
4003 *dp-- = *sp--; in png_do_expand()
4004 *dp-- = *sp--; in png_do_expand()
4005 *dp-- = *sp--; in png_do_expand()
4016 sp = row + row_info->rowbytes - 1; in png_do_expand()
4020 if (*(sp - 5) == red_high && in png_do_expand()
4021 *(sp - 4) == red_low && in png_do_expand()
4022 *(sp - 3) == green_high && in png_do_expand()
4023 *(sp - 2) == green_low && in png_do_expand()
4024 *(sp - 1) == blue_high && in png_do_expand()
4025 *(sp ) == blue_low) in png_do_expand()
4035 *dp-- = *sp--; in png_do_expand()
4036 *dp-- = *sp--; in png_do_expand()
4037 *dp-- = *sp--; in png_do_expand()
4038 *dp-- = *sp--; in png_do_expand()
4039 *dp-- = *sp--; in png_do_expand()
4040 *dp-- = *sp--; in png_do_expand()
4057 png_bytep sp, dp; in png_do_dither() local
4071 sp = row; in png_do_dither()
4075 r = *sp++; in png_do_dither()
4076 g = *sp++; in png_do_dither()
4077 b = *sp++; in png_do_dither()
4106 sp = row; in png_do_dither()
4110 r = *sp++; in png_do_dither()
4111 g = *sp++; in png_do_dither()
4112 b = *sp++; in png_do_dither()
4113 sp++; in png_do_dither()
4134 sp = row; in png_do_dither()
4135 for (i = 0; i < row_width; i++, sp++) in png_do_dither()
4137 *sp = dither_lookup[*sp]; in png_do_dither()