[FFmpeg-cvslog] swscale: remove unused xInc/srcW arguments from hScale().
Ronald S. Bultje
git at videolan.org
Mon Jun 27 03:46:16 CEST 2011
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sun Jun 26 14:41:44 2011 -0700| [97535ffb9795f59c4fbfacfe1541d752ed47218e] | committer: Ronald S. Bultje
swscale: remove unused xInc/srcW arguments from hScale().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97535ffb9795f59c4fbfacfe1541d752ed47218e
---
libswscale/ppc/swscale_altivec.c | 3 +--
libswscale/swscale.c | 8 +++-----
libswscale/swscale_internal.h | 4 ++--
libswscale/x86/swscale_template.c | 3 +--
4 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/libswscale/ppc/swscale_altivec.c b/libswscale/ppc/swscale_altivec.c
index 42e965d..47fe54c 100644
--- a/libswscale/ppc/swscale_altivec.c
+++ b/libswscale/ppc/swscale_altivec.c
@@ -222,8 +222,7 @@ yuv2yuvX_altivec_real(SwsContext *c,
}
static void hScale_altivec_real(int16_t *dst, int dstW,
- const uint8_t *src, int srcW,
- int xInc, const int16_t *filter,
+ const uint8_t *src, const int16_t *filter,
const int16_t *filterPos, int filterSize)
{
register int i;
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index f729c11..731f132 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1804,10 +1804,8 @@ static void rgb24ToUV_half_c(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1,
}
}
-
// bilinear / bicubic scaling
static void hScale_c(int16_t *dst, int dstW, const uint8_t *src,
- int srcW, int xInc,
const int16_t *filter, const int16_t *filterPos,
int filterSize)
{
@@ -1886,7 +1884,7 @@ static av_always_inline void hyscale(SwsContext *c, uint16_t *dst, int dstWidth,
}
if (!c->hyscale_fast) {
- c->hScale(dst, dstWidth, src, srcW, xInc, hLumFilter, hLumFilterPos, hLumFilterSize);
+ c->hScale(dst, dstWidth, src, hLumFilter, hLumFilterPos, hLumFilterSize);
} else { // fast bilinear upscale / crap downscale
c->hyscale_fast(c, dst, dstWidth, src, srcW, xInc);
}
@@ -1924,8 +1922,8 @@ static av_always_inline void hcscale(SwsContext *c, uint16_t *dst1, uint16_t *ds
}
if (!c->hcscale_fast) {
- c->hScale(dst1, dstWidth, src1, srcW, xInc, hChrFilter, hChrFilterPos, hChrFilterSize);
- c->hScale(dst2, dstWidth, src2, srcW, xInc, hChrFilter, hChrFilterPos, hChrFilterSize);
+ c->hScale(dst1, dstWidth, src1, hChrFilter, hChrFilterPos, hChrFilterSize);
+ c->hScale(dst2, dstWidth, src2, hChrFilter, hChrFilterPos, hChrFilterSize);
} else { // fast bilinear upscale / crap downscale
c->hcscale_fast(c, dst1, dst2, dstWidth, src1, src2, srcW, xInc);
}
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index ea34d8c..9967c99 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -306,8 +306,8 @@ typedef struct SwsContext {
const uint8_t *src1, const uint8_t *src2,
int srcW, int xInc);
- void (*hScale)(int16_t *dst, int dstW, const uint8_t *src, int srcW,
- int xInc, const int16_t *filter, const int16_t *filterPos,
+ void (*hScale)(int16_t *dst, int dstW, const uint8_t *src,
+ const int16_t *filter, const int16_t *filterPos,
int filterSize);
void (*lumConvertRange)(int16_t *dst, int width); ///< Color range conversion function for luma plane if needed.
diff --git a/libswscale/x86/swscale_template.c b/libswscale/x86/swscale_template.c
index 8fad257..79bf2a4 100644
--- a/libswscale/x86/swscale_template.c
+++ b/libswscale/x86/swscale_template.c
@@ -1906,8 +1906,7 @@ static void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV,
#if !COMPILE_TEMPLATE_MMX2
// bilinear / bicubic scaling
static void RENAME(hScale)(int16_t *dst, int dstW,
- const uint8_t *src, int srcW,
- int xInc, const int16_t *filter,
+ const uint8_t *src, const int16_t *filter,
const int16_t *filterPos, int filterSize)
{
assert(filterSize % 4 == 0 && filterSize>0);
More information about the ffmpeg-cvslog
mailing list