This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 7ae09080545365b4efdd17f16463ec782f475da1 Author: Andreas Rheinhardt <[email protected]> AuthorDate: Sun Nov 22 22:19:28 2026 +0100 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Thu Nov 26 17:51:36 2026 +0100 avcodec/vc1dsp: Remove unused vc1_{v,h}_overlap Unused since c68f60e80a19c7f8e7999cedb39fc17f728861b4. Signed-off-by: Andreas Rheinhardt <[email protected]> --- libavcodec/mips/vc1dsp_init_mips.c | 2 -- libavcodec/mips/vc1dsp_mips.h | 2 -- libavcodec/mips/vc1dsp_mmi.c | 48 ------------------------------------ libavcodec/vc1dsp.c | 50 +------------------------------------- libavcodec/vc1dsp.h | 2 -- 5 files changed, 1 insertion(+), 103 deletions(-) diff --git a/libavcodec/mips/vc1dsp_init_mips.c b/libavcodec/mips/vc1dsp_init_mips.c index 94126f3a9d..b07a5242a8 100644 --- a/libavcodec/mips/vc1dsp_init_mips.c +++ b/libavcodec/mips/vc1dsp_init_mips.c @@ -44,8 +44,6 @@ av_cold void ff_vc1dsp_init_mips(VC1DSPContext *dsp) dsp->vc1_inv_trans_8x4_dc = ff_vc1_inv_trans_8x4_dc_mmi; dsp->vc1_inv_trans_4x4_dc = ff_vc1_inv_trans_4x4_dc_mmi; - dsp->vc1_h_overlap = ff_vc1_h_overlap_mmi; - dsp->vc1_v_overlap = ff_vc1_v_overlap_mmi; dsp->vc1_h_s_overlap = ff_vc1_h_s_overlap_mmi; dsp->vc1_v_s_overlap = ff_vc1_v_s_overlap_mmi; diff --git a/libavcodec/mips/vc1dsp_mips.h b/libavcodec/mips/vc1dsp_mips.h index 8fcff26b14..2bb30f7292 100644 --- a/libavcodec/mips/vc1dsp_mips.h +++ b/libavcodec/mips/vc1dsp_mips.h @@ -166,8 +166,6 @@ void ff_vc1_inv_trans_4x8_dc_mmi(uint8_t *dest, ptrdiff_t linesize, int16_t *blo void ff_vc1_inv_trans_8x4_dc_mmi(uint8_t *dest, ptrdiff_t linesize, int16_t *block); void ff_vc1_inv_trans_8x8_dc_mmi(uint8_t *dest, ptrdiff_t linesize, int16_t *block); -void ff_vc1_v_overlap_mmi(uint8_t *src, ptrdiff_t stride); -void ff_vc1_h_overlap_mmi(uint8_t *src, ptrdiff_t stride); void ff_vc1_v_s_overlap_mmi(int16_t *top, int16_t *bottom); void ff_vc1_h_s_overlap_mmi(int16_t *left, int16_t *right, ptrdiff_t left_stride, ptrdiff_t right_stride, int flags); diff --git a/libavcodec/mips/vc1dsp_mmi.c b/libavcodec/mips/vc1dsp_mmi.c index 058b6e370d..1103d3f1b1 100644 --- a/libavcodec/mips/vc1dsp_mmi.c +++ b/libavcodec/mips/vc1dsp_mmi.c @@ -1374,30 +1374,6 @@ void ff_vc1_inv_trans_4x4_mmi(uint8_t *dest, ptrdiff_t linesize, int16_t *block) ); } -/* Apply overlap transform to horizontal edge */ -void ff_vc1_h_overlap_mmi(uint8_t *src, ptrdiff_t stride) -{ - int i; - int a, b, c, d; - int d1, d2; - int rnd = 1; - for (i = 0; i < 8; i++) { - a = src[-2]; - b = src[-1]; - c = src[0]; - d = src[1]; - d1 = (a - d + 3 + rnd) >> 3; - d2 = (a - d + b - c + 4 - rnd) >> 3; - - src[-2] = a - d1; - src[-1] = av_clip_uint8(b - d2); - src[0] = av_clip_uint8(c + d2); - src[1] = d + d1; - src += stride; - rnd = !rnd; - } -} - void ff_vc1_h_s_overlap_mmi(int16_t *left, int16_t *right, ptrdiff_t left_stride, ptrdiff_t right_stride, int flags) { int i; @@ -1427,30 +1403,6 @@ void ff_vc1_h_s_overlap_mmi(int16_t *left, int16_t *right, ptrdiff_t left_stride } } -/* Apply overlap transform to vertical edge */ -void ff_vc1_v_overlap_mmi(uint8_t *src, ptrdiff_t stride) -{ - int i; - int a, b, c, d; - int d1, d2; - int rnd = 1; - for (i = 0; i < 8; i++) { - a = src[-2 * stride]; - b = src[-stride]; - c = src[0]; - d = src[stride]; - d1 = (a - d + 3 + rnd) >> 3; - d2 = (a - d + b - c + 4 - rnd) >> 3; - - src[-2 * stride] = a - d1; - src[-stride] = av_clip_uint8(b - d2); - src[0] = av_clip_uint8(c + d2); - src[stride] = d + d1; - src++; - rnd = !rnd; - } -} - void ff_vc1_v_s_overlap_mmi(int16_t *top, int16_t *bottom) { int i; diff --git a/libavcodec/vc1dsp.c b/libavcodec/vc1dsp.c index 355e4b8b02..856ca01adc 100644 --- a/libavcodec/vc1dsp.c +++ b/libavcodec/vc1dsp.c @@ -37,53 +37,6 @@ #include "vc1_common.h" /* Apply overlap transform to horizontal edge */ -static void vc1_v_overlap_c(uint8_t *src, ptrdiff_t stride) -{ - int i; - int a, b, c, d; - int d1, d2; - int rnd = 1; - for (i = 0; i < 8; i++) { - a = src[-2 * stride]; - b = src[-stride]; - c = src[0]; - d = src[stride]; - d1 = (a - d + 3 + rnd) >> 3; - d2 = (a - d + b - c + 4 - rnd) >> 3; - - src[-2 * stride] = a - d1; - src[-stride] = av_clip_uint8(b - d2); - src[0] = av_clip_uint8(c + d2); - src[stride] = d + d1; - src++; - rnd = !rnd; - } -} - -/* Apply overlap transform to vertical edge */ -static void vc1_h_overlap_c(uint8_t *src, ptrdiff_t stride) -{ - int i; - int a, b, c, d; - int d1, d2; - int rnd = 1; - for (i = 0; i < 8; i++) { - a = src[-2]; - b = src[-1]; - c = src[0]; - d = src[1]; - d1 = (a - d + 3 + rnd) >> 3; - d2 = (a - d + b - c + 4 - rnd) >> 3; - - src[-2] = a - d1; - src[-1] = av_clip_uint8(b - d2); - src[0] = av_clip_uint8(c + d2); - src[1] = d + d1; - src += stride; - rnd = !rnd; - } -} - static void vc1_v_s_overlap_c(int16_t *top, int16_t *bottom) { int i; @@ -110,6 +63,7 @@ static void vc1_v_s_overlap_c(int16_t *top, int16_t *bottom) } } +/* Apply overlap transform to vertical edge */ static void vc1_h_s_overlap_c(int16_t *left, int16_t *right, ptrdiff_t left_stride, ptrdiff_t right_stride, int flags) { int i; @@ -976,8 +930,6 @@ av_cold void ff_vc1dsp_init(VC1DSPContext *dsp) dsp->vc1_inv_trans_8x4_dc = vc1_inv_trans_8x4_dc_c; dsp->vc1_inv_trans_4x4_dc = vc1_inv_trans_4x4_dc_c; - dsp->vc1_h_overlap = vc1_h_overlap_c; - dsp->vc1_v_overlap = vc1_v_overlap_c; dsp->vc1_h_s_overlap = vc1_h_s_overlap_c; dsp->vc1_v_s_overlap = vc1_v_s_overlap_c; diff --git a/libavcodec/vc1dsp.h b/libavcodec/vc1dsp.h index b018537af3..bc6a8646a9 100644 --- a/libavcodec/vc1dsp.h +++ b/libavcodec/vc1dsp.h @@ -44,8 +44,6 @@ typedef struct VC1DSPContext { void (*vc1_inv_trans_8x4_dc)(uint8_t *dest, ptrdiff_t stride, int16_t *block); void (*vc1_inv_trans_4x8_dc)(uint8_t *dest, ptrdiff_t stride, int16_t *block); void (*vc1_inv_trans_4x4_dc)(uint8_t *dest, ptrdiff_t stride, int16_t *block); - void (*vc1_v_overlap)(uint8_t *src, ptrdiff_t stride); - void (*vc1_h_overlap)(uint8_t *src, ptrdiff_t stride); void (*vc1_v_s_overlap)(int16_t *top, int16_t *bottom); void (*vc1_h_s_overlap)(int16_t *left, int16_t *right, ptrdiff_t left_stride, ptrdiff_t right_stride, int flags); void (*vc1_v_loop_filter4)(uint8_t *src, ptrdiff_t stride, int pq); -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
