History

modify EC API name and remove useless flag

huili2 committed 12 years ago

Commit 933c4771 parent 470246c13 files · +52 −51Browse files

Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 13 files). Show all

Unified · Split

codec/decoder/core/src/decoder.cpp+8−8
@@ -160,7 +160,7 @@ void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) { · 159 unmodified lines
160160 pCtx->pPicBuff[LIST_1] = NULL;
161161
162162 pCtx->bAvcBasedFlag = true;
163− pCtx->iErrorConMethod = ERROR_CON_SLICE_COPY;
163+ pCtx->eErrorConMethod = ERROR_CON_SLICE_COPY;
164164 pCtx->pPreviousDecodedPictureInDpb = NULL;
165165
166166 }
@@ -332,7 +332,7 @@ int32_t DecoderConfigParam (PWelsDecoderContext pCtx, const SDecodingParam* kpPa · 165 unmodified lines
332332
333333 memcpy (pCtx->pParam, kpParam, sizeof (SDecodingParam));
334334 pCtx->iOutputColorFormat = pCtx->pParam->iOutputColorFormat;
335− pCtx->bErrorResilienceFlag = pCtx->pParam->uiEcActiveFlag ? true : false;
335+ pCtx->eErrorConMethod = pCtx->pParam->eEcActiveIdc;
336336
337337 if (VIDEO_BITSTREAM_SVC == pCtx->pParam->sVideoProperty.eVideoBsType ||
338338 VIDEO_BITSTREAM_AVC == pCtx->pParam->sVideoProperty.eVideoBsType) {
@@ -462,7 +462,7 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 123 unmodified lines
462462
463463 iConsumedBytes = 0;
464464 pNalPayload = ParseNalHeader (pCtx, &pCtx->sCurNalHead, pDstNal, iDstIdx, pSrcNal - 3, iSrcIdx + 3, &iConsumedBytes);
465− if ((pCtx->iErrorConMethod != ERROR_CON_DISABLE) && (IS_VCL_NAL (pCtx->sCurNalHead.eNalUnitType, 1))) {
465+ if ((pCtx->eErrorConMethod != ERROR_CON_DISABLE) && (IS_VCL_NAL (pCtx->sCurNalHead.eNalUnitType, 1))) {
466466 CheckAndDoEC (pCtx, ppDst, pDstBufInfo);
467467 }
468468 if (IS_PARAM_SETS_NALS (pCtx->sCurNalHead.eNalUnitType) && pNalPayload) {
@@ -477,7 +477,7 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 8 unmodified lines
477477 #else
478478 pCtx->bReferenceLostAtT0Flag = true;
479479 #endif
480− if ((pCtx->iErrorConMethod == ERROR_CON_DISABLE) || (dsOutOfMemory & pCtx->iErrorCode))
480+ if ((pCtx->eErrorConMethod == ERROR_CON_DISABLE) || (dsOutOfMemory & pCtx->iErrorCode))
481481 ResetParameterSetsState (pCtx);
482482
483483 if (dsOutOfMemory & pCtx->iErrorCode) {
@@ -493,7 +493,7 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 9 unmodified lines
493493 #else
494494 pCtx->bReferenceLostAtT0Flag = true;
495495 #endif
496− if ((pCtx->iErrorConMethod == ERROR_CON_DISABLE) || (dsOutOfMemory & pCtx->iErrorCode))
496+ if ((pCtx->eErrorConMethod == ERROR_CON_DISABLE) || (dsOutOfMemory & pCtx->iErrorCode))
497497 ResetParameterSetsState (pCtx);
498498 }
499499 return pCtx->iErrorCode;
@@ -522,7 +522,7 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 22 unmodified lines
522522
523523 iConsumedBytes = 0;
524524 pNalPayload = ParseNalHeader (pCtx, &pCtx->sCurNalHead, pDstNal, iDstIdx, pSrcNal - 3, iSrcIdx + 3, &iConsumedBytes);
525− if ((pCtx->iErrorConMethod != ERROR_CON_DISABLE) && (IS_VCL_NAL (pCtx->sCurNalHead.eNalUnitType, 1))) {
525+ if ((pCtx->eErrorConMethod != ERROR_CON_DISABLE) && (IS_VCL_NAL (pCtx->sCurNalHead.eNalUnitType, 1))) {
526526 CheckAndDoEC (pCtx, ppDst, pDstBufInfo);
527527 }
528528 if (IS_PARAM_SETS_NALS (pCtx->sCurNalHead.eNalUnitType) && pNalPayload) {
@@ -537,7 +537,7 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 8 unmodified lines
537537 #else
538538 pCtx->bReferenceLostAtT0Flag = true;
539539 #endif
540− if ((pCtx->iErrorConMethod == ERROR_CON_DISABLE) || (dsOutOfMemory & pCtx->iErrorCode))
540+ if ((pCtx->eErrorConMethod == ERROR_CON_DISABLE) || (dsOutOfMemory & pCtx->iErrorCode))
541541 ResetParameterSetsState (pCtx);
542542 return pCtx->iErrorCode;
543543 }
@@ -573,7 +573,7 @@ int32_t WelsDecodeBs (PWelsDecoderContext pCtx, const uint8_t* kpBsBuf, const in · 29 unmodified lines
573573 #else
574574 pCtx->bReferenceLostAtT0Flag = true;
575575 #endif
576− if ((pCtx->iErrorConMethod == ERROR_CON_DISABLE) || (dsOutOfMemory & pCtx->iErrorCode))
576+ if ((pCtx->eErrorConMethod == ERROR_CON_DISABLE) || (dsOutOfMemory & pCtx->iErrorCode))
577577 ResetParameterSetsState (pCtx);
578578 return pCtx->iErrorCode;
579579 }

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