History

Add Transform 8x8 support Add Intra 8x8 support Add no_deblocking support inside T8x8 Add CABAC parse support Add static data sheet for dequant Fix bugs and clean/astyle the code Remove build warnings Modify the UT cases Fix the ParseNalHeader bug

Haibo committed 11 years ago

Commit e9916c71 parent 473f2e325 files · +1808 −270Browse files

Showing the changes to test/decoder/DecUT_DeblockCommon.cpp (1 of 25 files). Show all

Unified · Split

test/decoder/DecUT_DeblockCommon.cpp+15−3
@@ -721,6 +721,10 @@ TEST (DecoderDeblocking, FilteringEdgeLumaHV) { · 720 unmodified lines
721721 sDqLayer.iMbY = 0; //Only for test easy
722722 sDqLayer.iMbXyIndex = 1; // this function has NO iMbXyIndex validation
723723
724+ bool bTSize8x8Flag[50] = {false};
725+ sDqLayer.pTransformSize8x8Flag = bTSize8x8Flag;
726+ sDqLayer.pTransformSize8x8Flag[sDqLayer.iMbXyIndex] = false;
727+
724728 #define UT_DB_LUMA_TEST(iFlag, iQP, iV0, iV1, iV2) \
725729 iBoundryFlag = iFlag; \
726730 memset(iLumaQP, iQP, sizeof(int8_t)*50); \
@@ -777,6 +781,10 @@ TEST (DecoderDeblocking, DeblockingBsMarginalMBAvcbase) { · 50 unmodified lines
777781 sDqLayer.pMv[0] = (int16_t (*) [16][2])&iLayerMv[0];
778782 sDqLayer.pMv[1] = (int16_t (*) [16][2])&iLayerMv[1];
779783
784+ bool bTSize8x8Flag[50] = {false};
785+ sDqLayer.pTransformSize8x8Flag = bTSize8x8Flag;
786+ memset (bTSize8x8Flag, 0, sizeof (bool) * 50);
787+
780788 #define UT_DB_CLEAN_STATUS \
781789 memset(iNoZeroCount, 0, sizeof(int8_t)*24*2); \
782790 memset(iLayerRefIndex, 0, sizeof(int8_t)*2*16*2); \
@@ -883,6 +891,10 @@ TEST (Deblocking, WelsDeblockingMb) { · 100 unmodified lines
883891 sDqLayer.iMbXyIndex = 1;
884892 sDqLayer.iMbWidth = 1;
885893
894+ bool bTSize8x8Flag[50] = {false};
895+ sDqLayer.pTransformSize8x8Flag = bTSize8x8Flag;
896+ memset (bTSize8x8Flag, 0, sizeof (bool) * 50);
897+
886898 uint8_t iY[50] = {0};
887899 sFilter.pCsData[0] = iY;
888900 sFilter.iCsStride[0] = 4;
@@ -922,19 +934,19 @@ TEST (Deblocking, WelsDeblockingMb) { · 33 unmodified lines
922934 EXPECT_TRUE(iCb[2<<1]==iChromaV1 && iCr[2<<1]==iChromaV1)<<iQP<<" "<<sDqLayer.pMbType[1]; \
923935 EXPECT_TRUE(iCb[(2<<1)*sFilter.iCsStride[1]]==iChromaV2 && iCr[(2<<1)*sFilter.iCsStride[1]]==iChromaV2)<<iQP<<" "<<sDqLayer.pMbType[1];
924936
925− // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA4x4
937+ // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA4x4
926938 iQP = 16 + rand() % 35;
927939 sDqLayer.pMbType[1] = MB_TYPE_INTRA4x4;
928940 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1)
929941
930− // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA16x16
942+ // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA16x16
931943 iQP = 16 + rand() % 35;
932944 sDqLayer.pMbType[1] = MB_TYPE_INTRA16x16;
933945 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1)
934946
935947 // MbType==0x03, Intra8x8 has not been supported now.
936948
937− // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA_PCM
949+ // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA_PCM
938950 iQP = 16 + rand() % 35;
939951 sDqLayer.pMbType[1] = MB_TYPE_INTRA_PCM;
940952 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1)

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