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/processing/src (4 of 54 files). Show all

Unified · Split

4 files
  1. codec/processing/src/backgrounddetection/BackgroundDetection.cpp +3 −3
  2. codec/processing/src/common/memory.cpp +1 −1
  3. codec/processing/src/downsample/downsample.cpp +7 −7
  4. codec/processing/src/scenechangedetection/SceneChangeDetection.h +3 −3
codec/processing/src/backgrounddetection/BackgroundDetection.cpp+3−3
@@ -278,7 +278,7 @@ inline void CBackgroundDetection::ForegroundDilation (SBackgroundOU* pBackground · 277 unmodified lines
278278
279279 // chroma component check
280280 if (pBackgroundOU->iBackgroundFlag == 1) {
281− int8_t iNeighbourForegroundFlags = !pOUNeighbours[0]->iBackgroundFlag | ((!pOUNeighbours[1]->iBackgroundFlag) << 1)
281+ int8_t iNeighbourForegroundFlags = !pOUNeighbours[0]->iBackgroundFlag | ((!pOUNeighbours[1]->iBackgroundFlag) << 1)
282282 | ((!pOUNeighbours[2]->iBackgroundFlag) << 2) | ((!pOUNeighbours[3]->iBackgroundFlag) << 3);
283283 pBackgroundOU->iBackgroundFlag = !ForegroundDilation23Chroma (iNeighbourForegroundFlags, iChromaSampleStartPos,
284284 iPicStrideUV, pBgdParam);
@@ -291,9 +291,9 @@ inline void CBackgroundDetection::ForegroundDilation (SBackgroundOU* pBackground · 6 unmodified lines
291291 }
292292 inline void CBackgroundDetection::BackgroundErosion (SBackgroundOU* pBackgroundOU, SBackgroundOU* pOUNeighbours[]) {
293293 if (pBackgroundOU->iMaxDiffSubSd <= (BGD_OU_SIZE * Q_FACTOR)) { //BGD_OU_SIZE*BGD_OU_SIZE>>2
294− int32_t iSumNeighBackgroundFlags = pOUNeighbours[0]->iBackgroundFlag + pOUNeighbours[1]->iBackgroundFlag +
294+ int32_t iSumNeighBackgroundFlags = pOUNeighbours[0]->iBackgroundFlag + pOUNeighbours[1]->iBackgroundFlag +
295295 pOUNeighbours[2]->iBackgroundFlag + pOUNeighbours[3]->iBackgroundFlag;
296− int32_t sumNbrBGsad = (pOUNeighbours[0]->iSAD & (-pOUNeighbours[0]->iBackgroundFlag)) + (pOUNeighbours[2]->iSAD &
296+ int32_t sumNbrBGsad = (pOUNeighbours[0]->iSAD & (-pOUNeighbours[0]->iBackgroundFlag)) + (pOUNeighbours[2]->iSAD &
297297 (-pOUNeighbours[2]->iBackgroundFlag))
298298 + (pOUNeighbours[1]->iSAD & (-pOUNeighbours[1]->iBackgroundFlag)) + (pOUNeighbours[3]->iSAD &
299299 (-pOUNeighbours[3]->iBackgroundFlag));
codec/processing/src/common/memory.cpp+1−1
@@ -105,7 +105,7 @@ void* WelsRealloc (void* pPointer, uint32_t* pRealSize, const uint32_t kuiSize, · 104 unmodified lines
105105
106106 pLocalPointer = InternalReallocate (pPointer, kuiNewSize, pTag);
107107 if (NULL != pLocalPointer) {
108− *pRealSize = kuiNewSize;
108+ *pRealSize = kuiNewSize;
109109 return (pLocalPointer);
110110 } else {
111111 return NULL;
codec/processing/src/downsample/downsample.cpp+7−7
@@ -139,14 +139,14 @@ EResult CDownsampling::Process (int32_t iType, SPixMap* pSrcPixMap, SPixMap* pDs · 138 unmodified lines
139139
140140 int32_t CDownsampling::GetAlignedIndex (const int32_t kiSrcWidth) {
141141 int32_t iAlignIndex;
142− if ((kiSrcWidth & 0x1f) == 0) // x32
143− iAlignIndex = 0;
144− else if ((kiSrcWidth & 0x0f) == 0) // x16
145− iAlignIndex = 1;
146− else if ((kiSrcWidth & 0x07) == 0) // x8
147− iAlignIndex = 2;
142+ if ((kiSrcWidth & 0x1f) == 0) // x32
143+ iAlignIndex = 0;
144+ else if ((kiSrcWidth & 0x0f) == 0) // x16
145+ iAlignIndex = 1;
146+ else if ((kiSrcWidth & 0x07) == 0) // x8
147+ iAlignIndex = 2;
148148 else
149− iAlignIndex = 3;
149+ iAlignIndex = 3;
150150 return iAlignIndex;
151151 }
152152
codec/processing/src/scenechangedetection/SceneChangeDetection.h+3−3
@@ -104,7 +104,7 @@ class CSceneChangeDetectorVideo { · 103 unmodified lines
104104 iCurRowStride = sLocalParam.iCurStride << 3;
105105
106106 for (int32_t j = 0; j < sLocalParam.iBlock8x8Height; j++) {
107− pRefTmp = pRefY;
107+ pRefTmp = pRefY;
108108 pCurTmp = pCurY;
109109 for (int32_t i = 0; i < sLocalParam.iBlock8x8Width; i++) {
110110 int32_t iSad = m_pfSad (pCurTmp, sLocalParam.iCurStride, pRefTmp, sLocalParam.iRefStride);
@@ -154,7 +154,7 @@ class CSceneChangeDetectorScreen : public CSceneChangeDetectorVideo { · 43 unmodified lines
154154 iCurRowStride = sLocalParam.iCurStride << 3;
155155
156156 for (int32_t j = 0; j < sLocalParam.iBlock8x8Height; j++) {
157− pRefTmp = pRefY;
157+ pRefTmp = pRefY;
158158 pCurTmp = pCurY;
159159 for (int32_t i = 0; i < sLocalParam.iBlock8x8Width; i++) {
160160 int32_t iBlockPointX = i << 3;
@@ -216,7 +216,7 @@ class CSceneChangeDetection : public IStrategy { · 55 unmodified lines
216216 int32_t iBlock8x8Num = m_sLocalParam.iBlock8x8Width * m_sLocalParam.iBlock8x8Height;
217217 int32_t iSceneChangeThresholdLarge = WelsStaticCast (int32_t,
218218 m_cDetector.GetSceneChangeMotionRatioLarge() * iBlock8x8Num + 0.5f + PESN);
219− int32_t iSceneChangeThresholdMedium = WelsStaticCast (int32_t,
219+ int32_t iSceneChangeThresholdMedium = WelsStaticCast (int32_t,
220220 m_cDetector.GetSceneChangeMotionRatioMedium() * iBlock8x8Num + 0.5f + PESN);
221221
222222 m_sSceneChangeParam.iMotionBlockNum = 0;

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