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 | sDqLayer.iMbY = 0; //Only for test easy | 721 | sDqLayer.iMbY = 0; //Only for test easy |
| 722 | sDqLayer.iMbXyIndex = 1; // this function has NO iMbXyIndex validation | 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 | #define UT_DB_LUMA_TEST(iFlag, iQP, iV0, iV1, iV2) \ | 728 | #define UT_DB_LUMA_TEST(iFlag, iQP, iV0, iV1, iV2) \ |
| 725 | iBoundryFlag = iFlag; \ | 729 | iBoundryFlag = iFlag; \ |
| 726 | memset(iLumaQP, iQP, sizeof(int8_t)*50); \ | 730 | memset(iLumaQP, iQP, sizeof(int8_t)*50); \ |
| @@ -777,6 +781,10 @@ TEST (DecoderDeblocking, DeblockingBsMarginalMBAvcbase) { · 50 unmodified lines | |||
| 777 | sDqLayer.pMv[0] = (int16_t (*) [16][2])&iLayerMv[0]; | 781 | sDqLayer.pMv[0] = (int16_t (*) [16][2])&iLayerMv[0]; |
| 778 | sDqLayer.pMv[1] = (int16_t (*) [16][2])&iLayerMv[1]; | 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 | #define UT_DB_CLEAN_STATUS \ | 788 | #define UT_DB_CLEAN_STATUS \ |
| 781 | memset(iNoZeroCount, 0, sizeof(int8_t)*24*2); \ | 789 | memset(iNoZeroCount, 0, sizeof(int8_t)*24*2); \ |
| 782 | memset(iLayerRefIndex, 0, sizeof(int8_t)*2*16*2); \ | 790 | memset(iLayerRefIndex, 0, sizeof(int8_t)*2*16*2); \ |
| @@ -883,6 +891,10 @@ TEST (Deblocking, WelsDeblockingMb) { · 100 unmodified lines | |||
| 883 | sDqLayer.iMbXyIndex = 1; | 891 | sDqLayer.iMbXyIndex = 1; |
| 884 | sDqLayer.iMbWidth = 1; | 892 | sDqLayer.iMbWidth = 1; |
| 885 | 893 | ||
| 894 | bool bTSize8x8Flag[50] = {false}; | ||
| 895 | sDqLayer.pTransformSize8x8Flag = bTSize8x8Flag; | ||
| 896 | memset (bTSize8x8Flag, 0, sizeof (bool) * 50); | ||
| 897 | |||
| 886 | uint8_t iY[50] = {0}; | 898 | uint8_t iY[50] = {0}; |
| 887 | sFilter.pCsData[0] = iY; | 899 | sFilter.pCsData[0] = iY; |
| 888 | sFilter.iCsStride[0] = 4; | 900 | sFilter.iCsStride[0] = 4; |
| @@ -922,19 +934,19 @@ TEST (Deblocking, WelsDeblockingMb) { · 33 unmodified lines | |||
| 922 | EXPECT_TRUE(iCb[2<<1]==iChromaV1 && iCr[2<<1]==iChromaV1)<<iQP<<" "<<sDqLayer.pMbType[1]; \ | 934 | EXPECT_TRUE(iCb[2<<1]==iChromaV1 && iCr[2<<1]==iChromaV1)<<iQP<<" "<<sDqLayer.pMbType[1]; \ |
| 923 | EXPECT_TRUE(iCb[(2<<1)*sFilter.iCsStride[1]]==iChromaV2 && iCr[(2<<1)*sFilter.iCsStride[1]]==iChromaV2)<<iQP<<" "<<sDqLayer.pMbType[1]; | 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 | iQP = 16 + rand() % 35; | 938 | iQP = 16 + rand() % 35; |
| 927 | sDqLayer.pMbType[1] = MB_TYPE_INTRA4x4; | 939 | sDqLayer.pMbType[1] = MB_TYPE_INTRA4x4; |
| 928 | UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1) | 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 | iQP = 16 + rand() % 35; | 943 | iQP = 16 + rand() % 35; |
| 932 | sDqLayer.pMbType[1] = MB_TYPE_INTRA16x16; | 944 | sDqLayer.pMbType[1] = MB_TYPE_INTRA16x16; |
| 933 | UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1) | 945 | UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1) |
| 934 | 946 | ||
| 935 | // MbType==0x03, Intra8x8 has not been supported now. | 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 | iQP = 16 + rand() % 35; | 950 | iQP = 16 + rand() % 35; |
| 939 | sDqLayer.pMbType[1] = MB_TYPE_INTRA_PCM; | 951 | sDqLayer.pMbType[1] = MB_TYPE_INTRA_PCM; |
| 940 | UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1) | 952 | UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1) |