summaryrefslogtreecommitdiffstats
path: root/postproc/swscale.h
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-01 19:25:09 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-01 19:25:09 +0000
commit9f00f833ca70abb87c0e807b197dd56fe6754455 (patch)
treef65e1157cedf270634b0423b4f9ca3782ccaf5ce /postproc/swscale.h
parent5f8dbc3961cc97d6052f9d033db52f52284c9422 (diff)
downloadmpv-9f00f833ca70abb87c0e807b197dd56fe6754455.tar.bz2
mpv-9f00f833ca70abb87c0e807b197dd56fe6754455.tar.xz
YUY2, BGR24, BGR32 input support (no mmx yet)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4468 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/swscale.h')
-rw-r--r--postproc/swscale.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/postproc/swscale.h b/postproc/swscale.h
index 755d07e07e..1440745078 100644
--- a/postproc/swscale.h
+++ b/postproc/swscale.h
@@ -23,7 +23,15 @@
#define SWS_X 8
#define SWS_POINT 0x10
#define SWS_AREA 0x20
-#define SWS_FULL_UV_IPOL 0x100
+
+//the following 4 flags are not completly implemented
+//internal chrominace subsamling info
+#define SWS_FULL_CHR_V 0x100
+#define SWS_FULL_CHR_H_INT 0x200
+//input subsampling info
+#define SWS_FULL_CHR_H_INP 0x400
+#define SWS_DIRECT_BGR 0x800
+
#define SWS_PRINT_INFO 0x1000
#define SWS_MAX_REDUCE_CUTOFF 0.002
@@ -31,7 +39,7 @@
/* this struct should be aligned on at least 32-byte boundary */
typedef struct{
int srcW, srcH, dstW, dstH;
- int chrDstW, chrDstH;
+ int chrSrcW, chrSrcH, chrDstW, chrDstH;
int lumXInc, chrXInc;
int lumYInc, chrYInc;
int dstFormat, srcFormat;
@@ -50,6 +58,7 @@ typedef struct{
// Contain simply the values from v(Lum|Chr)Filter just nicely packed for mmx
int16_t *lumMmxFilter;
int16_t *chrMmxFilter;
+ uint8_t formatConvBuffer[4000]; //FIXME dynamic alloc, but we have to change alot of code for this to be usefull
int hLumFilterSize;
int hChrFilterSize;