Add optimized file codec/commom/mips64/deblock_mmi.c and corresponding unit tests for loongson platform
Showing the changes to codec/common/src/deblocking_common.cpp (1 of 11 files). Show all
Unified · Split
| @@ -274,3 +274,22 @@ extern "C" { · 273 unmodified lines | ||
| 274 | 274 | |
| 275 | 275 | #endif |
| 276 | 276 | |
| 277 | +#ifdef HAVE_MMI | |
| 278 | +extern "C" { | |
| 279 | + void DeblockLumaLt4H_mmi (uint8_t* pPixY, int32_t iStride, int32_t iAlpha, int32_t iBeta, int8_t* pTc) { | |
| 280 | + ENFORCE_STACK_ALIGN_1D (uint8_t, uiBuf, 16 * 8, 16); | |
| 281 | + | |
| 282 | + DeblockLumaTransposeH2V_mmi (pPixY - 4, iStride, &uiBuf[0]); | |
| 283 | + DeblockLumaLt4V_mmi (&uiBuf[4 * 16], 16, iAlpha, iBeta, pTc); | |
| 284 | + DeblockLumaTransposeV2H_mmi (pPixY - 4, iStride, &uiBuf[0]); | |
| 285 | + } | |
| 286 | + | |
| 287 | + void DeblockLumaEq4H_mmi (uint8_t* pPixY, int32_t iStride, int32_t iAlpha, int32_t iBeta) { | |
| 288 | + ENFORCE_STACK_ALIGN_1D (uint8_t, uiBuf, 16 * 8, 16); | |
| 289 | + | |
| 290 | + DeblockLumaTransposeH2V_mmi (pPixY - 4, iStride, &uiBuf[0]); | |
| 291 | + DeblockLumaEq4V_mmi (&uiBuf[4 * 16], 16, iAlpha, iBeta); | |
| 292 | + DeblockLumaTransposeV2H_mmi (pPixY - 4, iStride, &uiBuf[0]); | |
| 293 | + } | |
| 294 | +} | |
| 295 | +#endif//HAVE_MMI | |