Showing the changes to test/decoder/DecUT_DeblockCommon.cpp (1 of 25 files). Show all
Unified · Split
| @@ -721,6 +721,10 @@ TEST (DecoderDeblocking, FilteringEdgeLumaHV) { · 720 unmodified lines | ||
| 721 | 721 | sDqLayer.iMbY = 0; //Only for test easy |
| 722 | 722 | sDqLayer.iMbXyIndex = 1; // this function has NO iMbXyIndex validation |
| 723 | 723 | |
| 724 | + bool bTSize8x8Flag[50] = {false}; | |
| 725 | + sDqLayer.pTransformSize8x8Flag = bTSize8x8Flag; | |
| 726 | + sDqLayer.pTransformSize8x8Flag[sDqLayer.iMbXyIndex] = false; | |
| 727 | + | |
| 724 | 728 | #define UT_DB_LUMA_TEST(iFlag, iQP, iV0, iV1, iV2) \ |
| 725 | 729 | iBoundryFlag = iFlag; \ |
| 726 | 730 | memset(iLumaQP, iQP, sizeof(int8_t)*50); \ |
| @@ -777,6 +781,10 @@ TEST (DecoderDeblocking, DeblockingBsMarginalMBAvcbase) { · 50 unmodified lines | ||
| 777 | 781 | sDqLayer.pMv[0] = (int16_t (*) [16][2])&iLayerMv[0]; |
| 778 | 782 | sDqLayer.pMv[1] = (int16_t (*) [16][2])&iLayerMv[1]; |
| 779 | 783 | |
| 784 | + bool bTSize8x8Flag[50] = {false}; | |
| 785 | + sDqLayer.pTransformSize8x8Flag = bTSize8x8Flag; | |
| 786 | + memset (bTSize8x8Flag, 0, sizeof (bool) * 50); | |
| 787 | + | |
| 780 | 788 | #define UT_DB_CLEAN_STATUS \ |
| 781 | 789 | memset(iNoZeroCount, 0, sizeof(int8_t)*24*2); \ |
| 782 | 790 | memset(iLayerRefIndex, 0, sizeof(int8_t)*2*16*2); \ |
| @@ -883,6 +891,10 @@ TEST (Deblocking, WelsDeblockingMb) { · 100 unmodified lines | ||
| 883 | 891 | sDqLayer.iMbXyIndex = 1; |
| 884 | 892 | sDqLayer.iMbWidth = 1; |
| 885 | 893 | |
| 894 | + bool bTSize8x8Flag[50] = {false}; | |
| 895 | + sDqLayer.pTransformSize8x8Flag = bTSize8x8Flag; | |
| 896 | + memset (bTSize8x8Flag, 0, sizeof (bool) * 50); | |
| 897 | + | |
| 886 | 898 | uint8_t iY[50] = {0}; |
| 887 | 899 | sFilter.pCsData[0] = iY; |
| 888 | 900 | sFilter.iCsStride[0] = 4; |
| @@ -922,19 +934,19 @@ TEST (Deblocking, WelsDeblockingMb) { · 33 unmodified lines | ||
| 922 | 934 | EXPECT_TRUE(iCb[2<<1]==iChromaV1 && iCr[2<<1]==iChromaV1)<<iQP<<" "<<sDqLayer.pMbType[1]; \ |
| 923 | 935 | EXPECT_TRUE(iCb[(2<<1)*sFilter.iCsStride[1]]==iChromaV2 && iCr[(2<<1)*sFilter.iCsStride[1]]==iChromaV2)<<iQP<<" "<<sDqLayer.pMbType[1]; |
| 924 | 936 | |
| 925 | − // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA4x4 | |
| 937 | + // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA4x4 | |
| 926 | 938 | iQP = 16 + rand() % 35; |
| 927 | 939 | sDqLayer.pMbType[1] = MB_TYPE_INTRA4x4; |
| 928 | 940 | UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1) |
| 929 | 941 | |
| 930 | − // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA16x16 | |
| 942 | + // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA16x16 | |
| 931 | 943 | iQP = 16 + rand() % 35; |
| 932 | 944 | sDqLayer.pMbType[1] = MB_TYPE_INTRA16x16; |
| 933 | 945 | UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1) |
| 934 | 946 | |
| 935 | 947 | // MbType==0x03, Intra8x8 has not been supported now. |
| 936 | 948 | |
| 937 | − // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA_PCM | |
| 949 | + // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA_PCM | |
| 938 | 950 | iQP = 16 + rand() % 35; |
| 939 | 951 | sDqLayer.pMbType[1] = MB_TYPE_INTRA_PCM; |
| 940 | 952 | UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1) |