[SCM] libav/experimental: Mark src constant in copy_block*().

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:44:06 UTC 2013


The following commit has been merged in the experimental branch:
commit 184fcc60b7ce5b5c240ba9e0511912d9911dca3b
Author: Alex Converse <alex.converse at gmail.com>
Date:   Tue Apr 14 04:07:35 2009 +0000

    Mark src constant in copy_block*().
    
    Originally committed as revision 18506 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h
index e9c2bfc..345dca9 100644
--- a/libavcodec/dsputil.h
+++ b/libavcodec/dsputil.h
@@ -819,7 +819,7 @@ static int name16(void /*MpegEncContext*/ *s, uint8_t *dst, uint8_t *src, int st
 }
 
 
-static inline void copy_block2(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
+static inline void copy_block2(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 {
     int i;
     for(i=0; i<h; i++)
@@ -830,7 +830,7 @@ static inline void copy_block2(uint8_t *dst, uint8_t *src, int dstStride, int sr
     }
 }
 
-static inline void copy_block4(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
+static inline void copy_block4(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 {
     int i;
     for(i=0; i<h; i++)
@@ -841,7 +841,7 @@ static inline void copy_block4(uint8_t *dst, uint8_t *src, int dstStride, int sr
     }
 }
 
-static inline void copy_block8(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
+static inline void copy_block8(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 {
     int i;
     for(i=0; i<h; i++)
@@ -853,7 +853,7 @@ static inline void copy_block8(uint8_t *dst, uint8_t *src, int dstStride, int sr
     }
 }
 
-static inline void copy_block9(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
+static inline void copy_block9(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 {
     int i;
     for(i=0; i<h; i++)
@@ -866,7 +866,7 @@ static inline void copy_block9(uint8_t *dst, uint8_t *src, int dstStride, int sr
     }
 }
 
-static inline void copy_block16(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
+static inline void copy_block16(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 {
     int i;
     for(i=0; i<h; i++)
@@ -880,7 +880,7 @@ static inline void copy_block16(uint8_t *dst, uint8_t *src, int dstStride, int s
     }
 }
 
-static inline void copy_block17(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h)
+static inline void copy_block17(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 {
     int i;
     for(i=0; i<h; i++)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list