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
4141 namespace WelsDec {
4242 //Init
4343 void 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)) {
4546 pCtx->sCopyFunc.pCopyLumaFunc = WelsCopy16x16_c;
4647 pCtx->sCopyFunc.pCopyChromaFunc = WelsCopy8x8_c;
4748
@@ -196,7 +197,8 @@ void ImplementErrorCon (PWelsDecoderContext pCtx) { · 148 unmodified lines
196197 || (ERROR_CON_FRAME_COPY_CROSS_IDR == pCtx->eErrorConMethod)) {
197198 DoErrorConFrameCopy (pCtx);
198199 } 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)) {
200202 DoErrorConSliceCopy (pCtx);
201203 } //TODO add other EC methods here in the future
202204 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