Commit 03e4c2d8 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'd37c9621'

* commit 'd37c9621':
  lavc: restore copy_block{4,16} functions

Conflicts:
	libavcodec/copy_block.h
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 773eb74b d37c9621
...@@ -37,11 +37,10 @@ static inline void copy_block2(uint8_t *dst, const uint8_t *src, int dstStride, ...@@ -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) static inline void copy_block4(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
{ {
int i; int i;
for(i=0; i<h; i++) for (i = 0; i < h; i++) {
{
AV_COPY32U(dst, src); AV_COPY32U(dst, src);
dst+=dstStride; dst += dstStride;
src+=srcStride; src += srcStride;
} }
} }
...@@ -55,17 +54,6 @@ static inline void copy_block8(uint8_t *dst, const uint8_t *src, int dstStride, ...@@ -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) static inline void copy_block9(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
{ {
int i; int i;
...@@ -77,6 +65,16 @@ static inline void copy_block9(uint8_t *dst, const uint8_t *src, int dstStride, ...@@ -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) static inline void copy_block17(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
{ {
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment