shithub: openh264

Download patch

ref: 275d7efbc975f16479ac2a3df1977fbb43d2bde1
parent: b3141edcbd1b1208bf138c07b25c5051d309e83e
parent: bfd3a1dd47486f46ab7a09656b34dec9e4b02d76
author: ruil2 <[email protected]>
date: Fri Jun 27 05:03:02 EDT 2014

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

Remove some unused declarations and tables

--- 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)
--- a/codec/encoder/core/inc/set_mb_syn_cavlc.h
+++ b/codec/encoder/core/inc/set_mb_syn_cavlc.h
@@ -77,8 +77,6 @@
 
 void  InitCoeffFunc (const uint32_t uiCpuFlag);
 
-void  InitCavlcTable();
-
 int32_t  WriteBlockResidualCavlc (int16_t* pCoffLevel, int32_t iEndIdx, int32_t iCalRunLevelFlag,
                                   int32_t iResidualProperty, int8_t iNC, SBitStringAux* pBs);
 
--- a/codec/encoder/core/src/encoder_data_tables.cpp
+++ b/codec/encoder/core/src/encoder_data_tables.cpp
@@ -84,16 +84,6 @@
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
-// extern at mb_cache.h
-
-const char* g_sWelsLogTags[] = {
-  "ERR",
-  "WARN",
-  "INFO",
-  "DBUG",
-  "RESV"
-};
-
 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
 // extern at wels_common_basis.h