History

fix iAvgLumaQp in decStat

huili2 committed 10 years ago

Commit b2d4a951 parent 76b428a3 files · +18 −7Browse files

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

Unified · Split

test/decoder/DecUT_DecExt.cpp+5−1
@@ -105,7 +105,7 @@ void DecoderInterfaceTest::ValidInit() { · 104 unmodified lines
105 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) (rand() & 7);105 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) (rand() & 7);
106 m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);106 m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);
107 m_sDecParam.sVideoProperty.eVideoBsType = VIDEO_BITSTREAM_DEFAULT;107 m_sDecParam.sVideoProperty.eVideoBsType = VIDEO_BITSTREAM_DEFAULT;
108 108
109 m_pData[0] = m_pData[1] = m_pData[2] = NULL;109 m_pData[0] = m_pData[1] = m_pData[2] = NULL;
110 m_szBuffer[0] = m_szBuffer[1] = m_szBuffer[2] = 0;110 m_szBuffer[0] = m_szBuffer[1] = m_szBuffer[2] = 0;
111 m_szBuffer[3] = 1;111 m_szBuffer[3] = 1;
@@ -502,6 +502,10 @@ void DecoderInterfaceTest::TestGetDecStatistics() { · 390 unmodified lines
502 int32_t iError = 0;502 int32_t iError = 0;
503 503
504 ValidInit();504 ValidInit();
505 //GetOption before decoding
506 m_pDec->GetOption (DECODER_OPTION_GET_STATISTICS, &sDecStatic);
507 EXPECT_EQ (0u, sDecStatic.uiDecodedFrameCount);
508 EXPECT_TRUE (-1 == sDecStatic.iAvgLumaQp);
505 // setoption not support,509 // setoption not support,
506 eRet = (CM_RETURN)m_pDec->SetOption (DECODER_OPTION_GET_STATISTICS, NULL);510 eRet = (CM_RETURN)m_pDec->SetOption (DECODER_OPTION_GET_STATISTICS, NULL);
507 EXPECT_EQ (eRet, cmInitParaError);511 EXPECT_EQ (eRet, cmInitParaError);

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