summaryrefslogtreecommitdiffstats
path: root/postproc/swscale.h
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-06 20:52:14 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-06 20:52:14 +0000
commit7bfa2fa2759932632079f553e0a467c9a14cd506 (patch)
tree1148d80746bdc12d68f4e15b5428bbabb61382b2 /postproc/swscale.h
parent403b791ab9f13e85ce9866f86749fc9267a315be (diff)
downloadmpv-7bfa2fa2759932632079f553e0a467c9a14cd506.tar.bz2
mpv-7bfa2fa2759932632079f553e0a467c9a14cd506.tar.xz
swScale internally uses yuv2rgb now if possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4555 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/swscale.h')
-rw-r--r--postproc/swscale.h8
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);