Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 15 files). Show all
Unified · Split
| @@ -655,6 +655,30 @@ void AssignFuncPointerForRec (PWelsDecoderContext pCtx) { · 654 unmodified lines | ||
| 655 | 655 | |
| 656 | 656 | InitDctClipTable(); |
| 657 | 657 | pCtx->pIdctResAddPredFunc = IdctResAddPred_c; |
| 658 | + | |
| 659 | +#if defined(HAVE_NEON) | |
| 660 | + pCtx->pIdctResAddPredFunc = IdctResAddPred_neon; | |
| 661 | + | |
| 662 | + pCtx->pGetI16x16LumaPredFunc[I16_PRED_DC] = WelsDecoderI16x16LumaPredDc_neon; | |
| 663 | + pCtx->pGetI16x16LumaPredFunc[I16_PRED_P] = WelsDecoderI16x16LumaPredPlane_neon; | |
| 664 | + pCtx->pGetI16x16LumaPredFunc[I16_PRED_H] = WelsDecoderI16x16LumaPredH_neon; | |
| 665 | + pCtx->pGetI16x16LumaPredFunc[I16_PRED_V] = WelsDecoderI16x16LumaPredV_neon; | |
| 666 | + | |
| 667 | + pCtx->pGetI4x4LumaPredFunc[I4_PRED_V ] = WelsDecoderI4x4LumaPredV_neon; | |
| 668 | + pCtx->pGetI4x4LumaPredFunc[I4_PRED_H ] = WelsDecoderI4x4LumaPredH_neon; | |
| 669 | + pCtx->pGetI4x4LumaPredFunc[I4_PRED_DDL ] = WelsDecoderI4x4LumaPredDDL_neon; | |
| 670 | + pCtx->pGetI4x4LumaPredFunc[I4_PRED_DDR ] = WelsDecoderI4x4LumaPredDDR_neon; | |
| 671 | + pCtx->pGetI4x4LumaPredFunc[I4_PRED_VL ] = WelsDecoderI4x4LumaPredVL_neon; | |
| 672 | + pCtx->pGetI4x4LumaPredFunc[I4_PRED_VR ] = WelsDecoderI4x4LumaPredVR_neon; | |
| 673 | + pCtx->pGetI4x4LumaPredFunc[I4_PRED_HU ] = WelsDecoderI4x4LumaPredHU_neon; | |
| 674 | + pCtx->pGetI4x4LumaPredFunc[I4_PRED_HD ] = WelsDecoderI4x4LumaPredHD_neon; | |
| 675 | + | |
| 676 | + pCtx->pGetIChromaPredFunc[C_PRED_H] = WelsDecoderIChromaPredH_neon; | |
| 677 | + pCtx->pGetIChromaPredFunc[C_PRED_V] = WelsDecoderIChromaPredV_neon; | |
| 678 | + pCtx->pGetIChromaPredFunc[C_PRED_P ] = WelsDecoderIChromaPredPlane_neon; | |
| 679 | + pCtx->pGetIChromaPredFunc[C_PRED_DC] = WelsDecoderIChromaPredDC_neon; | |
| 680 | +#endif//HAVE_NEON | |
| 681 | + | |
| 658 | 682 | |
| 659 | 683 | #if defined(X86_ASM) |
| 660 | 684 | if (pCtx->uiCpuFlag & WELS_CPU_MMXEXT) { |