History

Convert tabs to spaces in vertically aligned code

Martin Storsjö committed 11 years ago

Commit 51efa571 parent 723044864 files · +2746 −2751Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 64 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+23−23
@@ -124,8 +124,8 @@ CWelsH264SVCEncoder::CWelsH264SVCEncoder() · 123 unmodified lines
124124 m_pFileBs = WelsFopen (strStreamFileName, "wb");
125125 m_pFileBsSize = WelsFopen (strLenFileName, "wb");
126126
127− m_bSwitch = false;
128− m_iSwitchTimes = 0;
127+ m_bSwitch = false;
128+ m_iSwitchTimes = 0;
129129 #endif//OUTPUT_BIT_STREAM
130130
131131 InitEncoder();
@@ -149,8 +149,8 @@ CWelsH264SVCEncoder::~CWelsH264SVCEncoder() { · 17 unmodified lines
149149 WelsFclose (m_pFileBsSize);
150150 m_pFileBsSize = NULL;
151151 }
152− m_bSwitch = false;
153− m_iSwitchTimes = 0;
152+ m_bSwitch = false;
153+ m_iSwitchTimes = 0;
154154 #endif//OUTPUT_BIT_STREAM
155155
156156 Uninitialize();
@@ -323,13 +323,13 @@ int CWelsH264SVCEncoder::InitializeInternal (SWelsSvcCodingParam* pCfg) { · 166 unmodified lines
323323 }
324324
325325 const int32_t kiDecStages = WELS_LOG2 (pCfg->uiGopSize);
326− pCfg->iTemporalLayerNum = (int8_t) (1 + kiDecStages);
327− pCfg->iLoopFilterAlphaC0Offset = WELS_CLIP3 (pCfg->iLoopFilterAlphaC0Offset, -6, 6);
328− pCfg->iLoopFilterBetaOffset = WELS_CLIP3 (pCfg->iLoopFilterBetaOffset, -6, 6);
326+ pCfg->iTemporalLayerNum = (int8_t) (1 + kiDecStages);
327+ pCfg->iLoopFilterAlphaC0Offset = WELS_CLIP3 (pCfg->iLoopFilterAlphaC0Offset, -6, 6);
328+ pCfg->iLoopFilterBetaOffset = WELS_CLIP3 (pCfg->iLoopFilterBetaOffset, -6, 6);
329329
330330 // decide property list size between INIT_TYPE_PARAMETER_BASED/INIT_TYPE_CONFIG_BASED
331− m_iMaxPicWidth = pCfg->iPicWidth;
332− m_iMaxPicHeight = pCfg->iPicHeight;
331+ m_iMaxPicWidth = pCfg->iPicWidth;
332+ m_iMaxPicHeight = pCfg->iPicHeight;
333333
334334 TraceParamInfo (pCfg);
335335 if (WelsInitEncoderExt (&m_pEncContext, pCfg, &m_pWelsTrace->m_sLogCtx, NULL)) {
@@ -683,9 +683,9 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 347 unmodified lines
683683 m_pEncContext->pSvcParam->uiIntraPeriod = (uint32_t)iValue;
684684 }
685685 break;
686− case ENCODER_OPTION_SVC_ENCODE_PARAM_BASE: { // SVC Encoding Parameter
687− SEncParamBase sEncodingParam;
688− SWelsSvcCodingParam sConfig;
686+ case ENCODER_OPTION_SVC_ENCODE_PARAM_BASE: { // SVC Encoding Parameter
687+ SEncParamBase sEncodingParam;
688+ SWelsSvcCodingParam sConfig;
689689 int32_t iTargetWidth = 0;
690690 int32_t iTargetHeight = 0;
691691
@@ -694,12 +694,12 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 2 unmodified lines
694694 return cmInitParaError;
695695 }
696696 /* New configuration available here */
697− iTargetWidth = sConfig.iPicWidth;
698− iTargetHeight = sConfig.iPicHeight;
697+ iTargetWidth = sConfig.iPicWidth;
698+ iTargetHeight = sConfig.iPicHeight;
699699 if (m_iMaxPicWidth != iTargetWidth
700700 || m_iMaxPicHeight != iTargetHeight) {
701− m_iMaxPicWidth = iTargetWidth;
702− m_iMaxPicHeight = iTargetHeight;
701+ m_iMaxPicWidth = iTargetWidth;
702+ m_iMaxPicHeight = iTargetHeight;
703703 }
704704 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
705705 "CWelsH264SVCEncoder::SetOption():ENCODER_OPTION_SVC_ENCODE_PARAM_BASE iUsageType = %d,iPicWidth= %d;iPicHeight= %d;iTargetBitrate= %d;fMaxFrameRate= %.6ff;iRCMode= %d",
@@ -715,9 +715,9 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 9 unmodified lines
715715 }
716716 break;
717717
718− case ENCODER_OPTION_SVC_ENCODE_PARAM_EXT: { // SVC Encoding Parameter
719− SEncParamExt sEncodingParam;
720− SWelsSvcCodingParam sConfig;
718+ case ENCODER_OPTION_SVC_ENCODE_PARAM_EXT: { // SVC Encoding Parameter
719+ SEncParamExt sEncodingParam;
720+ SWelsSvcCodingParam sConfig;
721721 int32_t iTargetWidth = 0;
722722 int32_t iTargetHeight = 0;
723723
@@ -756,12 +756,12 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 32 unmodified lines
756756 }
757757
758758 /* New configuration available here */
759− iTargetWidth = sConfig.iPicWidth;
760− iTargetHeight = sConfig.iPicHeight;
759+ iTargetWidth = sConfig.iPicWidth;
760+ iTargetHeight = sConfig.iPicHeight;
761761 if (m_iMaxPicWidth != iTargetWidth
762762 || m_iMaxPicHeight != iTargetHeight) {
763− m_iMaxPicWidth = iTargetWidth;
764− m_iMaxPicHeight = iTargetHeight;
763+ m_iMaxPicWidth = iTargetWidth;
764+ m_iMaxPicHeight = iTargetHeight;
765765 }
766766 /* Check every field whether there is new request for memory block changed or else, Oct. 24, 2008 */
767767 if (WelsEncoderParamAdjust (&m_pEncContext, &sConfig)) {

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