]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/x86/idctdsp_init.c
avcodec/vp9: ipred_dr_16x16_16 avx2 implementation
[ffmpeg] / libavcodec / x86 / idctdsp_init.c
index fd5ef3ff186e1934c6f50ef1b4f1540db2989b77..f1c915aa00133a65d12cbcddca99484f15d96b1c 100644 (file)
@@ -68,17 +68,15 @@ av_cold void ff_idctdsp_init_x86(IDCTDSPContext *c, AVCodecContext *avctx,
         c->put_pixels_clamped        = ff_put_pixels_clamped_mmx;
         c->add_pixels_clamped        = ff_add_pixels_clamped_mmx;
 
-        if (INLINE_MMX(cpu_flags)) {
-            if (!high_bit_depth &&
-                avctx->lowres == 0 &&
-                (avctx->idct_algo == FF_IDCT_AUTO ||
-                 avctx->idct_algo == FF_IDCT_SIMPLEAUTO ||
-                 avctx->idct_algo == FF_IDCT_SIMPLEMMX)) {
-                    c->idct_put  = ff_simple_idct_put_mmx;
-                    c->idct_add  = ff_simple_idct_add_mmx;
-                    c->idct      = ff_simple_idct_mmx;
-                    c->perm_type = FF_IDCT_PERM_SIMPLE;
-            }
+        if (!high_bit_depth &&
+            avctx->lowres == 0 &&
+            (avctx->idct_algo == FF_IDCT_AUTO ||
+                avctx->idct_algo == FF_IDCT_SIMPLEAUTO ||
+                avctx->idct_algo == FF_IDCT_SIMPLEMMX)) {
+                c->idct_put  = ff_simple_idct_put_mmx;
+                c->idct_add  = ff_simple_idct_add_mmx;
+                c->idct      = ff_simple_idct_mmx;
+                c->perm_type = FF_IDCT_PERM_SIMPLE;
         }
     }
 
@@ -87,16 +85,14 @@ av_cold void ff_idctdsp_init_x86(IDCTDSPContext *c, AVCodecContext *avctx,
         c->put_pixels_clamped        = ff_put_pixels_clamped_sse2;
         c->add_pixels_clamped        = ff_add_pixels_clamped_sse2;
 
-        if (INLINE_SSE2(cpu_flags)) {
-            if (!high_bit_depth &&
-                avctx->lowres == 0 &&
-                (avctx->idct_algo == FF_IDCT_AUTO ||
-                 avctx->idct_algo == FF_IDCT_SIMPLEAUTO ||
-                 avctx->idct_algo == FF_IDCT_SIMPLEMMX)) {
-                    c->idct_put  = ff_simple_idct_put_sse2;
-                    c->idct_add  = ff_simple_idct_add_sse2;
-                    c->perm_type = FF_IDCT_PERM_SIMPLE;
-            }
+        if (!high_bit_depth &&
+            avctx->lowres == 0 &&
+            (avctx->idct_algo == FF_IDCT_AUTO ||
+                avctx->idct_algo == FF_IDCT_SIMPLEAUTO ||
+                avctx->idct_algo == FF_IDCT_SIMPLEMMX)) {
+                c->idct_put  = ff_simple_idct_put_sse2;
+                c->idct_add  = ff_simple_idct_add_sse2;
+                c->perm_type = FF_IDCT_PERM_SIMPLE;
         }
     }