- Timestamp:
- 13 Aug 2015, 20:44:52 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1442 r1447 1708 1708 for(layer = 0; layer < m_numLayers; layer++) 1709 1709 { 1710 const UInt layerId = m_apcTEncTop[layer]->getVPS()->getLayerIdInNuh(layer); 1710 1711 const BitDepths bitDepths(m_apcLayerCfg[layer]->m_internalBitDepth[CHANNEL_TYPE_LUMA], m_apcLayerCfg[layer]->m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 1711 m_apcTEncTop[layer]->getAnalyzeAll()->printOut('a', m_apcLayerCfg[layer]->m_chromaFormatIDC, printMSEBasedSNR, printSequenceMSE, bitDepths, layer );1712 m_apcTEncTop[layer]->getAnalyzeAll()->printOut('a', m_apcLayerCfg[layer]->m_chromaFormatIDC, printMSEBasedSNR, printSequenceMSE, bitDepths, layerId); 1712 1713 } 1713 1714 … … 1715 1716 for(layer = 0; layer < m_numLayers; layer++) 1716 1717 { 1718 const UInt layerId = m_apcTEncTop[layer]->getVPS()->getLayerIdInNuh(layer); 1717 1719 const BitDepths bitDepths(m_apcLayerCfg[layer]->m_internalBitDepth[CHANNEL_TYPE_LUMA], m_apcLayerCfg[layer]->m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 1718 m_apcTEncTop[layer]->getAnalyzeI()->printOut('i', m_apcLayerCfg[layer]->m_chromaFormatIDC, printMSEBasedSNR, printSequenceMSE, bitDepths, layer );1720 m_apcTEncTop[layer]->getAnalyzeI()->printOut('i', m_apcLayerCfg[layer]->m_chromaFormatIDC, printMSEBasedSNR, printSequenceMSE, bitDepths, layerId); 1719 1721 } 1720 1722 … … 1722 1724 for(layer = 0; layer < m_numLayers; layer++) 1723 1725 { 1726 const UInt layerId = m_apcTEncTop[layer]->getVPS()->getLayerIdInNuh(layer); 1724 1727 const BitDepths bitDepths(m_apcLayerCfg[layer]->m_internalBitDepth[CHANNEL_TYPE_LUMA], m_apcLayerCfg[layer]->m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 1725 m_apcTEncTop[layer]->getAnalyzeP()->printOut('p', m_apcLayerCfg[layer]->m_chromaFormatIDC, printMSEBasedSNR, printSequenceMSE, bitDepths, layer );1728 m_apcTEncTop[layer]->getAnalyzeP()->printOut('p', m_apcLayerCfg[layer]->m_chromaFormatIDC, printMSEBasedSNR, printSequenceMSE, bitDepths, layerId); 1726 1729 } 1727 1730 … … 1729 1732 for(layer = 0; layer < m_numLayers; layer++) 1730 1733 { 1734 const UInt layerId = m_apcTEncTop[layer]->getVPS()->getLayerIdInNuh(layer); 1731 1735 const BitDepths bitDepths(m_apcLayerCfg[layer]->m_internalBitDepth[CHANNEL_TYPE_LUMA], m_apcLayerCfg[layer]->m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 1732 m_apcTEncTop[layer]->getAnalyzeB()->printOut('b', m_apcLayerCfg[layer]->m_chromaFormatIDC, printMSEBasedSNR, printSequenceMSE, bitDepths, layer );1736 m_apcTEncTop[layer]->getAnalyzeB()->printOut('b', m_apcLayerCfg[layer]->m_chromaFormatIDC, printMSEBasedSNR, printSequenceMSE, bitDepths, layerId); 1733 1737 } 1734 1738 … … 1759 1763 for(layer = 0; layer < m_numLayers; layer++) 1760 1764 { 1765 const UInt layerId = m_apcTEncTop[layer]->getVPS()->getLayerIdInNuh(layer); 1761 1766 const BitDepths bitDepths(m_apcLayerCfg[layer]->m_internalBitDepth[CHANNEL_TYPE_LUMA], m_apcLayerCfg[layer]->m_internalBitDepth[CHANNEL_TYPE_CHROMA]); 1762 1767 TEncAnalyze *analyze = m_apcTEncTop[layer]->getAnalyzeAllin(); … … 1768 1773 1769 1774 printf( "\n\nSUMMARY INTERLACED ---------------------------------------------\n" ); 1770 analyze->printOut('a', m_apcLayerCfg[layer]->m_chromaFormatIDC, printMSEBasedSNR, printSequenceMSE, bitDepths, layer );1775 analyze->printOut('a', m_apcLayerCfg[layer]->m_chromaFormatIDC, printMSEBasedSNR, printSequenceMSE, bitDepths, layerId); 1771 1776 1772 1777 if (!m_apcTEncTop[layer]->getSummaryOutFilename().empty()) … … 1780 1785 for( layer = 0; layer < m_numLayers; layer++ ) 1781 1786 { 1782 printf("RVM[L%d]: %.3lf\n", layer, m_apcTEncTop[layer]->calculateRVM()); 1787 const UInt layerId = m_apcTEncTop[layer]->getVPS()->getLayerIdInNuh(layer); 1788 printf("RVM[L%d]: %.3lf\n", layerId, m_apcTEncTop[layer]->calculateRVM()); 1783 1789 } 1784 1790 printf("\n"); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncAnalyze.h
r1442 r1447 137 137 138 138 #if SVC_EXTENSION 139 Void printOut ( TChar cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths, UInt layer = 0 )139 Void printOut ( TChar cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths, UInt layerId = 0 ) 140 140 #else 141 141 Void printOut ( TChar cDelim, const ChromaFormat chFmt, const Bool printMSEBasedSNR, const Bool printSequenceMSE, const BitDepths &bitDepths ) … … 173 173 { 174 174 #if SVC_EXTENSION 175 if( layer == 0 )175 if( layerId == 0 ) 176 176 { 177 177 #endif … … 192 192 193 193 printf( "Average: L%d \t %8d %c " "%12.4lf " "%8.4lf", 194 layer ,194 layerId, 195 195 196 196 #else … … 212 212 #if SVC_EXTENSION 213 213 printf( "From MSE: L%d \t %8d %c " "%12.4lf " "%8.4lf\n", 214 layer ,214 layerId, 215 215 #else 216 216 printf( "From MSE:\t %8d %c " "%12.4lf " "%8.4lf\n", … … 236 236 #if SVC_EXTENSION 237 237 printf( " L%d \t %8d %c " "%12.4lf " "%8.4lf", 238 layer ,238 layerId, 239 239 #else 240 240 printf( "\t %8d %c " "%12.4lf " "%8.4lf", … … 266 266 { 267 267 #if SVC_EXTENSION 268 if( layer == 0 )268 if( layerId == 0 ) 269 269 { 270 270 #endif … … 284 284 } 285 285 printf( "Average: L%d \t %8d %c " "%12.4lf " "%8.4lf " "%8.4lf " "%8.4lf " "%8.4lf", 286 layer ,286 layerId, 287 287 #else 288 288 printf( "Average: \t %8d %c " "%12.4lf " "%8.4lf " "%8.4lf " "%8.4lf " "%8.4lf", … … 310 310 #if SVC_EXTENSION 311 311 printf( "From MSE: L%d \t %8d %c " "%12.4lf " "%8.4lf " "%8.4lf " "%8.4lf " "%8.4lf\n", 312 layer ,312 layerId, 313 313 #else 314 314 printf( "From MSE:\t %8d %c " "%12.4lf " "%8.4lf " "%8.4lf " "%8.4lf " "%8.4lf\n", … … 324 324 { 325 325 #if SVC_EXTENSION 326 if( layer == 0 )326 if( layerId == 0 ) 327 327 { 328 328 #endif … … 342 342 } 343 343 printf( " L%d \t %8d %c " "%12.4lf " "%8.4lf " "%8.4lf " "%8.4lf " "%8.4lf", 344 layer ,344 layerId, 345 345 #else 346 346 printf( "\t %8d %c " "%12.4lf " "%8.4lf " "%8.4lf " "%8.4lf " "%8.4lf",
Note: See TracChangeset for help on using the changeset viewer.