History

Mark pointers to quantization functions const where possible

Martin Storsjö committed 12 years ago

Commit 61117c81 parent 8c461783 files · +9 −9Browse files

Showing the changes to codec/encoder/core/src/encode_mb_aux.cpp (1 of 3 files). Show all

Unified · Split

codec/encoder/core/src/encode_mb_aux.cpp+3−3
@@ -165,7 +165,7 @@ __align16 (int16_t, g_kiQuantMF[52][8]) = { · 164 unmodified lines
165#define WELS_ABS_LC(a) ((iSign ^ (int32_t)(a)) - iSign)165#define WELS_ABS_LC(a) ((iSign ^ (int32_t)(a)) - iSign)
166#define NEW_QUANT(pDct, iFF, iMF) (((iFF)+ WELS_ABS_LC(pDct))*(iMF)) >>16166#define NEW_QUANT(pDct, iFF, iMF) (((iFF)+ WELS_ABS_LC(pDct))*(iMF)) >>16
167#define WELS_NEW_QUANT(pDct,iFF,iMF) WELS_ABS_LC(NEW_QUANT(pDct, iFF, iMF))167#define WELS_NEW_QUANT(pDct,iFF,iMF) WELS_ABS_LC(NEW_QUANT(pDct, iFF, iMF))
168void WelsQuant4x4_c (int16_t* pDct, int16_t* pFF, int16_t* pMF) {168void WelsQuant4x4_c (int16_t* pDct, const int16_t* pFF, const int16_t* pMF) {
169 int32_t i, j, iSign;169 int32_t i, j, iSign;
170 for (i = 0; i < 16; i += 4) {170 for (i = 0; i < 16; i += 4) {
171 j = i & 0x07;171 j = i & 0x07;
@@ -194,7 +194,7 @@ void WelsQuant4x4Dc_c (int16_t* pDct, int16_t iFF, int16_t iMF) { · 22 unmodified lines
194 }194 }
195}195}
196 196
197void WelsQuantFour4x4_c (int16_t* pDct, int16_t* pFF, int16_t* pMF) {197void WelsQuantFour4x4_c (int16_t* pDct, const int16_t* pFF, const int16_t* pMF) {
198 int32_t i, j, iSign;198 int32_t i, j, iSign;
199 199
200 for (i = 0; i < 64; i += 4) {200 for (i = 0; i < 64; i += 4) {
@@ -210,7 +210,7 @@ void WelsQuantFour4x4_c (int16_t* pDct, int16_t* pFF, int16_t* pMF) { · 9 unmodified lines
210 }210 }
211}211}
212 212
213void WelsQuantFour4x4Max_c (int16_t* pDct, int16_t* pFF, int16_t* pMF, int16_t* pMax) {213void WelsQuantFour4x4Max_c (int16_t* pDct, const int16_t* pFF, const int16_t* pMF, int16_t* pMax) {
214 int32_t i, j, k, iSign;214 int32_t i, j, k, iSign;
215 int16_t iMaxAbs;215 int16_t iMaxAbs;
216 for (k = 0; k < 4; k++) {216 for (k = 0; k < 4; k++) {

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