ref: 1f88cbf49e787ddac38934ef725aa7f00c95d4ec
parent: 32d5c22a9ab0937426836bc332e46ca39f835361
author: Martin Storsjö <martin@martin.st>
date: Thu Jun 26 10:16:08 EDT 2014
Remove an unused global non-const table
--- a/codec/decoder/core/inc/decode_mb_aux.h
+++ b/codec/decoder/core/inc/decode_mb_aux.h
@@ -38,8 +38,6 @@
namespace WelsDec {
-void InitDctClipTable (void);
-
void IdctResAddPred_c (uint8_t* pPred, const int32_t kiStride, int16_t* pRs);
#if defined(__cplusplus)
--- a/codec/decoder/core/src/decode_mb_aux.cpp
+++ b/codec/decoder/core/src/decode_mb_aux.cpp
@@ -37,32 +37,6 @@
namespace WelsDec {
-#define MAX_NEG_CROP 1024
-uint8_t g_ClipTable[256 + 2 *
- MAX_NEG_CROP]; //the front 1024 is 0, the back 1024 is 255, the middle 256 elements is 0-255
-
-
-/* init pClip table to pClip the final dct data */
-void InitDctClipTable (void) {
- uint8_t* p = &g_ClipTable[0];
- const int32_t kiLength = MAX_NEG_CROP * sizeof (uint8_t);
- int32_t i = 0;
-
- do {
- const int32_t kiIdx = MAX_NEG_CROP + i;
-
- p[kiIdx] = i;
- p[1 + kiIdx] = 1 + i;
- p[2 + kiIdx] = 2 + i;
- p[3 + kiIdx] = 3 + i;
-
- i += 4;
- } while (i < 256);
-
- memset (p, 0, kiLength);
- memset (p + MAX_NEG_CROP + 256, 0xFF, kiLength);
-}
-
//NOTE::: p_RS should NOT be modified and it will lead to mismatch with JSVM.
// so should allocate kA array to store the temporary value (idct).
void IdctResAddPred_c (uint8_t* pPred, const int32_t kiStride, int16_t* pRs) {
--- a/codec/decoder/core/src/decoder.cpp
+++ b/codec/decoder/core/src/decoder.cpp
@@ -644,7 +644,6 @@
pCtx->pGetIChromaPredFunc[C_PRED_DC_T ] = WelsIChromaPredDcTop_c;
pCtx->pGetIChromaPredFunc[C_PRED_DC_128] = WelsIChromaPredDcNA_c;
- InitDctClipTable();
pCtx->pIdctResAddPredFunc = IdctResAddPred_c;
#if defined(HAVE_NEON)