[FFmpeg-cvslog] avcodec/proresenc_anatoliy: load 4 samples at a time in get()

Michael Niedermayer git at videolan.org
Fri May 30 18:56:38 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May 30 18:42:01 2014 +0200| [f6b1cd3936df4e2bb6a71ca09db3842b0229d99f] | committer: Michael Niedermayer

avcodec/proresenc_anatoliy: load 4 samples at a time in get()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/proresenc_anatoliy.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index 391ffa9..f247a06 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -265,13 +265,12 @@ static void encode_ac_coeffs(AVCodecContext *avctx, PutBitContext *pb,
 static void get(uint8_t *pixels, int stride, int16_t* block)
 {
     int16_t *p = (int16_t*)pixels;
-    int i, j;
+    int i;
 
     stride >>= 1;
     for (i = 0; i < 8; i++) {
-        for (j = 0; j < 8; j++) {
-            block[j] = p[j];
-        }
+        AV_WN64(block, AV_RN64(p));
+        AV_WN64(block+4, AV_RN64(p+4));
         p += stride;
         block += 8;
     }



More information about the ffmpeg-cvslog mailing list