/* * Return the next pixel from the image */ static int GIFNextPixel( ifun_t* getpixel ) { int r; if( CountDown == 0 ) return EOF; CountDown--; r = (*getpixel)( curx, cury ); BumpPixel(); return r; }
/* * Return the next pixel from the image */ static int GIFNextPixel(gdImagePtr im, GifCtx *ctx) { int r; if( ctx->CountDown == 0 ) return EOF; --(ctx->CountDown); r = gdImageGetPixel(im, ctx->curx, ctx->cury); BumpPixel(ctx); return r; }