History

Merge pull request #1021 from mstorsjo/remove-unused-declarations

Remove some unused declarations and tables

ruil2 committed 12 years ago

Commit 275d7ef2 parents b3141ed bfd3a1d5 files · +0 −41Browse files

Showing the changes to codec/decoder (3 of 5 files). Show all

Unified · Split

3 files
  1. codec/decoder/core/inc/decode_mb_aux.h +0 −2
  2. codec/decoder/core/src/decode_mb_aux.cpp +0 −26
  3. codec/decoder/core/src/decoder.cpp +0 −1
codec/decoder/core/inc/decode_mb_aux.h+0−2
@@ -38,8 +38,6 @@ · 37 unmodified lines
38 38
39namespace WelsDec {39namespace WelsDec {
40 40
41void InitDctClipTable (void);
42
43void IdctResAddPred_c (uint8_t* pPred, const int32_t kiStride, int16_t* pRs);41void IdctResAddPred_c (uint8_t* pPred, const int32_t kiStride, int16_t* pRs);
44 42
45#if defined(__cplusplus)43#if defined(__cplusplus)
codec/decoder/core/src/decode_mb_aux.cpp+0−26
@@ -37,32 +37,6 @@ · 36 unmodified lines
37 37
38namespace WelsDec {38namespace WelsDec {
39 39
40#define MAX_NEG_CROP 1024
41uint8_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 */
46void 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//NOTE::: p_RS should NOT be modified and it will lead to mismatch with JSVM.40//NOTE::: p_RS should NOT be modified and it will lead to mismatch with JSVM.
67// so should allocate kA array to store the temporary value (idct).41// so should allocate kA array to store the temporary value (idct).
68void IdctResAddPred_c (uint8_t* pPred, const int32_t kiStride, int16_t* pRs) {42void IdctResAddPred_c (uint8_t* pPred, const int32_t kiStride, int16_t* pRs) {
codec/decoder/core/src/decoder.cpp+0−1
@@ -644,7 +644,6 @@ void AssignFuncPointerForRec (PWelsDecoderContext pCtx) { · 643 unmodified lines
644 pCtx->pGetIChromaPredFunc[C_PRED_DC_T ] = WelsIChromaPredDcTop_c;644 pCtx->pGetIChromaPredFunc[C_PRED_DC_T ] = WelsIChromaPredDcTop_c;
645 pCtx->pGetIChromaPredFunc[C_PRED_DC_128] = WelsIChromaPredDcNA_c;645 pCtx->pGetIChromaPredFunc[C_PRED_DC_128] = WelsIChromaPredDcNA_c;
646 646
647 InitDctClipTable();
648 pCtx->pIdctResAddPredFunc = IdctResAddPred_c;647 pCtx->pIdctResAddPredFunc = IdctResAddPred_c;
649 648
650#if defined(HAVE_NEON)649#if defined(HAVE_NEON)

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