Lines Matching refs:maxx
224 int maxx, maxy, x, y, len; in imageop_tovideo() local
231 if ( !PyArg_ParseTuple(args, "s#iii", &cp, &len, &width, &maxx, &maxy) ) in imageop_tovideo()
238 if ( !check_multiply_size(len, maxx, "max", maxy, "maxy", width) ) in imageop_tovideo()
247 memcpy(ncp, cp, maxx); /* Copy first line */ in imageop_tovideo()
248 ncp += maxx; in imageop_tovideo()
250 for(x=0; x<maxx; x++) { in imageop_tovideo()
251 i = y*maxx + x; 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()
259 for(x=0; x<maxx; x++) { in imageop_tovideo()
260 i = (y*maxx + x)*4 + 1; 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()