[FFmpeg-devel] [PATCH 2/2] x86/motion_est: sad_{x, y}2_mmxext functions are bitexact

James Almer jamrial at gmail.com
Tue Jun 3 23:45:38 CEST 2014


Only the xy2 functions aren't.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/x86/motion_est.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/x86/motion_est.c b/libavcodec/x86/motion_est.c
index ef614c9..4071ae5 100644
--- a/libavcodec/x86/motion_est.c
+++ b/libavcodec/x86/motion_est.c
@@ -472,12 +472,12 @@ av_cold void ff_dsputil_init_pix_mmx(DSPContext *c, AVCodecContext *avctx)
         c->sad[0] = sad16_mmxext;
         c->sad[1] = sad8_mmxext;
 
+        c->pix_abs[0][1] = sad16_x2_mmxext;
+        c->pix_abs[0][2] = sad16_y2_mmxext;
+        c->pix_abs[1][1] = sad8_x2_mmxext;
+        c->pix_abs[1][2] = sad8_y2_mmxext;
         if (!(avctx->flags & CODEC_FLAG_BITEXACT)) {
-            c->pix_abs[0][1] = sad16_x2_mmxext;
-            c->pix_abs[0][2] = sad16_y2_mmxext;
             c->pix_abs[0][3] = sad16_xy2_mmxext;
-            c->pix_abs[1][1] = sad8_x2_mmxext;
-            c->pix_abs[1][2] = sad8_y2_mmxext;
             c->pix_abs[1][3] = sad8_xy2_mmxext;
         }
     }
-- 
1.8.5.5



More information about the ffmpeg-devel mailing list