• Home
  • Raw
  • Download

Lines Matching refs:sp

1599             png_bytep sp = row + (png_size_t)((row_width - 1) >> 3);  in png_do_unpack()  local
1604 *dp = (png_byte)((*sp >> shift) & 0x01); in png_do_unpack()
1608 sp--; in png_do_unpack()
1621 png_bytep sp = row + (png_size_t)((row_width - 1) >> 2); in png_do_unpack() local
1626 *dp = (png_byte)((*sp >> shift) & 0x03); in png_do_unpack()
1630 sp--; in png_do_unpack()
1642 png_bytep sp = row + (png_size_t)((row_width - 1) >> 1); in png_do_unpack() local
1647 *dp = (png_byte)((*sp >> shift) & 0x0f); in png_do_unpack()
1651 sp--; in png_do_unpack()
1795 png_bytep sp = row; in png_do_chop() local
1800 for (i = 0; i<istop; i++, sp += 2, dp++) in png_do_chop()
1828 *dp = *sp + ((((int)(*(sp + 1)) - *sp) > 128) ? 1 : 0); in png_do_chop()
1831 *dp = *sp; in png_do_chop()
1857 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
1858 png_bytep dp = sp; in png_do_read_swap_alpha()
1864 save = *(--sp); in png_do_read_swap_alpha()
1865 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1866 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1867 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1874 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
1875 png_bytep dp = sp; in png_do_read_swap_alpha()
1881 save[0] = *(--sp); in png_do_read_swap_alpha()
1882 save[1] = *(--sp); in png_do_read_swap_alpha()
1883 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1884 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1885 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1886 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1887 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1888 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1899 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
1900 png_bytep dp = sp; in png_do_read_swap_alpha()
1906 save = *(--sp); in png_do_read_swap_alpha()
1907 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1914 png_bytep sp = row + row_info->rowbytes; in png_do_read_swap_alpha() local
1915 png_bytep dp = sp; in png_do_read_swap_alpha()
1921 save[0] = *(--sp); in png_do_read_swap_alpha()
1922 save[1] = *(--sp); in png_do_read_swap_alpha()
1923 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1924 *(--dp) = *(--sp); in png_do_read_swap_alpha()
1950 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
1951 png_bytep dp = sp; in png_do_read_invert_alpha()
1956 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
1964 sp-=3; in png_do_read_invert_alpha()
1965 dp=sp; in png_do_read_invert_alpha()
1971 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
1972 png_bytep dp = sp; in png_do_read_invert_alpha()
1977 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
1978 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
1989 sp-=6; in png_do_read_invert_alpha()
1990 dp=sp; in png_do_read_invert_alpha()
1999 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
2000 png_bytep dp = sp; in png_do_read_invert_alpha()
2005 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2006 *(--dp) = *(--sp); in png_do_read_invert_alpha()
2012 png_bytep sp = row + row_info->rowbytes; in png_do_read_invert_alpha() local
2013 png_bytep dp = sp; in png_do_read_invert_alpha()
2018 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2019 *(--dp) = (png_byte)(255 - *(--sp)); in png_do_read_invert_alpha()
2024 sp-=2; in png_do_read_invert_alpha()
2025 dp=sp; in png_do_read_invert_alpha()
2058 png_bytep sp = row + (png_size_t)row_width; in png_do_read_filler() local
2059 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2063 *(--dp) = *(--sp); in png_do_read_filler()
2073 png_bytep sp = row + (png_size_t)row_width; in png_do_read_filler() local
2074 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2077 *(--dp) = *(--sp); in png_do_read_filler()
2090 png_bytep sp = row + (png_size_t)row_width * 2; in png_do_read_filler() local
2091 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2096 *(--dp) = *(--sp); in png_do_read_filler()
2097 *(--dp) = *(--sp); in png_do_read_filler()
2108 png_bytep sp = row + (png_size_t)row_width * 2; in png_do_read_filler() local
2109 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2112 *(--dp) = *(--sp); in png_do_read_filler()
2113 *(--dp) = *(--sp); in png_do_read_filler()
2130 png_bytep sp = row + (png_size_t)row_width * 3; in png_do_read_filler() local
2131 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2135 *(--dp) = *(--sp); in png_do_read_filler()
2136 *(--dp) = *(--sp); in png_do_read_filler()
2137 *(--dp) = *(--sp); in png_do_read_filler()
2147 png_bytep sp = row + (png_size_t)row_width * 3; in png_do_read_filler() local
2148 png_bytep dp = sp + (png_size_t)row_width; in png_do_read_filler()
2151 *(--dp) = *(--sp); in png_do_read_filler()
2152 *(--dp) = *(--sp); in png_do_read_filler()
2153 *(--dp) = *(--sp); in png_do_read_filler()
2166 png_bytep sp = row + (png_size_t)row_width * 6; in png_do_read_filler() local
2167 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2172 *(--dp) = *(--sp); in png_do_read_filler()
2173 *(--dp) = *(--sp); in png_do_read_filler()
2174 *(--dp) = *(--sp); in png_do_read_filler()
2175 *(--dp) = *(--sp); in png_do_read_filler()
2176 *(--dp) = *(--sp); in png_do_read_filler()
2177 *(--dp) = *(--sp); in png_do_read_filler()
2188 png_bytep sp = row + (png_size_t)row_width * 6; in png_do_read_filler() local
2189 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_read_filler()
2192 *(--dp) = *(--sp); in png_do_read_filler()
2193 *(--dp) = *(--sp); in png_do_read_filler()
2194 *(--dp) = *(--sp); in png_do_read_filler()
2195 *(--dp) = *(--sp); in png_do_read_filler()
2196 *(--dp) = *(--sp); in png_do_read_filler()
2197 *(--dp) = *(--sp); in png_do_read_filler()
2230 png_bytep sp = row + (png_size_t)row_width - 1; in png_do_gray_to_rgb() local
2231 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_gray_to_rgb()
2234 *(dp--) = *sp; in png_do_gray_to_rgb()
2235 *(dp--) = *sp; in png_do_gray_to_rgb()
2236 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2241 png_bytep sp = row + (png_size_t)row_width * 2 - 1; in png_do_gray_to_rgb() local
2242 png_bytep dp = sp + (png_size_t)row_width * 4; in png_do_gray_to_rgb()
2245 *(dp--) = *sp; in png_do_gray_to_rgb()
2246 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2247 *(dp--) = *sp; in png_do_gray_to_rgb()
2248 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2249 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2250 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2258 png_bytep sp = row + (png_size_t)row_width * 2 - 1; in png_do_gray_to_rgb() local
2259 png_bytep dp = sp + (png_size_t)row_width * 2; in png_do_gray_to_rgb()
2262 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2263 *(dp--) = *sp; in png_do_gray_to_rgb()
2264 *(dp--) = *sp; in png_do_gray_to_rgb()
2265 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2270 png_bytep sp = row + (png_size_t)row_width * 4 - 1; in png_do_gray_to_rgb() local
2271 png_bytep dp = sp + (png_size_t)row_width * 4; in png_do_gray_to_rgb()
2274 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2275 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2276 *(dp--) = *sp; in png_do_gray_to_rgb()
2277 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2278 *(dp--) = *sp; in png_do_gray_to_rgb()
2279 *(dp--) = *(sp - 1); in png_do_gray_to_rgb()
2280 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2281 *(dp--) = *(sp--); in png_do_gray_to_rgb()
2344 png_bytep sp = row; in png_do_rgb_to_gray() local
2349 png_byte red = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2350 png_byte green = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2351 png_byte blue = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2359 *(dp++) = *(sp - 1); in png_do_rgb_to_gray()
2365 png_bytep sp = row; in png_do_rgb_to_gray() local
2369 png_byte red = *(sp++); in png_do_rgb_to_gray()
2370 png_byte green = *(sp++); in png_do_rgb_to_gray()
2371 png_byte blue = *(sp++); in png_do_rgb_to_gray()
2378 *(dp++) = *(sp - 1); in png_do_rgb_to_gray()
2389 png_bytep sp = row; in png_do_rgb_to_gray() local
2395 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2396 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2397 blue = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2424 png_bytep sp = row; in png_do_rgb_to_gray() local
2430 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2431 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2432 blue = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2450 png_bytep sp = row; in png_do_rgb_to_gray() local
2454 png_byte red = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2455 png_byte green = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2456 png_byte blue = png_ptr->gamma_to_1[*(sp++)]; in png_do_rgb_to_gray()
2461 *(dp++) = *(sp++); /* alpha */ in png_do_rgb_to_gray()
2467 png_bytep sp = row; in png_do_rgb_to_gray() local
2471 png_byte red = *(sp++); in png_do_rgb_to_gray()
2472 png_byte green = *(sp++); in png_do_rgb_to_gray()
2473 png_byte blue = *(sp++); in png_do_rgb_to_gray()
2477 *(dp++) = *(sp++); /* alpha */ in png_do_rgb_to_gray()
2487 png_bytep sp = row; in png_do_rgb_to_gray() local
2493 red = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2494 green = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2495 blue = (png_uint_16)(((*(sp))<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2517 *(dp++) = *(sp++); /* alpha */ in png_do_rgb_to_gray()
2518 *(dp++) = *(sp++); in png_do_rgb_to_gray()
2524 png_bytep sp = row; in png_do_rgb_to_gray() local
2529 red = (png_uint_16)((*(sp)<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2530 green = (png_uint_16)((*(sp)<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2531 blue = (png_uint_16)((*(sp)<<8) | *(sp+1)); sp+=2; in png_do_rgb_to_gray()
2537 *(dp++) = *(sp++); /* alpha */ in png_do_rgb_to_gray()
2538 *(dp++) = *(sp++); in png_do_rgb_to_gray()
2808 png_bytep sp, dp; in png_do_background() local
2830 sp = row; in png_do_background()
2834 if ((png_uint_16)((*sp >> shift) & 0x01) in png_do_background()
2837 *sp &= (png_byte)((0x7f7f >> (7 - shift)) & 0xff); in png_do_background()
2838 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2843 sp++; in png_do_background()
2856 sp = row; in png_do_background()
2860 if ((png_uint_16)((*sp >> shift) & 0x03) in png_do_background()
2863 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_background()
2864 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2868 png_byte p = (png_byte)((*sp >> shift) & 0x03); in png_do_background()
2871 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_background()
2872 *sp |= (png_byte)(g << shift); in png_do_background()
2877 sp++; in png_do_background()
2886 sp = row; in png_do_background()
2890 if ((png_uint_16)((*sp >> shift) & 0x03) in png_do_background()
2893 *sp &= (png_byte)((0x3f3f >> (6 - shift)) & 0xff); in png_do_background()
2894 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2899 sp++; in png_do_background()
2913 sp = row; in png_do_background()
2917 if ((png_uint_16)((*sp >> shift) & 0x0f) in png_do_background()
2920 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_background()
2921 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2925 png_byte p = (png_byte)((*sp >> shift) & 0x0f); in png_do_background()
2928 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_background()
2929 *sp |= (png_byte)(g << shift); in png_do_background()
2934 sp++; in png_do_background()
2943 sp = row; in png_do_background()
2947 if ((png_uint_16)((*sp >> shift) & 0x0f) in png_do_background()
2950 *sp &= (png_byte)((0xf0f >> (4 - shift)) & 0xff); in png_do_background()
2951 *sp |= (png_byte)(background->gray << shift); in png_do_background()
2956 sp++; in png_do_background()
2970 sp = row; in png_do_background()
2971 for (i = 0; i < row_width; i++, sp++) in png_do_background()
2973 if (*sp == trans_values->gray) in png_do_background()
2975 *sp = (png_byte)background->gray; in png_do_background()
2979 *sp = gamma_table[*sp]; in png_do_background()
2986 sp = row; in png_do_background()
2987 for (i = 0; i < row_width; i++, sp++) in png_do_background()
2989 if (*sp == trans_values->gray) in png_do_background()
2991 *sp = (png_byte)background->gray; in png_do_background()
3003 sp = row; in png_do_background()
3004 for (i = 0; i < row_width; i++, sp += 2) in png_do_background()
3008 v = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_background()
3012 *sp = (png_byte)((background->gray >> 8) & 0xff); in png_do_background()
3013 *(sp + 1) = (png_byte)(background->gray & 0xff); in png_do_background()
3017 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3018 *sp = (png_byte)((v >> 8) & 0xff); in png_do_background()
3019 *(sp + 1) = (png_byte)(v & 0xff); in png_do_background()
3026 sp = row; in png_do_background()
3027 for (i = 0; i < row_width; i++, sp += 2) in png_do_background()
3031 v = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_background()
3034 *sp = (png_byte)((background->gray >> 8) & 0xff); in png_do_background()
3035 *(sp + 1) = (png_byte)(background->gray & 0xff); in png_do_background()
3052 sp = row; in png_do_background()
3053 for (i = 0; i < row_width; i++, sp += 3) in png_do_background()
3055 if (*sp == trans_values->red && in png_do_background()
3056 *(sp + 1) == trans_values->green && in png_do_background()
3057 *(sp + 2) == trans_values->blue) in png_do_background()
3059 *sp = (png_byte)background->red; in png_do_background()
3060 *(sp + 1) = (png_byte)background->green; in png_do_background()
3061 *(sp + 2) = (png_byte)background->blue; in png_do_background()
3065 *sp = gamma_table[*sp]; in png_do_background()
3066 *(sp + 1) = gamma_table[*(sp + 1)]; in png_do_background()
3067 *(sp + 2) = gamma_table[*(sp + 2)]; in png_do_background()
3074 sp = row; in png_do_background()
3075 for (i = 0; i < row_width; i++, sp += 3) in png_do_background()
3077 if (*sp == trans_values->red && in png_do_background()
3078 *(sp + 1) == trans_values->green && in png_do_background()
3079 *(sp + 2) == trans_values->blue) in png_do_background()
3081 *sp = (png_byte)background->red; in png_do_background()
3082 *(sp + 1) = (png_byte)background->green; in png_do_background()
3083 *(sp + 2) = (png_byte)background->blue; in png_do_background()
3093 sp = row; in png_do_background()
3094 for (i = 0; i < row_width; i++, sp += 6) in png_do_background()
3096 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_background()
3097 png_uint_16 g = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3)); in png_do_background()
3098 png_uint_16 b = (png_uint_16)(((*(sp+4)) << 8) + *(sp+5)); in png_do_background()
3103 *sp = (png_byte)((background->red >> 8) & 0xff); in png_do_background()
3104 *(sp + 1) = (png_byte)(background->red & 0xff); in png_do_background()
3105 *(sp + 2) = (png_byte)((background->green >> 8) & 0xff); in png_do_background()
3106 *(sp + 3) = (png_byte)(background->green & 0xff); in png_do_background()
3107 *(sp + 4) = (png_byte)((background->blue >> 8) & 0xff); in png_do_background()
3108 *(sp + 5) = (png_byte)(background->blue & 0xff); in png_do_background()
3112 png_uint_16 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3113 *sp = (png_byte)((v >> 8) & 0xff); in png_do_background()
3114 *(sp + 1) = (png_byte)(v & 0xff); in png_do_background()
3115 v = gamma_16[*(sp + 3) >> gamma_shift][*(sp + 2)]; in png_do_background()
3116 *(sp + 2) = (png_byte)((v >> 8) & 0xff); in png_do_background()
3117 *(sp + 3) = (png_byte)(v & 0xff); in png_do_background()
3118 v = gamma_16[*(sp + 5) >> gamma_shift][*(sp + 4)]; in png_do_background()
3119 *(sp + 4) = (png_byte)((v >> 8) & 0xff); in png_do_background()
3120 *(sp + 5) = (png_byte)(v & 0xff); in png_do_background()
3127 sp = row; in png_do_background()
3128 for (i = 0; i < row_width; i++, sp += 6) in png_do_background()
3130 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp+1)); in png_do_background()
3131 png_uint_16 g = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3)); in png_do_background()
3132 png_uint_16 b = (png_uint_16)(((*(sp+4)) << 8) + *(sp+5)); in png_do_background()
3137 *sp = (png_byte)((background->red >> 8) & 0xff); in png_do_background()
3138 *(sp + 1) = (png_byte)(background->red & 0xff); in png_do_background()
3139 *(sp + 2) = (png_byte)((background->green >> 8) & 0xff); in png_do_background()
3140 *(sp + 3) = (png_byte)(background->green & 0xff); in png_do_background()
3141 *(sp + 4) = (png_byte)((background->blue >> 8) & 0xff); in png_do_background()
3142 *(sp + 5) = (png_byte)(background->blue & 0xff); in png_do_background()
3158 sp = row; in png_do_background()
3160 for (i = 0; i < row_width; i++, sp += 2, dp++) in png_do_background()
3162 png_uint_16 a = *(sp + 1); in png_do_background()
3166 *dp = gamma_table[*sp]; in png_do_background()
3177 v = gamma_to_1[*sp]; in png_do_background()
3186 sp = row; in png_do_background()
3188 for (i = 0; i < row_width; i++, sp += 2, dp++) in png_do_background()
3190 png_byte a = *(sp + 1); in png_do_background()
3194 *dp = *sp; in png_do_background()
3203 png_composite(*dp, *sp, a, background_1->gray); in png_do_background()
3217 sp = row; in png_do_background()
3219 for (i = 0; i < row_width; i++, sp += 4, dp += 2) in png_do_background()
3221 png_uint_16 a = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3)); in png_do_background()
3227 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3246 g = gamma_16_to_1[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3258 sp = row; in png_do_background()
3260 for (i = 0; i < row_width; i++, sp += 4, dp += 2) in png_do_background()
3262 png_uint_16 a = (png_uint_16)(((*(sp+2)) << 8) + *(sp+3)); in png_do_background()
3265 png_memcpy(dp, sp, 2); in png_do_background()
3281 g = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_background()
3301 sp = row; in png_do_background()
3303 for (i = 0; i < row_width; i++, sp += 4, dp += 3) in png_do_background()
3305 png_byte a = *(sp + 3); in png_do_background()
3309 *dp = gamma_table[*sp]; in png_do_background()
3310 *(dp + 1) = gamma_table[*(sp + 1)]; in png_do_background()
3311 *(dp + 2) = gamma_table[*(sp + 2)]; in png_do_background()
3324 v = gamma_to_1[*sp]; in png_do_background()
3327 v = gamma_to_1[*(sp + 1)]; in png_do_background()
3330 v = gamma_to_1[*(sp + 2)]; in png_do_background()
3339 sp = row; in png_do_background()
3341 for (i = 0; i < row_width; i++, sp += 4, dp += 3) in png_do_background()
3343 png_byte a = *(sp + 3); in png_do_background()
3347 *dp = *sp; in png_do_background()
3348 *(dp + 1) = *(sp + 1); in png_do_background()
3349 *(dp + 2) = *(sp + 2); in png_do_background()
3359 png_composite(*dp, *sp, a, background->red); in png_do_background()
3360 png_composite(*(dp + 1), *(sp + 1), a, in png_do_background()
3362 png_composite(*(dp + 2), *(sp + 2), a, in png_do_background()
3374 sp = row; in png_do_background()
3376 for (i = 0; i < row_width; i++, sp += 8, dp += 6) in png_do_background()
3378 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6)) in png_do_background()
3379 << 8) + (png_uint_16)(*(sp + 7))); in png_do_background()
3384 v = gamma_16[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3387 v = gamma_16[*(sp + 3) >> gamma_shift][*(sp + 2)]; in png_do_background()
3390 v = gamma_16[*(sp + 5) >> gamma_shift][*(sp + 4)]; in png_do_background()
3408 v = gamma_16_to_1[*(sp + 1) >> gamma_shift][*sp]; in png_do_background()
3413 v = gamma_16_to_1[*(sp + 3) >> gamma_shift][*(sp + 2)]; in png_do_background()
3418 v = gamma_16_to_1[*(sp + 5) >> gamma_shift][*(sp + 4)]; in png_do_background()
3429 sp = row; in png_do_background()
3431 for (i = 0; i < row_width; i++, sp += 8, dp += 6) in png_do_background()
3433 png_uint_16 a = (png_uint_16)(((png_uint_16)(*(sp + 6)) in png_do_background()
3434 << 8) + (png_uint_16)(*(sp + 7))); in png_do_background()
3437 png_memcpy(dp, sp, 6); in png_do_background()
3452 png_uint_16 r = (png_uint_16)(((*sp) << 8) + *(sp + 1)); in png_do_background()
3453 png_uint_16 g = (png_uint_16)(((*(sp + 2)) << 8) in png_do_background()
3454 + *(sp + 3)); in png_do_background()
3455 png_uint_16 b = (png_uint_16)(((*(sp + 4)) << 8) in png_do_background()
3456 + *(sp + 5)); in png_do_background()
3499 png_bytep sp; in png_do_gamma() local
3518 sp = row; in png_do_gamma()
3521 *sp = gamma_table[*sp]; in png_do_gamma()
3522 sp++; in png_do_gamma()
3523 *sp = gamma_table[*sp]; in png_do_gamma()
3524 sp++; in png_do_gamma()
3525 *sp = gamma_table[*sp]; in png_do_gamma()
3526 sp++; in png_do_gamma()
3531 sp = row; in png_do_gamma()
3536 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3537 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3538 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3539 sp += 2; in png_do_gamma()
3540 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3541 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3542 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3543 sp += 2; in png_do_gamma()
3544 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3545 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3546 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3547 sp += 2; in png_do_gamma()
3557 sp = row; in png_do_gamma()
3560 *sp = gamma_table[*sp]; in png_do_gamma()
3561 sp++; in png_do_gamma()
3562 *sp = gamma_table[*sp]; in png_do_gamma()
3563 sp++; in png_do_gamma()
3564 *sp = gamma_table[*sp]; in png_do_gamma()
3565 sp++; in png_do_gamma()
3566 sp++; in png_do_gamma()
3571 sp = row; in png_do_gamma()
3574 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3575 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3576 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3577 sp += 2; in png_do_gamma()
3578 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3579 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3580 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3581 sp += 2; in png_do_gamma()
3582 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3583 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3584 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3585 sp += 4; in png_do_gamma()
3595 sp = row; in png_do_gamma()
3598 *sp = gamma_table[*sp]; in png_do_gamma()
3599 sp += 2; in png_do_gamma()
3604 sp = row; in png_do_gamma()
3607 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3608 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3609 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3610 sp += 4; in png_do_gamma()
3620 sp = row; in png_do_gamma()
3623 int a = *sp & 0xc0; in png_do_gamma()
3624 int b = *sp & 0x30; in png_do_gamma()
3625 int c = *sp & 0x0c; in png_do_gamma()
3626 int d = *sp & 0x03; in png_do_gamma()
3628 *sp = (png_byte)( in png_do_gamma()
3633 sp++; in png_do_gamma()
3639 sp = row; in png_do_gamma()
3642 int msb = *sp & 0xf0; in png_do_gamma()
3643 int lsb = *sp & 0x0f; in png_do_gamma()
3645 *sp = (png_byte)((((int)gamma_table[msb | (msb >> 4)]) & 0xf0) in png_do_gamma()
3647 sp++; in png_do_gamma()
3653 sp = row; in png_do_gamma()
3656 *sp = gamma_table[*sp]; in png_do_gamma()
3657 sp++; in png_do_gamma()
3663 sp = row; in png_do_gamma()
3666 png_uint_16 v = gamma_16_table[*(sp + 1) >> gamma_shift][*sp]; in png_do_gamma()
3667 *sp = (png_byte)((v >> 8) & 0xff); in png_do_gamma()
3668 *(sp + 1) = (png_byte)(v & 0xff); in png_do_gamma()
3669 sp += 2; in png_do_gamma()
3688 png_bytep sp, dp; in png_do_expand_palette() local
3706 sp = row + (png_size_t)((row_width - 1) >> 3); in png_do_expand_palette()
3711 if ((*sp >> shift) & 0x01) in png_do_expand_palette()
3718 sp--; in png_do_expand_palette()
3730 sp = row + (png_size_t)((row_width - 1) >> 2); in png_do_expand_palette()
3735 value = (*sp >> shift) & 0x03; in png_do_expand_palette()
3740 sp--; in png_do_expand_palette()
3752 sp = row + (png_size_t)((row_width - 1) >> 1); in png_do_expand_palette()
3757 value = (*sp >> shift) & 0x0f; in png_do_expand_palette()
3762 sp--; in png_do_expand_palette()
3782 sp = row + (png_size_t)row_width - 1; in png_do_expand_palette()
3787 if ((int)(*sp) >= num_trans) in png_do_expand_palette()
3790 *dp-- = trans[*sp]; in png_do_expand_palette()
3791 *dp-- = palette[*sp].blue; in png_do_expand_palette()
3792 *dp-- = palette[*sp].green; in png_do_expand_palette()
3793 *dp-- = palette[*sp].red; in png_do_expand_palette()
3794 sp--; in png_do_expand_palette()
3804 sp = row + (png_size_t)row_width - 1; in png_do_expand_palette()
3809 *dp-- = palette[*sp].blue; in png_do_expand_palette()
3810 *dp-- = palette[*sp].green; in png_do_expand_palette()
3811 *dp-- = palette[*sp].red; in png_do_expand_palette()
3812 sp--; in png_do_expand_palette()
3835 png_bytep sp, dp; in png_do_expand() local
3856 sp = row + (png_size_t)((row_width - 1) >> 3); in png_do_expand()
3861 if ((*sp >> shift) & 0x01) in png_do_expand()
3868 sp--; in png_do_expand()
3881 sp = row + (png_size_t)((row_width - 1) >> 2); in png_do_expand()
3886 value = (*sp >> shift) & 0x03; in png_do_expand()
3892 sp--; in png_do_expand()
3905 sp = row + (png_size_t)((row_width - 1) >> 1); in png_do_expand()
3910 value = (*sp >> shift) & 0x0f; in png_do_expand()
3915 sp--; in png_do_expand()
3936 sp = row + (png_size_t)row_width - 1; in png_do_expand()
3940 if (*sp == gray) in png_do_expand()
3944 *dp-- = *sp--; in png_do_expand()
3952 sp = row + row_info->rowbytes - 1; in png_do_expand()
3956 if (*(sp - 1) == gray_high && *(sp) == gray_low) in png_do_expand()
3966 *dp-- = *sp--; in png_do_expand()
3967 *dp-- = *sp--; in png_do_expand()
3985 sp = row + (png_size_t)row_info->rowbytes - 1; in png_do_expand()
3989 if (*(sp - 2) == red && *(sp - 1) == green && *(sp) == blue) in png_do_expand()
3993 *dp-- = *sp--; in png_do_expand()
3994 *dp-- = *sp--; in png_do_expand()
3995 *dp-- = *sp--; in png_do_expand()
4006 sp = row + row_info->rowbytes - 1; in png_do_expand()
4010 if (*(sp - 5) == red_high && in png_do_expand()
4011 *(sp - 4) == red_low && in png_do_expand()
4012 *(sp - 3) == green_high && in png_do_expand()
4013 *(sp - 2) == green_low && in png_do_expand()
4014 *(sp - 1) == blue_high && in png_do_expand()
4015 *(sp ) == blue_low) in png_do_expand()
4025 *dp-- = *sp--; in png_do_expand()
4026 *dp-- = *sp--; in png_do_expand()
4027 *dp-- = *sp--; in png_do_expand()
4028 *dp-- = *sp--; in png_do_expand()
4029 *dp-- = *sp--; in png_do_expand()
4030 *dp-- = *sp--; in png_do_expand()
4047 png_bytep sp, dp; in png_do_dither() local
4061 sp = row; in png_do_dither()
4065 r = *sp++; in png_do_dither()
4066 g = *sp++; in png_do_dither()
4067 b = *sp++; in png_do_dither()
4096 sp = row; in png_do_dither()
4100 r = *sp++; in png_do_dither()
4101 g = *sp++; in png_do_dither()
4102 b = *sp++; in png_do_dither()
4103 sp++; in png_do_dither()
4124 sp = row; in png_do_dither()
4125 for (i = 0; i < row_width; i++, sp++) in png_do_dither()
4127 *sp = dither_lookup[*sp]; in png_do_dither()