This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 0a1faa7202b04a6c8992bf2b5ef86f9d071c3c8c Author: Andreas Rheinhardt <[email protected]> AuthorDate: Sun May 10 19:53:57 2026 +0200 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Fri May 15 20:29:29 2026 +0200 avfilter/vf_pp7: Constify Signed-off-by: Andreas Rheinhardt <[email protected]> --- libavfilter/vf_pp7.c | 18 +++++++++--------- libavfilter/vf_pp7.h | 5 ++--- libavfilter/x86/vf_pp7.asm | 2 +- libavfilter/x86/vf_pp7_init.c | 2 +- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/libavfilter/vf_pp7.c b/libavfilter/vf_pp7.c index 7b653b977f..ea27e10060 100644 --- a/libavfilter/vf_pp7.c +++ b/libavfilter/vf_pp7.c @@ -96,7 +96,7 @@ static void init_thres2(PP7Context *p) } } -static inline void dctA_c(int16_t *dst, uint8_t *src, int stride) +static inline void dctA_c(int16_t *dst, const uint8_t *src, int stride) { int i; @@ -119,7 +119,7 @@ static inline void dctA_c(int16_t *dst, uint8_t *src, int stride) } } -static void dctB_c(int16_t *dst, int16_t *src) +static void dctB_c(int16_t *dst, const int16_t *src) { int i; @@ -142,7 +142,7 @@ static void dctB_c(int16_t *dst, int16_t *src) } } -static int hardthresh_c(PP7Context *p, int16_t *src, int qp) +static int hardthresh_c(const PP7Context *p, const int16_t *src, int qp) { int i; int a; @@ -158,7 +158,7 @@ static int hardthresh_c(PP7Context *p, int16_t *src, int qp) return (a + (1 << 11)) >> 12; } -static int mediumthresh_c(PP7Context *p, int16_t *src, int qp) +static int mediumthresh_c(const PP7Context *p, const int16_t *src, int qp) { int i; int a; @@ -182,7 +182,7 @@ static int mediumthresh_c(PP7Context *p, int16_t *src, int qp) return (a + (1 << 11)) >> 12; } -static int softthresh_c(PP7Context *p, int16_t *src, int qp) +static int softthresh_c(const PP7Context *p, const int16_t *src, int qp) { int i; int a; @@ -202,10 +202,10 @@ static int softthresh_c(PP7Context *p, int16_t *src, int qp) return (a + (1 << 11)) >> 12; } -static void filter(PP7Context *p, uint8_t *dst, uint8_t *src, +static void filter(PP7Context *p, uint8_t *dst, const uint8_t *src, int dst_stride, int src_stride, int width, int height, - uint8_t *qp_store, int qp_stride, int is_luma) + const uint8_t *qp_store, int qp_stride, int is_luma) { int x, y; const int stride = is_luma ? p->temp_stride : ((width + 16 + 15) & (~15)); @@ -231,7 +231,7 @@ static void filter(PP7Context *p, uint8_t *dst, uint8_t *src, for (y = 0; y < height; y++) { for (x = -8; x < 0; x += 4) { const int index = x + y * stride + (8 - 3) * (1 + stride) + 8; //FIXME silly offset - uint8_t *src = p_src + index; + const uint8_t *src = p_src + index; int16_t *tp = temp + 4 * x; dctA_c(tp + 4 * 8, src, stride); @@ -249,7 +249,7 @@ static void filter(PP7Context *p, uint8_t *dst, uint8_t *src, } for (; x < end; x++) { const int index = x + y * stride + (8 - 3) * (1 + stride) + 8; //FIXME silly offset - uint8_t *src = p_src + index; + const uint8_t *src = p_src + index; int16_t *tp = temp + 4 * x; int v; diff --git a/libavfilter/vf_pp7.h b/libavfilter/vf_pp7.h index b7cbb020bb..c733079291 100644 --- a/libavfilter/vf_pp7.h +++ b/libavfilter/vf_pp7.h @@ -37,9 +37,8 @@ typedef struct PP7Context { int temp_stride; uint8_t *src; - int (*requantize)(struct PP7Context *p, int16_t *src, int qp); - void (*dctB)(int16_t *dst, int16_t *src); - + int (*requantize)(const struct PP7Context *p, const int16_t *src, int qp); + void (*dctB)(int16_t *dst, const int16_t *src); } PP7Context; void ff_pp7_init_x86(PP7Context *pp7); diff --git a/libavfilter/x86/vf_pp7.asm b/libavfilter/x86/vf_pp7.asm index 7b3e5cf5e3..9dfabdcc8d 100644 --- a/libavfilter/x86/vf_pp7.asm +++ b/libavfilter/x86/vf_pp7.asm @@ -26,7 +26,7 @@ SECTION .text INIT_MMX mmx -;void ff_pp7_dctB_mmx(int16_t *dst, int16_t *src) +;void ff_pp7_dctB_mmx(int16_t *dst, const int16_t *src) cglobal pp7_dctB, 2, 2, 0, dst, src movq m0, [srcq] movq m1, [srcq+mmsize*1] diff --git a/libavfilter/x86/vf_pp7_init.c b/libavfilter/x86/vf_pp7_init.c index 165b0dd5d0..a87882359d 100644 --- a/libavfilter/x86/vf_pp7_init.c +++ b/libavfilter/x86/vf_pp7_init.c @@ -23,7 +23,7 @@ #include "libavutil/x86/cpu.h" #include "libavfilter/vf_pp7.h" -void ff_pp7_dctB_mmx(int16_t *dst, int16_t *src); +void ff_pp7_dctB_mmx(int16_t *dst, const int16_t *src); av_cold void ff_pp7_init_x86(PP7Context *p) { _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
