History

Remove tabs where a simple space is just enough

Martin Storsjö committed 11 years ago

Commit ca51ee01 parent 51efa5754 files · +769 −772Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+13−13
@@ -102,7 +102,7 @@ CWelsDecoder::CWelsDecoder (void) · 101 unmodified lines
102102 #endif//OUTPUT_BIT_STREAM
103103
104104
105− m_pWelsTrace = new welsCodecTrace();
105+ m_pWelsTrace = new welsCodecTrace();
106106 if (m_pWelsTrace != NULL) {
107107 m_pWelsTrace->SetCodecInstance (this);
108108 m_pWelsTrace->SetTraceLevel (WELS_LOG_ERROR);
@@ -227,7 +227,7 @@ void CWelsDecoder::UninitDecoder (void) { · 118 unmodified lines
227227 if (NULL != m_pDecContext) {
228228 WelsFree (m_pDecContext, "m_pDecContext");
229229
230− m_pDecContext = NULL;
230+ m_pDecContext = NULL;
231231 }
232232
233233 }
@@ -240,7 +240,7 @@ int32_t CWelsDecoder::InitDecoder (const bool bParseOnly) { · 6 unmodified lines
240240
241241 if (m_pDecContext) //free
242242 UninitDecoder();
243− m_pDecContext = (PWelsDecoderContext)WelsMallocz (sizeof (SWelsDecoderContext), "m_pDecContext");
243+ m_pDecContext = (PWelsDecoderContext)WelsMallocz (sizeof (SWelsDecoderContext), "m_pDecContext");
244244 if (NULL == m_pDecContext)
245245 return cmMallocMemeError;
246246
@@ -266,23 +266,23 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 19 unmodified lines
266266 if (pOption == NULL)
267267 return cmInitParaError;
268268
269− iVal = * ((int*)pOption); // is_rgb
269+ iVal = * ((int*)pOption); // is_rgb
270270
271271 return DecoderSetCsp (m_pDecContext, iVal);
272272 } else if (eOptID == DECODER_OPTION_END_OF_STREAM) { // Indicate bit-stream of the final frame to be decoded
273273 if (pOption == NULL)
274274 return cmInitParaError;
275275
276− iVal = * ((int*)pOption); // boolean value for whether enabled End Of Stream flag
276+ iVal = * ((int*)pOption); // boolean value for whether enabled End Of Stream flag
277277
278− m_pDecContext->bEndOfStreamFlag = iVal ? true : false;
278+ m_pDecContext->bEndOfStreamFlag = iVal ? true : false;
279279
280280 return cmResultSuccess;
281281 } else if (eOptID == DECODER_OPTION_ERROR_CON_IDC) { // Indicate error concealment status
282282 if (pOption == NULL)
283283 return cmInitParaError;
284284
285− iVal = * ((int*)pOption); // int value for error concealment idc
285+ iVal = * ((int*)pOption); // int value for error concealment idc
286286 iVal = WELS_CLIP3 (iVal, (int32_t) ERROR_CON_DISABLE, (int32_t) ERROR_CON_SLICE_MV_COPY_CROSS_IDR_FREEZE_RES_CHANGE);
287287 m_pDecContext->eErrorConMethod = (ERROR_CON_IDC) iVal;
288288 if ((m_pDecContext->bParseOnly) && (m_pDecContext->eErrorConMethod != ERROR_CON_DISABLE)) {
@@ -340,11 +340,11 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 51 unmodified lines
340340
341341 if (DECODER_OPTION_DATAFORMAT == eOptID) {
342342 iVal = (int32_t) m_pDecContext->eOutputColorFormat;
343− * ((int*)pOption) = iVal;
343+ * ((int*)pOption) = iVal;
344344 return cmResultSuccess;
345345 } else if (DECODER_OPTION_END_OF_STREAM == eOptID) {
346− iVal = m_pDecContext->bEndOfStreamFlag;
347− * ((int*)pOption) = iVal;
346+ iVal = m_pDecContext->bEndOfStreamFlag;
347+ * ((int*)pOption) = iVal;
348348 return cmResultSuccess;
349349 }
350350 #ifdef LONG_TERM_REF
@@ -473,7 +473,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 122 unmodified lines
473473 EWelsNalUnitType eNalType =
474474 NAL_UNIT_UNSPEC_0; //for NBR, IDR frames are expected to decode as followed if error decoding an IDR currently
475475
476− eNalType = m_pDecContext->sCurNalHead.eNalUnitType;
476+ eNalType = m_pDecContext->sCurNalHead.eNalUnitType;
477477
478478 if (m_pDecContext->iErrorCode & dsOutOfMemory) {
479479 ForceResetParaSetStatusAndAUList (m_pDecContext);
@@ -638,7 +638,7 @@ DECODING_STATE CWelsDecoder::DecodeFrameEx (const unsigned char* kpSrc, · 158 unmodified lines
638638 int& iWidth,
639639 int& iHeight,
640640 int& iColorFormat) {
641− DECODING_STATE state = dsErrorFree;
641+ DECODING_STATE state = dsErrorFree;
642642
643643 return state;
644644 }
@@ -678,7 +678,7 @@ long WelsCreateDecoder (ISVCDecoder** ppDecoder) { · 33 unmodified lines
678678 return ERR_INVALID_PARAMETERS;
679679 }
680680
681− *ppDecoder = new CWelsDecoder();
681+ *ppDecoder = new CWelsDecoder();
682682
683683 if (NULL == *ppDecoder) {
684684 return ERR_MALLOC_FAILED;

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