[FFmpeg-cvslog] avcodec/huffyuvenc : increase scalar loop count

Martin Vignali git at videolan.org
Sat Dec 9 16:14:25 EET 2017


ffmpeg | branch: master | Martin Vignali <martin.vignali at gmail.com> | Sat Dec  2 18:30:26 2017 +0100| [57877f2b449f265ae1dd070b46aaadff4f0b3e34] | committer: Martin Vignali

avcodec/huffyuvenc : increase scalar loop count

in order to try to call dsp in aligned mode
(diff_int16 have AVX2 now)

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

 libavcodec/huffyuvenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c
index 89639b75df..4f3a28e033 100644
--- a/libavcodec/huffyuvenc.c
+++ b/libavcodec/huffyuvenc.c
@@ -80,12 +80,12 @@ static inline int sub_left_prediction(HYuvContext *s, uint8_t *dst,
             }
             return left;
         } else {
-            for (i = 0; i < 16; i++) {
+            for (i = 0; i < 32; i++) {
                 const int temp = src16[i];
                 dst16[i] = temp - left;
                 left   = temp;
             }
-            s->hencdsp.diff_int16(dst16 + 16, src16 + 16, src16 + 15, s->n - 1, w - 16);
+            s->hencdsp.diff_int16(dst16 + 32, src16 + 32, src16 + 31, s->n - 1, w - 32);
             return src16[w-1];
         }
     }



More information about the ffmpeg-cvslog mailing list