History

astyle all

huili2 committed 12 years ago

Commit dc3fae41 parent 101265385 files · +4906 −4701Browse files

Showing the changes to codec/encoder/core/src/deblocking.cpp (1 of 85 files). Show all

Unified · Split

codec/encoder/core/src/deblocking.cpp+28−28
@@ -575,22 +575,22 @@ void DeblockingBSCalc_neon (SWelsFuncPtrList* pFunc, SMB* pCurMb, uint8_t uiBS[2 · 574 unmodified lines
575575
576576 #if defined(HAVE_NEON_AARCH64) && defined(SINGLE_REF_FRAME)
577577 void DeblockingBSCalc_AArch64_neon (SWelsFuncPtrList* pFunc, SMB* pCurMb, uint8_t uiBS[2][4][4], Mb_Type uiCurMbType,
578− int32_t iMbStride, int32_t iLeftFlag, int32_t iTopFlag) {
579− DeblockingBSCalcEnc_AArch64_neon (pCurMb->pNonZeroCount, pCurMb->sMv, pCurMb->uiNeighborAvail, iMbStride, uiBS);
580− if (iLeftFlag) {
581− if (IS_INTRA ((pCurMb - 1)->uiMbType)) {
582− * (uint32_t*)uiBS[0][0] = 0x04040404;
583− }
584− } else {
585− * (uint32_t*)uiBS[0][0] = 0;
578+ int32_t iMbStride, int32_t iLeftFlag, int32_t iTopFlag) {
579+ DeblockingBSCalcEnc_AArch64_neon (pCurMb->pNonZeroCount, pCurMb->sMv, pCurMb->uiNeighborAvail, iMbStride, uiBS);
580+ if (iLeftFlag) {
581+ if (IS_INTRA ((pCurMb - 1)->uiMbType)) {
582+ * (uint32_t*)uiBS[0][0] = 0x04040404;
586583 }
587− if (iTopFlag) {
588− if (IS_INTRA ((pCurMb - iMbStride)->uiMbType)) {
589− * (uint32_t*)uiBS[1][0] = 0x04040404;
590− }
591− } else {
592− * (uint32_t*)uiBS[1][0] = 0;
584+ } else {
585+ * (uint32_t*)uiBS[0][0] = 0;
586+ }
587+ if (iTopFlag) {
588+ if (IS_INTRA ((pCurMb - iMbStride)->uiMbType)) {
589+ * (uint32_t*)uiBS[1][0] = 0x04040404;
593590 }
591+ } else {
592+ * (uint32_t*)uiBS[1][0] = 0;
593+ }
594594 }
595595 #endif
596596
@@ -787,9 +787,9 @@ void WelsBlockFuncInit (PSetNoneZeroCountZeroFunc* pfSetNZCZero, int32_t iCpu) · 190 unmodified lines
787787 }
788788 #endif
789789 #ifdef HAVE_NEON_AARCH64
790− if (iCpu & WELS_CPU_NEON) {
791− *pfSetNZCZero = WelsNonZeroCount_AArch64_neon;
792− }
790+ if (iCpu & WELS_CPU_NEON) {
791+ *pfSetNZCZero = WelsNonZeroCount_AArch64_neon;
792+ }
793793 #endif
794794 }
795795
@@ -839,21 +839,21 @@ void DeblockingInit (DeblockingFunc* pFunc, int32_t iCpu) { · 43 unmodified lines
839839 #endif
840840
841841 #if defined(HAVE_NEON_AARCH64)
842− if (iCpu & WELS_CPU_NEON) {
843− pFunc->pfLumaDeblockingLT4Ver = DeblockLumaLt4V_AArch64_neon;
844− pFunc->pfLumaDeblockingEQ4Ver = DeblockLumaEq4V_AArch64_neon;
845− pFunc->pfLumaDeblockingLT4Hor = DeblockLumaLt4H_AArch64_neon;
846− pFunc->pfLumaDeblockingEQ4Hor = DeblockLumaEq4H_AArch64_neon;
842+ if (iCpu & WELS_CPU_NEON) {
843+ pFunc->pfLumaDeblockingLT4Ver = DeblockLumaLt4V_AArch64_neon;
844+ pFunc->pfLumaDeblockingEQ4Ver = DeblockLumaEq4V_AArch64_neon;
845+ pFunc->pfLumaDeblockingLT4Hor = DeblockLumaLt4H_AArch64_neon;
846+ pFunc->pfLumaDeblockingEQ4Hor = DeblockLumaEq4H_AArch64_neon;
847847
848− pFunc->pfChromaDeblockingLT4Ver = DeblockChromaLt4V_AArch64_neon;
849− pFunc->pfChromaDeblockingEQ4Ver = DeblockChromaEq4V_AArch64_neon;
850− pFunc->pfChromaDeblockingLT4Hor = DeblockChromaLt4H_AArch64_neon;
851− pFunc->pfChromaDeblockingEQ4Hor = DeblockChromaEq4H_AArch64_neon;
848+ pFunc->pfChromaDeblockingLT4Ver = DeblockChromaLt4V_AArch64_neon;
849+ pFunc->pfChromaDeblockingEQ4Ver = DeblockChromaEq4V_AArch64_neon;
850+ pFunc->pfChromaDeblockingLT4Hor = DeblockChromaLt4H_AArch64_neon;
851+ pFunc->pfChromaDeblockingEQ4Hor = DeblockChromaEq4H_AArch64_neon;
852852
853853 #if defined(SINGLE_REF_FRAME)
854− pFunc->pfDeblockingBSCalc = DeblockingBSCalc_AArch64_neon;
854+ pFunc->pfDeblockingBSCalc = DeblockingBSCalc_AArch64_neon;
855855 #endif
856− }
856+ }
857857 #endif
858858 }
859859

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t