summaryrefslogtreecommitdiff
path: root/libavcodec/copy_block.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-12 21:35:48 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-03-12 21:35:58 +0100
commit990f956ce66b39c997b98cdef9d031201b5a254a (patch)
tree4b7cd8280bc59d7348a60f499ebb7cc9a88ecf60 /libavcodec/copy_block.h
parentaa175983a1968f9c390379e0c735910b5e32ac0d (diff)
parentb4e355c89e23664b8dac26936bf3fa7e7bc2110f (diff)
downloadffmpeg-990f956ce66b39c997b98cdef9d031201b5a254a.tar.gz
Merge commit 'b4e355c89e23664b8dac26936bf3fa7e7bc2110f'
* commit 'b4e355c89e23664b8dac26936bf3fa7e7bc2110f': copy_block: K&R formatting cosmetics Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/copy_block.h')
-rw-r--r--libavcodec/copy_block.h25
1 files changed, 11 insertions, 14 deletions
diff --git a/libavcodec/copy_block.h b/libavcodec/copy_block.h
index a73910d80f..42022dfeaf 100644
--- a/libavcodec/copy_block.h
+++ b/libavcodec/copy_block.h
@@ -48,11 +48,10 @@ static inline void copy_block4(uint8_t *dst, const uint8_t *src, int dstStride,
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++)
- {
+ for (i = 0; i < h; i++) {
AV_COPY64U(dst, src);
- dst+=dstStride;
- src+=srcStride;
+ dst += dstStride;
+ src += srcStride;
}
}
@@ -70,24 +69,22 @@ static inline void copy_block16(uint8_t *dst, const uint8_t *src, int dstStride,
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++)
- {
+ for (i = 0; i < h; i++) {
AV_COPY64U(dst, src);
- dst[8]= src[8];
- dst+=dstStride;
- src+=srcStride;
+ dst[8] = src[8];
+ dst += dstStride;
+ src += srcStride;
}
}
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++)
- {
+ for (i = 0; i < h; i++) {
AV_COPY128U(dst, src);
- dst[16]= src[16];
- dst+=dstStride;
- src+=srcStride;
+ dst[16] = src[16];
+ dst += dstStride;
+ src += srcStride;
}
}