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
898 sDqLayer.pLumaQp = iLumaQP;898 sDqLayer.pLumaQp = iLumaQP;
899 sDqLayer.pChromaQp = iChromaQP;899 sDqLayer.pChromaQp = iChromaQP;
900 900
901 int8_t iMbType[2];901 int16_t iMbType[2];
902 sDqLayer.pMbType = iMbType;902 sDqLayer.pMbType = iMbType;
903 sDqLayer.pMbType[0] = 0x01;903 sDqLayer.pMbType[0] = MB_TYPE_INTRA4x4;
904 sDqLayer.pMbType[1] = 0x01;904 sDqLayer.pMbType[1] = MB_TYPE_INTRA4x4;
905 905
906 sFilter.iSliceAlphaC0Offset = 0;906 sFilter.iSliceAlphaC0Offset = 0;
907 sFilter.iSliceBetaOffset = 0;907 sFilter.iSliceBetaOffset = 0;
@@ -922,31 +922,31 @@ TEST (Deblocking, WelsDeblockingMb) { · 14 unmodified lines
922 EXPECT_TRUE(iCb[2<<1]==iChromaV1 && iCr[2<<1]==iChromaV1)<<iQP<<" "<<sDqLayer.pMbType[1]; \922 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];923 EXPECT_TRUE(iCb[(2<<1)*sFilter.iCsStride[1]]==iChromaV2 && iCr[(2<<1)*sFilter.iCsStride[1]]==iChromaV2)<<iQP<<" "<<sDqLayer.pMbType[1];
924 924
925 // QP>16, LEFT & TOP, Intra mode 0x01925 // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA4x4
926 iQP = 16 + rand() % 35;926 iQP = 16 + rand() % 35;
927 sDqLayer.pMbType[1] = 0x01;927 sDqLayer.pMbType[1] = MB_TYPE_INTRA4x4;
928 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1)928 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1)
929 929
930 // QP>16, LEFT & TOP, Intra mode 0x02930 // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA16x16
931 iQP = 16 + rand() % 35;931 iQP = 16 + rand() % 35;
932 sDqLayer.pMbType[1] = 0x02;932 sDqLayer.pMbType[1] = MB_TYPE_INTRA16x16;
933 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1)933 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 1, 1, 2, 1, 1)
934 934
935 // MbType==0x03, Intra8x8 has not been supported now.935 // MbType==0x03, Intra8x8 has not been supported now.
936 936
937 // QP>16, LEFT & TOP, Intra mode 0x04937 // QP>16, LEFT & TOP, Intra mode MB_TYPE_INTRA_PCM
938 iQP = 16 + rand() % 35;938 iQP = 16 + rand() % 35;
939 sDqLayer.pMbType[1] = 0x04;939 sDqLayer.pMbType[1] = MB_TYPE_INTRA_PCM;
940 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)
941 941
942 // QP>16, LEFT & TOP, neighbor is Intra942 // QP>16, LEFT & TOP, neighbor is Intra
943 iQP = 16 + rand() % 35;943 iQP = 16 + rand() % 35;
944 sDqLayer.pMbType[0] = 0x02;944 sDqLayer.pMbType[0] = MB_TYPE_INTRA16x16;
945 sDqLayer.pMbType[1] = 0x0f; // Internal SKIP, Bs==0945 sDqLayer.pMbType[1] = MB_TYPE_SKIP; // Internal SKIP, Bs==0
946 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 0, 0, 2, 0, 0)946 UT_DB_MACROBLOCK_TEST (0x03, iQP, 2, 0, 0, 2, 0, 0)
947 947
948 // QP<15, no output948 // QP<15, no output
949 iQP = rand() % 16;949 iQP = rand() % 16;
950 sDqLayer.pMbType[1] = 0x04;950 sDqLayer.pMbType[1] = MB_TYPE_INTRA_PCM;
951 UT_DB_MACROBLOCK_TEST (0x03, iQP, 0, 0, 0, 0, 0, 0)951 UT_DB_MACROBLOCK_TEST (0x03, iQP, 0, 0, 0, 0, 0, 0)
952}952}

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