shithub: openh264

Download patch

ref: c532eb998c9f965aea988b08389e527cad8433a6
parent: 14750b4797a011da07c8cb718b13aa3a02ac3d84
author: gxw <guxiwei-hf@loongson.cn>
date: Wed Aug 15 11:32:25 EDT 2018

codec/decoder: [loongson] add an optimization function

Optimize IdctFourResAddPredFunc by mmi in codec/decoder/core/src/decoder.cpp

Change-Id: I908b1d1f439fdcb57f3be8446e73b20897201373

--- a/codec/decoder/core/src/decoder.cpp
+++ b/codec/decoder/core/src/decoder.cpp
@@ -1027,6 +1027,7 @@
 #if defined(HAVE_MMI)
   if (uiCpuFlag & WELS_CPU_MMI) {
     pCtx->pIdctResAddPredFunc   = IdctResAddPred_mmi;
+    pCtx->pIdctFourResAddPredFunc = IdctFourResAddPred_<IdctResAddPred_mmi>;
 
     pCtx->pGetI16x16LumaPredFunc[I16_PRED_DC] = WelsDecoderI16x16LumaPredDc_mmi;
     pCtx->pGetI16x16LumaPredFunc[I16_PRED_P]  = WelsDecoderI16x16LumaPredPlane_mmi;