Remove some unused declarations and tables
Showing the changes to codec/decoder (3 of 5 files). Show all
Unified · Split
| @@ -38,8 +38,6 @@ · 37 unmodified lines | ||
| 38 | 38 | |
| 39 | 39 | namespace WelsDec { |
| 40 | 40 | |
| 41 | −void InitDctClipTable (void); | |
| 42 | − | |
| 43 | 41 | void IdctResAddPred_c (uint8_t* pPred, const int32_t kiStride, int16_t* pRs); |
| 44 | 42 | |
| 45 | 43 | #if defined(__cplusplus) |
| @@ -37,32 +37,6 @@ · 36 unmodified lines | ||
| 37 | 37 | |
| 38 | 38 | namespace WelsDec { |
| 39 | 39 | |
| 40 | −#define MAX_NEG_CROP 1024 | |
| 41 | −uint8_t g_ClipTable[256 + 2 * | |
| 42 | − MAX_NEG_CROP]; //the front 1024 is 0, the back 1024 is 255, the middle 256 elements is 0-255 | |
| 43 | − | |
| 44 | − | |
| 45 | −/* init pClip table to pClip the final dct data */ | |
| 46 | −void InitDctClipTable (void) { | |
| 47 | − uint8_t* p = &g_ClipTable[0]; | |
| 48 | − const int32_t kiLength = MAX_NEG_CROP * sizeof (uint8_t); | |
| 49 | − int32_t i = 0; | |
| 50 | − | |
| 51 | − do { | |
| 52 | − const int32_t kiIdx = MAX_NEG_CROP + i; | |
| 53 | − | |
| 54 | − p[kiIdx] = i; | |
| 55 | − p[1 + kiIdx] = 1 + i; | |
| 56 | − p[2 + kiIdx] = 2 + i; | |
| 57 | − p[3 + kiIdx] = 3 + i; | |
| 58 | − | |
| 59 | − i += 4; | |
| 60 | − } while (i < 256); | |
| 61 | − | |
| 62 | − memset (p, 0, kiLength); | |
| 63 | − memset (p + MAX_NEG_CROP + 256, 0xFF, kiLength); | |
| 64 | −} | |
| 65 | − | |
| 66 | 40 | //NOTE::: p_RS should NOT be modified and it will lead to mismatch with JSVM. |
| 67 | 41 | // so should allocate kA array to store the temporary value (idct). |
| 68 | 42 | void IdctResAddPred_c (uint8_t* pPred, const int32_t kiStride, int16_t* pRs) { |
| @@ -644,7 +644,6 @@ void AssignFuncPointerForRec (PWelsDecoderContext pCtx) { · 643 unmodified lines | ||
| 644 | 644 | pCtx->pGetIChromaPredFunc[C_PRED_DC_T ] = WelsIChromaPredDcTop_c; |
| 645 | 645 | pCtx->pGetIChromaPredFunc[C_PRED_DC_128] = WelsIChromaPredDcNA_c; |
| 646 | 646 | |
| 647 | − InitDctClipTable(); | |
| 648 | 647 | pCtx->pIdctResAddPredFunc = IdctResAddPred_c; |
| 649 | 648 | |
| 650 | 649 | #if defined(HAVE_NEON) |