Lines Matching refs:ncp
121 char *cp, *ncp; in imageop_crop() local
148 ncp = (char *)PyString_AsString(rv); in imageop_crop()
149 nsp = (short *)ncp; in imageop_crop()
150 nlp = (Py_Int32 *)ncp; in imageop_crop()
157 *ncp++ = 0; in imageop_crop()
162 *ncp++ = *CHARP(cp, x, ix, iy); in imageop_crop()
176 char *cp, *ncp; in imageop_scale() local
201 ncp = (char *)PyString_AsString(rv); in imageop_scale()
202 nsp = (short *)ncp; in imageop_scale()
203 nlp = (Py_Int32 *)ncp; in imageop_scale()
209 *ncp++ = *CHARP(cp, x, oix, oiy); in imageop_scale()
226 unsigned char *cp, *ncp; in imageop_tovideo() local
244 ncp = (unsigned char *)PyString_AsString(rv); in imageop_tovideo()
247 memcpy(ncp, cp, maxx); /* Copy first line */ in imageop_tovideo()
248 ncp += maxx; in imageop_tovideo()
252 *ncp++ = ((int)cp[i] + (int)cp[i-maxx]) >> 1; in imageop_tovideo()
256 memcpy(ncp, cp, maxx*4); /* Copy first line */ in imageop_tovideo()
257 ncp += maxx*4; in imageop_tovideo()
261 *ncp++ = 0; /* Skip alfa comp */ in imageop_tovideo()
262 *ncp++ = ((int)cp[i] + (int)cp[i-4*maxx]) >> 1; in imageop_tovideo()
264 *ncp++ = ((int)cp[i] + (int)cp[i-4*maxx]) >> 1; in imageop_tovideo()
266 *ncp++ = ((int)cp[i] + (int)cp[i-4*maxx]) >> 1; in imageop_tovideo()
277 unsigned char *cp, *ncp; in imageop_grey2mono() local
292 ncp = (unsigned char *)PyString_AsString(rv); in imageop_grey2mono()
301 *ncp++ = ovalue; in imageop_grey2mono()
307 *ncp++ = ovalue; in imageop_grey2mono()
315 unsigned char *cp, *ncp; in imageop_grey2grey4() local
331 ncp = (unsigned char *)PyString_AsString(rv); in imageop_grey2grey4()
338 *ncp++ = ovalue; in imageop_grey2grey4()
344 *ncp++ = ovalue; in imageop_grey2grey4()
352 unsigned char *cp, *ncp; in imageop_grey2grey2() local
368 ncp = (unsigned char *)PyString_AsString(rv); in imageop_grey2grey2()
375 *ncp++ = ovalue; in imageop_grey2grey2()
381 *ncp++ = ovalue; in imageop_grey2grey2()
389 unsigned char *cp, *ncp; in imageop_dither2mono() local
404 ncp = (unsigned char *)PyString_AsString(rv); in imageop_dither2mono()
417 *ncp++ = ovalue; in imageop_dither2mono()
423 *ncp++ = ovalue; in imageop_dither2mono()
431 unsigned char *cp, *ncp; in imageop_dither2grey2() local
448 ncp = (unsigned char *)PyString_AsString(rv); in imageop_dither2grey2()
458 *ncp++ = ovalue; in imageop_dither2grey2()
464 *ncp++ = ovalue; in imageop_dither2grey2()
472 unsigned char *cp, *ncp; in imageop_mono2grey() local
490 ncp = (unsigned char *)PyString_AsString(rv); in imageop_mono2grey()
495 *ncp++ = v1; in imageop_mono2grey()
497 *ncp++ = v0; in imageop_mono2grey()
511 unsigned char *cp, *ncp; in imageop_grey22grey() local
530 ncp = (unsigned char *)PyString_AsString(rv); in imageop_grey22grey()
540 *ncp++ = nvalue | (nvalue << 2) | in imageop_grey22grey()
550 unsigned char *cp, *ncp; in imageop_grey42grey() local
568 ncp = (unsigned char *)PyString_AsString(rv); in imageop_grey42grey()
578 *ncp++ = nvalue | (nvalue << 4); in imageop_grey42grey()
588 unsigned char *ncp; in imageop_rgb2rgb8() local
605 ncp = (unsigned char *)PyString_AsString(rv); in imageop_rgb2rgb8()
621 *ncp++ = (unsigned char)((r<<5) | (b<<3) | g); in imageop_rgb2rgb8()
631 unsigned char *ncp; in imageop_rgb82rgb() local
649 ncp = (unsigned char *)PyString_AsString(rv); in imageop_rgb82rgb()
664 * (Py_UInt32 *) ncp = nvalue; in imageop_rgb82rgb()
665 ncp += 4; in imageop_rgb82rgb()
667 *ncp++ = 0; in imageop_rgb82rgb()
668 *ncp++ = b; in imageop_rgb82rgb()
669 *ncp++ = g; in imageop_rgb82rgb()
670 *ncp++ = r; in imageop_rgb82rgb()
681 unsigned char *ncp; in imageop_rgb2grey() local
699 ncp = (unsigned char *)PyString_AsString(rv); in imageop_rgb2grey()
716 *ncp++ = (unsigned char)nvalue; in imageop_rgb2grey()
726 unsigned char *ncp; in imageop_grey2rgb() local
744 ncp = (unsigned char *)PyString_AsString(rv); in imageop_grey2rgb()
749 … * (Py_UInt32 *) ncp = (Py_UInt32) value | ((Py_UInt32) value << 8 ) | ((Py_UInt32) value << 16); in imageop_grey2rgb()
750 ncp += 4; in imageop_grey2rgb()
752 *ncp++ = 0; in imageop_grey2rgb()
753 *ncp++ = value; in imageop_grey2rgb()
754 *ncp++ = value; in imageop_grey2rgb()
755 *ncp++ = value; in imageop_grey2rgb()