[FFmpeg-cvslog] lavc: restore copy_block{4,16} functions

Vittorio Giovara git at videolan.org
Fri Mar 28 03:32:21 CET 2014


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Mar 10 17:05:12 2014 +0100| [d37c96213a2a9e1fd8669122d5405f4ce6a99ed8] | committer: Vittorio Giovara

lavc: restore copy_block{4,16} functions

They were removed in 9e31729d692f1e721b7ed1a3a0f51b68c064d68f.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d37c96213a2a9e1fd8669122d5405f4ce6a99ed8
---

 libavcodec/copy_block.h |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/libavcodec/copy_block.h b/libavcodec/copy_block.h
index 5dfdabc..10718cc 100644
--- a/libavcodec/copy_block.h
+++ b/libavcodec/copy_block.h
@@ -23,6 +23,16 @@
 
 #include "libavutil/intreadwrite.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++) {
+        AV_COPY32U(dst, src);
+        dst += dstStride;
+        src += srcStride;
+    }
+}
+
 static inline void copy_block8(uint8_t *dst, const uint8_t *src, int dstStride, int srcStride, int h)
 {
     int i;
@@ -44,6 +54,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;



More information about the ffmpeg-cvslog mailing list