History

add interface for error concealment, to be continued

huili2 committed 12 years ago

Commit 79c0cec1 parent f3050964 files · +26 −4Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+11−1
@@ -256,10 +256,16 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 255 unmodified lines
256256
257257 m_pDecContext->bEndOfStreamFlag = iVal ? true : false;
258258
259+ return cmResultSuccess;
260+ } else if (eOptID == DECODER_OPTION_ERROR_CON_IDC) { // Indicate error concealment status
261+ if (pOption == NULL) //Default: SLICE_COPY, enable
262+ iVal = ERROR_CON_SLICE_COPY;
263+ else
264+ iVal = * ((int*)pOption); //EC method
265+ m_pDecContext->iErrorConMethod = iVal;
259266 return cmResultSuccess;
260267 }
261268
262−
263269 return cmInitParaError;
264270 }
265271
@@ -311,6 +317,10 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 45 unmodified lines
311317 iVal = m_pDecContext->iFeedbackTidInAu;
312318 * ((int*)pOption) = iVal;
313319 return cmResultSuccess;
320+ } else if (DECODER_OPTION_ERROR_CON_IDC == eOptID) {
321+ iVal = m_pDecContext->iErrorConMethod;
322+ * ((int*)pOption) = iVal;
323+ return cmResultSuccess;
314324 }
315325
316326 return cmInitParaError;

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