From 370799068d1735fcc564c1e5861affe8217a79a3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 6 Feb 2002 20:52:14 +0000 Subject: swScale internally uses yuv2rgb now if possible Originally committed as revision 4555 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- postproc/swscale.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'postproc/swscale.h') 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); -- cgit v1.2.3