diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-02-06 20:52:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-02-06 20:52:14 +0000 |
commit | 370799068d1735fcc564c1e5861affe8217a79a3 (patch) | |
tree | 9a0ae1d229987f7c05571ed48eb2ca022e1626c7 /postproc/swscale.h | |
parent | 6fe84b4327a281d44efbb3d77528f0b77b641009 (diff) |
swScale internally uses yuv2rgb now if possible
Originally committed as revision 4555 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/swscale.h')
-rw-r--r-- | postproc/swscale.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/postproc/swscale.h b/postproc/swscale.h index 1440745078..03b63a6501 100644 --- a/postproc/swscale.h +++ b/postproc/swscale.h @@ -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 @@ typedef struct{ 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 *getSwsContextFromCmdLine(int srcW, int srcH, int srcFormat, int dstW 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); |