History

Convert tabs to spaces in defines

Martin Storsjö committed 11 years ago

Commit 72304481 parent 43767cd13 files · +34 −34Browse files

Showing the changes to codec/processing/src (2 of 13 files). Show all

Unified · Split

2 files
  1. codec/processing/src/common/util.h +4 −4
  2. codec/processing/src/denoise/denoise_filter.cpp +3 −3
codec/processing/src/common/util.h+4−4
@@ -70,15 +70,15 @@ WELSVP_NAMESPACE_BEGIN · 69 unmodified lines
7070 #define MB_TYPE_INTRA (MB_TYPE_INTRA4x4 | MB_TYPE_INTRA16x16 | MB_TYPE_INTRA_PCM)
7171 #define IS_INTRA(type) ((type)&MB_TYPE_INTRA)
7272
73−#define WELS_MAX(x, y) ((x) > (y) ? (x) : (y))
74−#define WELS_MIN(x, y) ((x) < (y) ? (x) : (y))
73+#define WELS_MAX(x, y) ((x) > (y) ? (x) : (y))
74+#define WELS_MIN(x, y) ((x) < (y) ? (x) : (y))
7575
7676 #ifndef WELS_SIGN
77−#define WELS_SIGN(a) ((int32_t)(a) >> 31)
77+#define WELS_SIGN(a) ((int32_t)(a) >> 31)
7878 #endif
7979
8080 #ifndef WELS_ABS
81−#define WELS_ABS(a) ((WELS_SIGN(a) ^ (int32_t)(a)) - WELS_SIGN(a))
81+#define WELS_ABS(a) ((WELS_SIGN(a) ^ (int32_t)(a)) - WELS_SIGN(a))
8282 #endif
8383
8484 #define WELS_CLAMP(x, minv, maxv) WELS_MIN(WELS_MAX(x, minv), maxv)
codec/processing/src/denoise/denoise_filter.cpp+3−3
@@ -83,9 +83,9 @@ void BilateralLumaFilter8_c (uint8_t* pSample, int32_t iStride) { · 82 unmodified lines
8383 1 2 4 2 1
8484 1 1 2 1 1
8585 ***************************************************************************/
86−#define SUM_LINE1(pSample) (pSample[0] +(pSample[1]) +(pSample[2]<<1) + pSample[3] + pSample[4])
87−#define SUM_LINE2(pSample) (pSample[0] +(pSample[1]<<1) +(pSample[2]<<2) +(pSample[3]<<1) +pSample[4])
88−#define SUM_LINE3(pSample) ((pSample[0]<<1) +(pSample[1]<<2) +(pSample[2]*20) +(pSample[3]<<2) +(pSample[4]<<1))
86+#define SUM_LINE1(pSample) (pSample[0] +(pSample[1]) +(pSample[2]<<1) + pSample[3] + pSample[4])
87+#define SUM_LINE2(pSample) (pSample[0] +(pSample[1]<<1) +(pSample[2]<<2) +(pSample[3]<<1) + pSample[4])
88+#define SUM_LINE3(pSample) ((pSample[0]<<1) +(pSample[1]<<2) +(pSample[2]*20) +(pSample[3]<<2) +(pSample[4]<<1))
8989 void WaverageChromaFilter8_c (uint8_t* pSample, int32_t iStride) {
9090 int32_t sum;
9191 uint8_t* pStartPixels = pSample - UV_WINDOWS_RADIUS * iStride - UV_WINDOWS_RADIUS;

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