Changeset 820 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
7 Jul 2014, 11:08:41 (11 years ago)
Author:
seregin
Message:

remove macros SYNTAX_BYTES, SYNTAX_OUTPUT, and AVC_SYNTAX

Location:
branches/SHM-dev/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r815 r820  
    7474  memset(m_cIlpPic, 0, sizeof(m_cIlpPic));
    7575#endif
    76 #if AVC_SYNTAX || SYNTAX_OUTPUT
    77   m_pBLSyntaxFile = NULL;
    78 #endif
    7976  m_prevSliceSkipped = false;
    8077  m_skippedPOC = 0;
     
    522519  m_cGopDecoder.filterPicture(pcPic);
    523520
    524 #if SYNTAX_OUTPUT
    525   pcPic->wrireBLSyntax( getBLSyntaxFile(), SYNTAX_BYTES );
    526 #endif
    527521  TComSlice::sortPicList( m_cListPic ); // sorting for application output
    528522  poc                 = pcPic->getSlice(m_uiSliceIdx-1)->getPOC();
     
    781775
    782776#if AUXILIARY_PICTURES
    783 #if AVC_SYNTAX
    784       pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), repFormat->getChromaFormatVpsIdc(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), conformanceWindow, defaultDisplayWindow, numReorderPics, activeSPS, true);
    785 #else
    786777      pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), repFormat->getChromaFormatVpsIdc(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), conformanceWindow, defaultDisplayWindow, numReorderPics, NULL, true);
    787 #endif
    788 #else
    789 #if AVC_SYNTAX
    790       pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), conformanceWindow, defaultDisplayWindow, numReorderPics, activeSPS, true);
    791778#else
    792779      pBLPic->create( repFormat->getPicWidthVpsInLumaSamples(), repFormat->getPicHeightVpsInLumaSamples(), activeSPS->getMaxCUWidth(), activeSPS->getMaxCUHeight(), activeSPS->getMaxCUDepth(), conformanceWindow, defaultDisplayWindow, numReorderPics, NULL, true);
    793 #endif
    794780#endif
    795781      // it is needed where the VPS is accessed through the slice
     
    18051791            continue;
    18061792          }
    1807 #if AVC_SYNTAX
    1808           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 #endif
    18191793        }
    18201794        else
     
    19311905        {
    19321906          pcSlice->setBaseColPic ( refLayerIdc, *m_ppcTDecTop[0]->getListPic()->begin() );
    1933 #if AVC_SYNTAX
    1934           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 #endif
    19451907        }
    19461908        else
     
    22942256          exit(EXIT_FAILURE);
    22952257        }       
    2296 #if AVC_SYNTAX
    2297         if( !m_ppcTDecTop[0]->getBLSyntaxFile()->good() )
    2298         {
    2299           printf( "Base layer syntax input reading error\n" );
    2300           exit(EXIT_FAILURE);
    2301         }
    2302 #endif
    23032258      }
    23042259      else
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h

    r815 r820  
    195195  CommonDecoderParams*    m_commonDecoderParams;
    196196#endif
    197 #if AVC_SYNTAX || SYNTAX_OUTPUT
    198   fstream*               m_pBLSyntaxFile;
    199 #endif
    200 
    201197#if NO_CLRAS_OUTPUT_FLAG 
    202198  Bool                    m_noClrasOutputFlag;
     
    327323#endif
    328324#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
    333326protected:
    334327  Void  xGetNewPicBuffer  (TComSlice* pcSlice, TComPic*& rpcPic);
Note: See TracChangeset for help on using the changeset viewer.