summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 a73910d..42022df 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;
}
}
OpenPOWER on IntegriCloud