ref: 2243467c1b9a15ccb8ea8b84c716518aa467053d
parent: 24359dcde11dc7c5584fa118b4843ab11d028f69
parent: 3b297ec86690802631568ffdbf6148a1195bf667
author: Ethan Hugg <[email protected]>
date: Tue Feb 18 06:26:19 EST 2014
Merge pull request #304 from mstorsjo/remove-unused-variables Remove completely unused variables and private fields
--- a/codec/console/dec/src/h264dec.cpp
+++ b/codec/console/dec/src/h264dec.cpp
@@ -79,7 +79,6 @@
int32_t iFrameCount = 0;
int32_t iEndOfStreamFlag = 0;
int32_t iColorFormat = videoFormatInternal;
- static int32_t iFrameNum = 0;
CUtils cOutputModule;
double dElapsed = 0;
@@ -210,7 +209,6 @@
iEnd = WelsTime();
iTotal += iEnd - iStart;
if (sDstBufInfo.iBufferStatus == 1) {
- iFrameNum++;
cOutputModule.Process ((void**)pDst, &sDstBufInfo, pYuvFile);
iWidth = sDstBufInfo.UsrData.sSystemBuffer.iWidth;
iHeight = sDstBufInfo.UsrData.sSystemBuffer.iHeight;
--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -238,8 +238,6 @@
for (int8_t iLayer = 0; iLayer < kiActualLayerNum; ++ iLayer) {
SLayerPEncCtx sLayerCtx;
- int32_t iLayerArg = -2;
- int32_t iNumQualityBitrateLayerSet = 0;
SSpatialLayerConfig* pDLayer = &pSvcParam.sSpatialLayers[iLayer];
CReadConfig cRdLayerCfg (sFileSet.sSpatialLayers[iLayer].strLayerCfgFile);
@@ -253,7 +251,6 @@
while (!cRdLayerCfg.EndOfFile()) {
long iLayerRd = cRdLayerCfg.ReadLine (&strTag[0]);
- bool bFound = false;
if (iLayerRd > 0) {
if (strTag[0].empty())
continue;
@@ -474,8 +471,6 @@
for (int8_t iLayer = 0; iLayer < pSvcParam.iSpatialLayerNum; ++ iLayer) {
SLayerPEncCtx sLayerCtx;
string strTag[4];
- int32_t iLayerArg = -2;
- int32_t iNumQualityBitrateLayerSet = 0;
SSpatialLayerConfig* pDLayer = &pSvcParam.sSpatialLayers[iLayer];
CReadConfig cRdLayerCfg (sFileSet.sSpatialLayers[iLayer].strLayerCfgFile);
@@ -1222,8 +1217,6 @@
int main (int argc, char** argv)
{
ISVCEncoder* pSVCEncoder = NULL;
- FILE* pFileOut = NULL;
- FILE* pFileIn = NULL;
int iRet = 0;
#ifdef _MSC_VER
--- a/codec/decoder/core/src/decode_mb_aux.cpp
+++ b/codec/decoder/core/src/decode_mb_aux.cpp
@@ -71,7 +71,6 @@
uint8_t* pDst = pPred;
const int32_t kiStride2 = kiStride << 1;
const int32_t kiStride3 = kiStride + kiStride2;
- uint8_t* pClip = &g_ClipTable[MAX_NEG_CROP];
int32_t i;
for (i = 0; i < 4; i++) {
--- a/codec/processing/src/denoise/denoise.h
+++ b/codec/processing/src/denoise/denoise.h
@@ -97,10 +97,8 @@
private:
float m_fSigmaGrey; //sigma for grey scale similarity, suggestion 2.5-3
- uint32_t m_uiFilterWindow; //filter window diameter
uint16_t m_uiSpaceRadius; //filter windows radius: 1-3x3, 2-5x5,3-7x7. Larger size, slower speed
uint16_t m_uiType; //do denoising on which component 1-Y, 2-U, 4-V; 7-YUV, 3-YU, 5-YV, 6-UV
- uint32_t* m_pGreyWeightTable; //weight table for grey scale
SDenoiseFuncs m_pfDenoise;
int32_t m_CPUFlag;