Changeset 820 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 7 Jul 2014, 11:08:41 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
-
TDecTop.cpp (modified) (6 diffs)
-
TDecTop.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r815 r820 74 74 memset(m_cIlpPic, 0, sizeof(m_cIlpPic)); 75 75 #endif 76 #if AVC_SYNTAX || SYNTAX_OUTPUT77 m_pBLSyntaxFile = NULL;78 #endif79 76 m_prevSliceSkipped = false; 80 77 m_skippedPOC = 0; … … 522 519 m_cGopDecoder.filterPicture(pcPic); 523 520 524 #if SYNTAX_OUTPUT525 pcPic->wrireBLSyntax( getBLSyntaxFile(), SYNTAX_BYTES );526 #endif527 521 TComSlice::sortPicList( m_cListPic ); // sorting for application output 528 522 poc = pcPic->getSlice(m_uiSliceIdx-1)->getPOC(); … … 781 775 782 776 #if AUXILIARY_PICTURES 783 #if AVC_SYNTAX784 pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), repFormat->getChromaFormatVpsIdc(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), conformanceWindow, defaultDisplayWindow, numReorderPics, activeSPS, true);785 #else786 777 pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), repFormat->getChromaFormatVpsIdc(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), conformanceWindow, defaultDisplayWindow, numReorderPics, NULL, true); 787 #endif788 #else789 #if AVC_SYNTAX790 pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), conformanceWindow, defaultDisplayWindow, numReorderPics, activeSPS, true);791 778 #else 792 779 pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), conformanceWindow, defaultDisplayWindow, numReorderPics, NULL, true); 793 #endif794 780 #endif 795 781 // it is needed where the VPS is accessed through the slice … … 1805 1791 continue; 1806 1792 } 1807 #if AVC_SYNTAX1808 TComPic* pBLPic = pcSlice->getBaseColPic(refLayerIdc);1809 if( pcSlice->getPOC() == 0 )1810 {1811 // initialize partition order.1812 UInt* piTmp = &g_auiZscanToRaster[0];1813 initZscanToRaster( pBLPic->getPicSym()->getMaxDepth() + 1, 1, 0, piTmp );1814 initRasterToZscan( pBLPic->getPicSym()->getMaxCUWidth(), pBLPic->getPicSym()->getMaxCUHeight(), pBLPic->getPicSym()->getMaxDepth() + 1 );1815 }1816 pBLPic->getSlice( 0 )->initBaseLayerRPL( pcSlice );1817 pBLPic->readBLSyntax( m_ppcTDecTop[0]->getBLSyntaxFile(), SYNTAX_BYTES );1818 #endif1819 1793 } 1820 1794 else … … 1931 1905 { 1932 1906 pcSlice->setBaseColPic ( refLayerIdc, *m_ppcTDecTop[0]->getListPic()->begin() ); 1933 #if AVC_SYNTAX1934 TComPic* pBLPic = pcSlice->getBaseColPic(refLayerIdc);1935 if( pcSlice->getPOC() == 0 )1936 {1937 // initialize partition order.1938 UInt* piTmp = &g_auiZscanToRaster[0];1939 initZscanToRaster( pBLPic->getPicSym()->getMaxDepth() + 1, 1, 0, piTmp );1940 initRasterToZscan( pBLPic->getPicSym()->getMaxCUWidth(), pBLPic->getPicSym()->getMaxCUHeight(), pBLPic->getPicSym()->getMaxDepth() + 1 );1941 }1942 pBLPic->getSlice( 0 )->initBaseLayerRPL( pcSlice );1943 pBLPic->readBLSyntax( m_ppcTDecTop[0]->getBLSyntaxFile(), SYNTAX_BYTES );1944 #endif1945 1907 } 1946 1908 else … … 2294 2256 exit(EXIT_FAILURE); 2295 2257 } 2296 #if AVC_SYNTAX2297 if( !m_ppcTDecTop[0]->getBLSyntaxFile()->good() )2298 {2299 printf( "Base layer syntax input reading error\n" );2300 exit(EXIT_FAILURE);2301 }2302 #endif2303 2258 } 2304 2259 else -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r815 r820 195 195 CommonDecoderParams* m_commonDecoderParams; 196 196 #endif 197 #if AVC_SYNTAX || SYNTAX_OUTPUT198 fstream* m_pBLSyntaxFile;199 #endif200 201 197 #if NO_CLRAS_OUTPUT_FLAG 202 198 Bool m_noClrasOutputFlag; … … 327 323 #endif 328 324 #endif //SVC_EXTENSION 329 #if AVC_SYNTAX || SYNTAX_OUTPUT 330 Void setBLSyntaxFile( fstream* pFile ) { m_pBLSyntaxFile = pFile; } 331 fstream* getBLSyntaxFile() { return m_pBLSyntaxFile; } 332 #endif 325 333 326 protected: 334 327 Void xGetNewPicBuffer (TComSlice* pcSlice, TComPic*& rpcPic);
Note: See TracChangeset for help on using the changeset viewer.