Changeset 1376 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 22 Jul 2015, 20:12:06 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1375 r1376 1943 1943 for(layer = 0; layer < m_numLayers; layer++) 1944 1944 { 1945 UInt layerId = vps->getLayerIdInNuh(layer); 1946 m_apcTEncTop[layerId]->getAnalyzeAll()->setFrmRate( m_acLayerCfg[layer].getFrameRate() * rateMultiplier ); 1947 m_apcTEncTop[layerId]->getAnalyzeI()->setFrmRate( m_acLayerCfg[layer].getFrameRate() * rateMultiplier ); 1948 m_apcTEncTop[layerId]->getAnalyzeP()->setFrmRate( m_acLayerCfg[layer].getFrameRate() * rateMultiplier ); 1949 m_apcTEncTop[layerId]->getAnalyzeB()->setFrmRate( m_acLayerCfg[layer].getFrameRate() * rateMultiplier ); 1945 m_apcTEncTop[layer]->getAnalyzeAll()->setFrmRate( m_acLayerCfg[layer].getFrameRate() * rateMultiplier ); 1946 m_apcTEncTop[layer]->getAnalyzeI()->setFrmRate( m_acLayerCfg[layer].getFrameRate() * rateMultiplier ); 1947 m_apcTEncTop[layer]->getAnalyzeP()->setFrmRate( m_acLayerCfg[layer].getFrameRate() * rateMultiplier ); 1948 m_apcTEncTop[layer]->getAnalyzeB()->setFrmRate( m_acLayerCfg[layer].getFrameRate() * rateMultiplier ); 1950 1949 } 1951 1950 … … 1955 1954 { 1956 1955 const BitDepths bitDepths(m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_LUMA], m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 1957 m_apcTEncTop[ vps->getLayerIdInNuh(layer)]->getAnalyzeAll()->printOut('a', m_acLayerCfg[layer].getChromaFormatIDC(), printMSEBasedSNR, printSequenceMSE, bitDepths, layer);1956 m_apcTEncTop[layer]->getAnalyzeAll()->printOut('a', m_acLayerCfg[layer].getChromaFormatIDC(), printMSEBasedSNR, printSequenceMSE, bitDepths, layer); 1958 1957 } 1959 1958 … … 1962 1961 { 1963 1962 const BitDepths bitDepths(m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_LUMA], m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 1964 m_apcTEncTop[ vps->getLayerIdInNuh(layer)]->getAnalyzeI()->printOut('i', m_acLayerCfg[layer].getChromaFormatIDC(), printMSEBasedSNR, printSequenceMSE, bitDepths, layer);1963 m_apcTEncTop[layer]->getAnalyzeI()->printOut('i', m_acLayerCfg[layer].getChromaFormatIDC(), printMSEBasedSNR, printSequenceMSE, bitDepths, layer); 1965 1964 } 1966 1965 … … 1969 1968 { 1970 1969 const BitDepths bitDepths(m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_LUMA], m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 1971 m_apcTEncTop[ vps->getLayerIdInNuh(layer)]->getAnalyzeP()->printOut('p', m_acLayerCfg[layer].getChromaFormatIDC(), printMSEBasedSNR, printSequenceMSE, bitDepths, layer);1970 m_apcTEncTop[layer]->getAnalyzeP()->printOut('p', m_acLayerCfg[layer].getChromaFormatIDC(), printMSEBasedSNR, printSequenceMSE, bitDepths, layer); 1972 1971 } 1973 1972 … … 1976 1975 { 1977 1976 const BitDepths bitDepths(m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_LUMA], m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 1978 m_apcTEncTop[ vps->getLayerIdInNuh(layer)]->getAnalyzeB()->printOut('b', m_acLayerCfg[layer].getChromaFormatIDC(), printMSEBasedSNR, printSequenceMSE, bitDepths, layer);1977 m_apcTEncTop[layer]->getAnalyzeB()->printOut('b', m_acLayerCfg[layer].getChromaFormatIDC(), printMSEBasedSNR, printSequenceMSE, bitDepths, layer); 1979 1978 } 1980 1979 1981 1980 for( layer = 0; layer < m_numLayers; layer++ ) 1982 1981 { 1983 const UInt layerId = vps->getLayerIdInNuh(layer); 1984 1985 if (!m_apcTEncTop[layerId]->getSummaryOutFilename().empty()) 1982 if (!m_apcTEncTop[layer]->getSummaryOutFilename().empty()) 1986 1983 { 1987 1984 const BitDepths bitDepths(m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_LUMA], m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 1988 1985 1989 m_apcTEncTop[layer Id]->getAnalyzeAll()->printSummary(m_acLayerCfg[layer].getChromaFormatIDC(), printSequenceMSE, bitDepths, m_apcTEncTop[layerId]->getSummaryOutFilename());1986 m_apcTEncTop[layer]->getAnalyzeAll()->printSummary(m_acLayerCfg[layer].getChromaFormatIDC(), printSequenceMSE, bitDepths, m_apcTEncTop[layer]->getSummaryOutFilename()); 1990 1987 } 1991 1988 } … … 1993 1990 for( layer = 0; layer < m_numLayers; layer++ ) 1994 1991 { 1995 const UInt layerId = vps->getLayerIdInNuh(layer); 1996 1997 if (!m_apcTEncTop[layerId]->getSummaryPicFilenameBase().empty()) 1992 if (!m_apcTEncTop[layer]->getSummaryPicFilenameBase().empty()) 1998 1993 { 1999 1994 const BitDepths bitDepths(m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_LUMA], m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 2000 1995 2001 m_apcTEncTop[layer Id]->getAnalyzeI()->printSummary(m_acLayerCfg[layer].getChromaFormatIDC(), printSequenceMSE, bitDepths, m_apcTEncTop[layerId]->getSummaryPicFilenameBase()+"I.txt");2002 m_apcTEncTop[layer Id]->getAnalyzeP()->printSummary(m_acLayerCfg[layer].getChromaFormatIDC(), printSequenceMSE, bitDepths, m_apcTEncTop[layerId]->getSummaryPicFilenameBase()+"P.txt");2003 m_apcTEncTop[layer Id]->getAnalyzeB()->printSummary(m_acLayerCfg[layer].getChromaFormatIDC(), printSequenceMSE, bitDepths, m_apcTEncTop[layerId]->getSummaryPicFilenameBase()+"B.txt");1996 m_apcTEncTop[layer]->getAnalyzeI()->printSummary(m_acLayerCfg[layer].getChromaFormatIDC(), printSequenceMSE, bitDepths, m_apcTEncTop[layer]->getSummaryPicFilenameBase()+"I.txt"); 1997 m_apcTEncTop[layer]->getAnalyzeP()->printSummary(m_acLayerCfg[layer].getChromaFormatIDC(), printSequenceMSE, bitDepths, m_apcTEncTop[layer]->getSummaryPicFilenameBase()+"P.txt"); 1998 m_apcTEncTop[layer]->getAnalyzeB()->printSummary(m_acLayerCfg[layer].getChromaFormatIDC(), printSequenceMSE, bitDepths, m_apcTEncTop[layer]->getSummaryPicFilenameBase()+"B.txt"); 2004 1999 } 2005 2000 } … … 2009 2004 for(layer = 0; layer < m_numLayers; layer++) 2010 2005 { 2011 const UInt layerId = vps->getLayerIdInNuh(layer);2012 2013 2006 const BitDepths bitDepths(m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_LUMA], m_acLayerCfg[layer].m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 2014 TEncAnalyze *analyze = m_apcTEncTop[layer Id]->getAnalyzeAllin();2007 TEncAnalyze *analyze = m_apcTEncTop[layer]->getAnalyzeAllin(); 2015 2008 2016 2009 //-- interlaced summary 2017 2010 analyze->setFrmRate( m_acLayerCfg[layer].getFrameRate()); 2018 analyze->setBits(m_apcTEncTop[layer Id]->getAnalyzeB()->getBits());2011 analyze->setBits(m_apcTEncTop[layer]->getAnalyzeB()->getBits()); 2019 2012 // prior to the above statement, the interlace analyser does not contain the correct total number of bits. 2020 2013 … … 2022 2015 analyze->printOut('a', m_acLayerCfg[layer].getChromaFormatIDC(), printMSEBasedSNR, printSequenceMSE, bitDepths, layer); 2023 2016 2024 if (!m_apcTEncTop[layer Id]->getSummaryOutFilename().empty())2025 { 2026 analyze->printSummary(m_acLayerCfg[layer].getChromaFormatIDC(), printSequenceMSE, bitDepths, m_apcTEncTop[layer Id]->getSummaryOutFilename());2017 if (!m_apcTEncTop[layer]->getSummaryOutFilename().empty()) 2018 { 2019 analyze->printSummary(m_acLayerCfg[layer].getChromaFormatIDC(), printSequenceMSE, bitDepths, m_apcTEncTop[layer]->getSummaryOutFilename()); 2027 2020 } 2028 2021 } … … 2032 2025 for( layer = 0; layer < m_numLayers; layer++ ) 2033 2026 { 2034 printf("RVM[L%d]: %.3lf\n", layer, m_apcTEncTop[ vps->getLayerIdInNuh(layer)]->calculateRVM());2027 printf("RVM[L%d]: %.3lf\n", layer, m_apcTEncTop[layer]->calculateRVM()); 2035 2028 } 2036 2029 printf("\n");
Note: See TracChangeset for help on using the changeset viewer.