summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-22 08:08:19 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-02-22 08:08:19 +0000
commit50899e9083661200d9bb105dca0339c14e56d271 (patch)
treeb6397c2e5898a1cbcc61619e3f2f4348ba8f963f /libswscale
parentf087f0f503c1c57af6ae51472ee58f1f9458b035 (diff)
downloadmpv-50899e9083661200d9bb105dca0339c14e56d271.tar.bz2
mpv-50899e9083661200d9bb105dca0339c14e56d271.tar.xz
Discard two symbols from libswscale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26060 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c6
-rw-r--r--libswscale/swscale_internal.h3
-rw-r--r--libswscale/swscale_template.c8
-rw-r--r--libswscale/yuv2rgb.c8
-rw-r--r--libswscale/yuv2rgb_template.c16
5 files changed, 18 insertions, 23 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 6bbf61b7a6..4dc2c322e7 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -194,11 +194,11 @@ static volatile uint64_t attribute_used __attribute__((aligned(8))) g5Dither;
static volatile uint64_t attribute_used __attribute__((aligned(8))) g6Dither;
static volatile uint64_t attribute_used __attribute__((aligned(8))) r5Dither;
-DECLARE_ASM_CONST(8, uint64_t, dither4[2])={
+const DECLARE_ALIGNED(8, uint64_t, ff_dither4[2]) = {
0x0103010301030103LL,
0x0200020002000200LL,};
-DECLARE_ASM_CONST(8, uint64_t, dither8[2])={
+const DECLARE_ALIGNED(8, uint64_t, ff_dither8[2]) = {
0x0602060206020602LL,
0x0004000400040004LL,};
@@ -367,7 +367,7 @@ void in_asm_used_var_warning_killer()
{
volatile int i= bF8+bFC+w10+
bm00001111+bm00000111+bm11111000+b16Mask+g16Mask+r16Mask+b15Mask+g15Mask+r15Mask+
- ff_M24A+ff_M24B+ff_M24C+w02 + b5Dither+g5Dither+r5Dither+g6Dither+dither4[0]+dither8[0]+bm01010101;
+ ff_M24A+ff_M24B+ff_M24C+w02 + b5Dither+g5Dither+r5Dither+g6Dither+ff_dither4[0]+ff_dither8[0]+bm01010101;
if (i) i=0;
}
#endif
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 96ec78c48e..aa583a6b1b 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -272,4 +272,7 @@ static inline int fmt_depth(int fmt)
}
}
+extern const DECLARE_ALIGNED(8, uint64_t, ff_dither4[2]);
+extern const DECLARE_ALIGNED(8, uint64_t, ff_dither8[2]);
+
#endif /* FFMPEG_SWSCALE_INTERNAL_H */
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c
index 20392c2ecd..0df4b88c10 100644
--- a/libswscale/swscale_template.c
+++ b/libswscale/swscale_template.c
@@ -3124,10 +3124,10 @@ static int RENAME(swScale)(SwsContext *c, uint8_t* src[], int srcStride[], int s
}
#ifdef HAVE_MMX
- b5Dither= dither8[dstY&1];
- g6Dither= dither4[dstY&1];
- g5Dither= dither8[dstY&1];
- r5Dither= dither8[(dstY+1)&1];
+ b5Dither= ff_dither8[dstY&1];
+ g6Dither= ff_dither4[dstY&1];
+ g5Dither= ff_dither8[dstY&1];
+ r5Dither= ff_dither8[(dstY+1)&1];
#endif
if (dstY < dstH-2)
{
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index 83a7e67cef..8b4622311c 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -170,14 +170,6 @@ static volatile uint64_t attribute_used __attribute__((aligned(8))) g5Dither;
static volatile uint64_t attribute_used __attribute__((aligned(8))) g6Dither;
static volatile uint64_t attribute_used __attribute__((aligned(8))) r5Dither;
-DECLARE_ASM_CONST(8, uint64_t, dither4[2])={
- 0x0103010301030103LL,
- 0x0200020002000200LL,};
-
-DECLARE_ASM_CONST(8, uint64_t, dither8[2])={
- 0x0602060206020602LL,
- 0x0004000400040004LL,};
-
#undef HAVE_MMX
//MMX versions
diff --git a/libswscale/yuv2rgb_template.c b/libswscale/yuv2rgb_template.c
index 49fd7a7c2c..d86bc4b940 100644
--- a/libswscale/yuv2rgb_template.c
+++ b/libswscale/yuv2rgb_template.c
@@ -143,10 +143,10 @@ static inline int RENAME(yuv420_rgb16)(SwsContext *c, uint8_t* src[], int srcStr
uint8_t *pv = src[2] + (y>>1)*srcStride[2];
long index= -h_size/2;
- b5Dither= dither8[y&1];
- g6Dither= dither4[y&1];
- g5Dither= dither8[y&1];
- r5Dither= dither8[(y+1)&1];
+ b5Dither= ff_dither8[y&1];
+ g6Dither= ff_dither4[y&1];
+ g5Dither= ff_dither8[y&1];
+ r5Dither= ff_dither8[(y+1)&1];
/* this mmx assembly code deals with SINGLE scan line at a time, it convert 8
pixels in each iteration */
__asm__ __volatile__ (
@@ -238,10 +238,10 @@ static inline int RENAME(yuv420_rgb15)(SwsContext *c, uint8_t* src[], int srcStr
uint8_t *pv = src[2] + (y>>1)*srcStride[2];
long index= -h_size/2;
- b5Dither= dither8[y&1];
- g6Dither= dither4[y&1];
- g5Dither= dither8[y&1];
- r5Dither= dither8[(y+1)&1];
+ b5Dither= ff_dither8[y&1];
+ g6Dither= ff_dither4[y&1];
+ g5Dither= ff_dither8[y&1];
+ r5Dither= ff_dither8[(y+1)&1];
/* this mmx assembly code deals with SINGLE scan line at a time, it convert 8
pixels in each iteration */
__asm__ __volatile__ (