Further spelling/grammar/wording fixes as suggested by the Wanderer and Mans
[ffmpeg.git] / postproc / swscale_internal.h
index 63cc9cd..fff8732 100644 (file)
 #ifndef SWSCALE_INTERNAL_H
 #define SWSCALE_INTERNAL_H
 
+#ifdef HAVE_ALTIVEC_H
+#include <altivec.h>
+#endif
+
+#ifdef CONFIG_DARWIN
+#define AVV(x...) (x)
+#else
+#define AVV(x...) {x}
+#endif
+
 #include "../mp_msg.h"
 
 #define MSG_WARN(args...) mp_msg(MSGT_SWS,MSGL_WARN, ##args )
@@ -50,6 +60,8 @@ typedef struct SwsContext{
        int chrIntHSubSample, chrIntVSubSample;
        int chrDstHSubSample, chrDstVSubSample;
        int vChrDrop;
+        int sliceDir;
+       double param[2];
 
        int16_t **lumPixBuf;
        int16_t **chrPixBuf;
@@ -71,8 +83,8 @@ typedef struct SwsContext{
        int vLumBufSize;
        int vChrBufSize;
 
-       uint8_t __attribute__((aligned(32))) funnyYCode[10000];
-       uint8_t __attribute__((aligned(32))) funnyUVCode[10000];
+       uint8_t *funnyYCode;
+       uint8_t *funnyUVCode;
        int32_t *lumMmx2FilterPos;
        int32_t *chrMmx2FilterPos;
        int16_t *lumMmx2Filter;
@@ -132,6 +144,19 @@ typedef struct SwsContext{
        int dstW;
        int esp;
        uint64_t vRounder     __attribute__((aligned(8)));
+
+#ifdef HAVE_ALTIVEC
+
+  vector signed short   CY;
+  vector signed short   CRV;
+  vector signed short   CBU;
+  vector signed short   CGU;
+  vector signed short   CGV;
+  vector signed short   OY;
+  vector unsigned short CSHIFT;
+
+#endif
+
 } SwsContext;
 //FIXME check init (where 0)