History

add EC method to freeze sequence when resolution changed and decoding IDR error

huili2 committed 12 years ago

Commit 0d16fd61 parent aed7b237 files · +33 −6Browse files

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

Unified · Split

codec/decoder/core/src/error_concealment.cpp+4−2
@@ -41,7 +41,8 @@ · 40 unmodified lines
41namespace WelsDec {41namespace WelsDec {
42//Init42//Init
43void InitErrorCon (PWelsDecoderContext pCtx) {43void InitErrorCon (PWelsDecoderContext pCtx) {
44 if ((pCtx->eErrorConMethod == ERROR_CON_SLICE_COPY) || (pCtx->eErrorConMethod == ERROR_CON_SLICE_COPY_CROSS_IDR)) {44 if ((pCtx->eErrorConMethod == ERROR_CON_SLICE_COPY) || (pCtx->eErrorConMethod == ERROR_CON_SLICE_COPY_CROSS_IDR)
45 || (pCtx->eErrorConMethod == ERROR_CON_SLICE_COPY_CROSS_IDR_FREEZE_RES_CHANGE)) {
45 pCtx->sCopyFunc.pCopyLumaFunc = WelsCopy16x16_c;46 pCtx->sCopyFunc.pCopyLumaFunc = WelsCopy16x16_c;
46 pCtx->sCopyFunc.pCopyChromaFunc = WelsCopy8x8_c;47 pCtx->sCopyFunc.pCopyChromaFunc = WelsCopy8x8_c;
47 48
@@ -196,7 +197,8 @@ void ImplementErrorCon (PWelsDecoderContext pCtx) { · 148 unmodified lines
196 || (ERROR_CON_FRAME_COPY_CROSS_IDR == pCtx->eErrorConMethod)) {197 || (ERROR_CON_FRAME_COPY_CROSS_IDR == pCtx->eErrorConMethod)) {
197 DoErrorConFrameCopy (pCtx);198 DoErrorConFrameCopy (pCtx);
198 } else if ((ERROR_CON_SLICE_COPY == pCtx->eErrorConMethod)199 } else if ((ERROR_CON_SLICE_COPY == pCtx->eErrorConMethod)
199 || (ERROR_CON_SLICE_COPY_CROSS_IDR == pCtx->eErrorConMethod)) {200 || (ERROR_CON_SLICE_COPY_CROSS_IDR == pCtx->eErrorConMethod)
201 || (ERROR_CON_SLICE_COPY_CROSS_IDR_FREEZE_RES_CHANGE == pCtx->eErrorConMethod)) {
200 DoErrorConSliceCopy (pCtx);202 DoErrorConSliceCopy (pCtx);
201 } //TODO add other EC methods here in the future203 } //TODO add other EC methods here in the future
202 pCtx->iErrorCode |= dsDataErrorConcealed;204 pCtx->iErrorCode |= dsDataErrorConcealed;

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