History

accumulate dec stat

huili2 committed 11 years ago

Commit 8b9be2b1 parent 8c7aaa82 files · +4 −6Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 2 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+2−4
@@ -373,8 +373,6 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 372 unmodified lines
373 373
374 pDecoderStatistics->fAverageFrameSpeedInMs = (float) (m_pDecContext->dDecTime) /374 pDecoderStatistics->fAverageFrameSpeedInMs = (float) (m_pDecContext->dDecTime) /
375 (m_pDecContext->sDecoderStatistics.uiDecodedFrameCount);375 (m_pDecContext->sDecoderStatistics.uiDecodedFrameCount);
376 ResetDecStatNums (&m_pDecContext->sDecoderStatistics);
377 m_pDecContext->dDecTime = 0;
378 376
379 return cmResultSuccess;377 return cmResultSuccess;
380 }378 }
@@ -497,8 +495,8 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 116 unmodified lines
497 495
498 m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++;496 m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++;
499 if (m_pDecContext->sDecoderStatistics.uiDecodedFrameCount == 0) { //exceed max value of uint32_t497 if (m_pDecContext->sDecoderStatistics.uiDecodedFrameCount == 0) { //exceed max value of uint32_t
500 ResetDecStatNums (&m_pDecContext->sDecoderStatistics);498 ResetDecStatNums (&m_pDecContext->sDecoderStatistics);
501 m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++;499 m_pDecContext->sDecoderStatistics.uiDecodedFrameCount++;
502 }500 }
503 501
504 if ((m_pDecContext->sDecoderStatistics.uiWidth != (unsigned int) pDstInfo->UsrData.sSystemBuffer.iWidth)502 if ((m_pDecContext->sDecoderStatistics.uiWidth != (unsigned int) pDstInfo->UsrData.sSystemBuffer.iWidth)

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