History

add dec option for is_ref_pic

huili2 committed 8 years ago

Commit de5e3851 parent 01068cc5 files · +51 −0Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+8−0
@@ -403,6 +403,12 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 402 unmodified lines
403403 iVal = m_pDecContext->iFeedbackTidInAu;
404404 * ((int*)pOption) = iVal;
405405 return cmResultSuccess;
406+ } else if (DECODER_OPTION_IS_REF_PIC == eOptID) {
407+ iVal = m_pDecContext->iFeedbackNalRefIdc;
408+ if (iVal > 0)
409+ iVal = 1;
410+ * ((int*)pOption) = iVal;
411+ return cmResultSuccess;
406412 } else if (DECODER_OPTION_ERROR_CON_IDC == eOptID) {
407413 iVal = (int) m_pDecContext->pParam->eEcActiveIdc;
408414 * ((int*)pOption) = iVal;
@@ -537,6 +543,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 128 unmodified lines
537543 #endif
538544
539545 m_pDecContext->iFeedbackTidInAu = -1; //initialize
546+ m_pDecContext->iFeedbackNalRefIdc = -1; //initialize
540547 if (pDstInfo) {
541548 pDstInfo->uiOutYuvTimeStamp = 0;
542549 m_pDecContext->uiTimeStamp = pDstInfo->uiInBsTimeStamp;
@@ -716,6 +723,7 @@ DECODING_STATE CWelsDecoder::DecodeParser (const unsigned char* kpSrc, · 173 unmodified lines
716723
717724 m_pDecContext->iErrorCode = dsErrorFree; //initialize at the starting of AU decoding.
718725 m_pDecContext->pParam->eEcActiveIdc = ERROR_CON_DISABLE; //add protection to disable EC here.
726+ m_pDecContext->iFeedbackNalRefIdc = -1; //initialize
719727 if (!m_pDecContext->bFramePending) { //frame complete
720728 m_pDecContext->pParserBsInfo->iNalNum = 0;
721729 memset (m_pDecContext->pParserBsInfo->pNalLenInByte, 0, MAX_NAL_UNITS_IN_LAYER);

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