History

merge common part of wels_common_basis

huili2 committed 11 years ago

Commit 403cc571 parent b66703112 files · +97 −155Browse files

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

Unified · Split

test/decoder/DecUT_DeblockCommon.cpp+12−12
@@ -898,10 +898,10 @@ TEST (Deblocking, WelsDeblockingMb) { · 897 unmodified lines
898898 sDqLayer.pLumaQp = iLumaQP;
899899 sDqLayer.pChromaQp = iChromaQP;
900900
901− int8_t iMbType[2];
901+ int16_t iMbType[2];
902902 sDqLayer.pMbType = iMbType;
903− sDqLayer.pMbType[0] = 0x01;
904− sDqLayer.pMbType[1] = 0x01;
903+ sDqLayer.pMbType[0] = MB_TYPE_INTRA4x4;
904+ sDqLayer.pMbType[1] = MB_TYPE_INTRA4x4;
905905
906906 sFilter.iSliceAlphaC0Offset = 0;
907907 sFilter.iSliceBetaOffset = 0;
@@ -922,31 +922,31 @@ TEST (Deblocking, WelsDeblockingMb) { · 14 unmodified lines
922922 EXPECT_TRUE(iCb[2<<1]==iChromaV1 && iCr[2<<1]==iChromaV1)<<iQP<<" "<<sDqLayer.pMbType[1]; \
923923 EXPECT_TRUE(iCb[(2<<1)*sFilter.iCsStride[1]]==iChromaV2 && iCr[(2<<1)*sFilter.iCsStride[1]]==iChromaV2)<<iQP<<" "<<sDqLayer.pMbType[1];
924924
925− // QP>16, LEFT & TOP, Intra mode 0x01
925+ // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA4x4
926926 iQP = 16 + rand() % 35;
927− sDqLayer.pMbType[1] = 0x01;
927+ sDqLayer.pMbType[1] = MB_TYPE_INTRA4x4;
928928 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1)
929929
930− // QP>16, LEFT & TOP, Intra mode 0x02
930+ // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA16x16
931931 iQP = 16 + rand() % 35;
932− sDqLayer.pMbType[1] = 0x02;
932+ sDqLayer.pMbType[1] = MB_TYPE_INTRA16x16;
933933 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1)
934934
935935 // MbType==0x03, Intra8x8 has not been supported now.
936936
937− // QP>16, LEFT & TOP, Intra mode 0x04
937+ // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA_PCM
938938 iQP = 16 + rand() % 35;
939− sDqLayer.pMbType[1] = 0x04;
939+ sDqLayer.pMbType[1] = MB_TYPE_INTRA_PCM;
940940 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1)
941941
942942 // QP>16, LEFT & TOP, neighbor is Intra
943943 iQP = 16 + rand() % 35;
944− sDqLayer.pMbType[0] = 0x02;
945− sDqLayer.pMbType[1] = 0x0f; // Internal SKIP, Bs==0
944+ sDqLayer.pMbType[0] = MB_TYPE_INTRA16x16;
945+ sDqLayer.pMbType[1] = MB_TYPE_SKIP; // Internal SKIP, Bs==0
946946 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 0, 0, 2, 0, 0)
947947
948948 // QP<15, no output
949949 iQP = rand() % 16;
950− sDqLayer.pMbType[1] = 0x04;
950+ sDqLayer.pMbType[1] = MB_TYPE_INTRA_PCM;
951951 UT_DB_MACROBLOCK_TEST (0x03, iQP, 0, 0, 0, 0, 0, 0)
952952 }

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