Mercurial > mplayer.hg
diff postproc/swscale.h @ 4554:16fdb694cf13
swScale internally uses yuv2rgb now if possible
author | michael |
---|---|
date | Wed, 06 Feb 2002 20:52:14 +0000 |
parents | 9512d6832b38 |
children | eb87391a5292 |
line wrap: on
line diff
--- a/postproc/swscale.h Wed Feb 06 20:30:34 2002 +0000 +++ b/postproc/swscale.h Wed Feb 06 20:52:14 2002 +0000 @@ -37,7 +37,7 @@ #define SWS_MAX_REDUCE_CUTOFF 0.002 /* this struct should be aligned on at least 32-byte boundary */ -typedef struct{ +typedef struct SwsContext{ int srcW, srcH, dstW, dstH; int chrSrcW, chrSrcH, chrDstW, chrDstH; int lumXInc, chrXInc; @@ -78,6 +78,9 @@ int chrBufIndex; int dstY; int flags; + + void (*swScale)(struct SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, + int srcSliceH, uint8_t* dst[], int dstStride[]); } SwsContext; //FIXME check init (where 0) @@ -116,9 +119,6 @@ SwsContext *getSwsContext(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter); -extern void (*swScale)(SwsContext *context, uint8_t* src[], int srcStride[], int srcSliceY, - int srcSliceH, uint8_t* dst[], int dstStride[]); - SwsVector *getGaussianVec(double variance, double quality); SwsVector *getConstVec(double c, int length); SwsVector *getIdentityVec(void);