[FFmpeg-cvslog] avfilter/vf_eq: mark src as const

Michael Niedermayer git at videolan.org
Tue Jan 27 01:55:09 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jan 27 01:46:08 2015 +0100| [f5b3257c506e2eafc1538fa8056325acec291bd9] | committer: Michael Niedermayer

avfilter/vf_eq: mark src as const

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f5b3257c506e2eafc1538fa8056325acec291bd9
---

 libavfilter/vf_eq.c     |    4 ++--
 libavfilter/vf_eq.h     |    4 ++--
 libavfilter/x86/vf_eq.c |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavfilter/vf_eq.c b/libavfilter/vf_eq.c
index 7bbbaee..ad2a37e 100644
--- a/libavfilter/vf_eq.c
+++ b/libavfilter/vf_eq.c
@@ -65,7 +65,7 @@ static void create_lut(EQParameters *param)
 }
 
 static void apply_lut(EQParameters *param, uint8_t *dst, int dst_stride,
-                      uint8_t *src, int src_stride, int w, int h)
+                      const uint8_t *src, int src_stride, int w, int h)
 {
     int x, y;
 
@@ -80,7 +80,7 @@ static void apply_lut(EQParameters *param, uint8_t *dst, int dst_stride,
 }
 
 static void process_c(EQParameters *param, uint8_t *dst, int dst_stride,
-                      uint8_t *src, int src_stride, int w, int h)
+                      const uint8_t *src, int src_stride, int w, int h)
 {
     int x, y, pel;
 
diff --git a/libavfilter/vf_eq.h b/libavfilter/vf_eq.h
index 19995aa..7e7c054 100644
--- a/libavfilter/vf_eq.h
+++ b/libavfilter/vf_eq.h
@@ -29,7 +29,7 @@
 
 typedef struct EQParameters {
     void (*adjust)(struct EQParameters *eq, uint8_t *dst, int dst_stride,
-                   uint8_t *src, int src_stride, int w, int h);
+                   const uint8_t *src, int src_stride, int w, int h);
 
     uint8_t lut[256];
 
@@ -51,7 +51,7 @@ typedef struct {
     double gamma_r, gamma_g, gamma_b;
 
     void (*process)(struct EQParameters *par, uint8_t *dst, int dst_stride,
-                    uint8_t *src, int src_stride, int w, int h);
+                    const uint8_t *src, int src_stride, int w, int h);
 
 } EQContext;
 
diff --git a/libavfilter/x86/vf_eq.c b/libavfilter/x86/vf_eq.c
index 2e42cdf..16f3995 100644
--- a/libavfilter/x86/vf_eq.c
+++ b/libavfilter/x86/vf_eq.c
@@ -27,7 +27,7 @@
 
 #if HAVE_MMX_INLINE && HAVE_6REGS
 static void process_MMX(EQParameters *param, uint8_t *dst, int dst_stride,
-                        uint8_t *src, int src_stride, int w, int h)
+                        const uint8_t *src, int src_stride, int w, int h)
 {
         int i;
         int pel;



More information about the ffmpeg-cvslog mailing list