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
3838
3939 namespace WelsDec {
4040
41−void InitDctClipTable (void);
42−
4341 void IdctResAddPred_c (uint8_t* pPred, const int32_t kiStride, int16_t* pRs);
4442
4543 #if defined(__cplusplus)
codec/decoder/core/src/decode_mb_aux.cpp+0−26
@@ -37,32 +37,6 @@ · 36 unmodified lines
3737
3838 namespace WelsDec {
3939
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−
6640 //NOTE::: p_RS should NOT be modified and it will lead to mismatch with JSVM.
6741 // so should allocate kA array to store the temporary value (idct).
6842 void 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
644644 pCtx->pGetIChromaPredFunc[C_PRED_DC_T ] = WelsIChromaPredDcTop_c;
645645 pCtx->pGetIChromaPredFunc[C_PRED_DC_128] = WelsIChromaPredDcNA_c;
646646
647− InitDctClipTable();
648647 pCtx->pIdctResAddPredFunc = IdctResAddPred_c;
649648
650649 #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