diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-28 03:26:43 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-28 03:26:43 +0100 |
commit | 03e4c2d8333d46c598856f218d9dfeb9316266d8 (patch) | |
tree | 67201e511fa7a8e014dcf1e876a6ba2270d6fcc5 /libavcodec/copy_block.h | |
parent | 773eb74babe07bc5c97c32aa564efc40e2d4b00c (diff) | |
parent | d37c96213a2a9e1fd8669122d5405f4ce6a99ed8 (diff) | |
download | ffmpeg-03e4c2d8333d46c598856f218d9dfeb9316266d8.tar.gz |
Merge commit 'd37c96213a2a9e1fd8669122d5405f4ce6a99ed8'
* commit 'd37c96213a2a9e1fd8669122d5405f4ce6a99ed8':
lavc: restore copy_block{4,16} functions
Conflicts:
libavcodec/copy_block.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/copy_block.h')
-rw-r--r-- | libavcodec/copy_block.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/libavcodec/copy_block.h b/libavcodec/copy_block.h index 42022dfeaf..9ed451f294 100644 --- a/libavcodec/copy_block.h +++ b/libavcodec/copy_block.h @@ -37,11 +37,10 @@ static inline void copy_block2(uint8_t *dst, const uint8_t *src, int dstStride, 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++) - { + for (i = 0; i < h; i++) { AV_COPY32U(dst, src); - dst+=dstStride; - src+=srcStride; + dst += dstStride; + src += srcStride; } } @@ -55,17 +54,6 @@ static inline void copy_block8(uint8_t *dst, const uint8_t *src, int dstStride, } } -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++) - { - AV_COPY128U(dst, src); - dst+=dstStride; - src+=srcStride; - } -} - static inline void copy_block9(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h) { int i; @@ -77,6 +65,16 @@ static inline void copy_block9(uint8_t *dst, const uint8_t *src, int dstStride, } } +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++) { + AV_COPY128U(dst, src); + dst += dstStride; + src += srcStride; + } +} + static inline void copy_block17(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h) { int i; |