Changeset 55 in SHVCSoftware for trunk/source/Lib/TLibEncoder


Ignore:
Timestamp:
4 Mar 2013, 22:43:28 (12 years ago)
Author:
seregin
Message:

Reintegrate SHM-1.1-dev branch into the trunk

Location:
trunk/source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/source

  • trunk/source/Lib/TLibEncoder/TEncGOP.cpp

    r28 r55  
    337337    pcSlice->setNalUnitType(getNalUnitType(uiPOCCurr));
    338338#if REF_IDX_FRAMEWORK
    339     if (m_layerId > 0 && (uiPOCCurr % m_pcCfg->getIntraPeriod() == 0))
     339    if( m_layerId > 0 && (uiPOCCurr % m_pcCfg->getIntraPeriod() == 0) )
     340    {
    340341      pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA);
     342    }
    341343    if( m_layerId > 0 && !m_pcEncTop->getElRapSliceTypeB() )
    342344    {
    343345      if( (pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA) &&
    344346          (pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA) &&
    345            pcSlice->getSliceType() == B_SLICE )
     347           pcSlice->getSliceType() == B_SLICE )
     348      {
    346349        pcSlice->setSliceType(P_SLICE);
     350      }
    347351    }
    348352#endif
     
    466470
    467471#if REF_IDX_FRAMEWORK
    468     if (pcSlice->getSliceType() == B_SLICE)
     472    if( pcSlice->getSliceType() == B_SLICE )
     473    {
    469474      pcSlice->setColFromL0Flag(1-uiColDir);
     475    }
    470476#endif
    471477
     
    774780    {
    775781      pcPic->getPicYuvOrg()->copyToPic( pcPic->getPicYuvRec() );
     782#if AVC_SYNTAX
     783      pcPic->readBLSyntax( m_ppcTEncTop[0]->getBLSyntaxFile(), SYNTAX_BYTES );
     784#endif
    776785      return;
    777786    }
  • trunk/source/Lib/TLibEncoder/TEncSearch.cpp

    r33 r55  
    10571057    pcCU->getPattern()->initAdiPattern( pcCU, uiAbsPartIdx, uiTrDepth, m_piYuvExt, m_iYuvExtStride, m_iYuvExtHeight, bAboveAvail, bLeftAvail );
    10581058    //===== get prediction signal =====
    1059 #if INTRA_BL
     1059#if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED
    10601060    if(pcCU->isIntraBL ( uiAbsPartIdx ) )
    10611061    {
     
    12591259
    12601260    //===== get prediction signal =====
    1261 #if INTRA_BL
     1261#if INTRA_BL && !NO_RESIDUAL_FLAG_FOR_BLPRED
    12621262  if(pcCU->isIntraBL ( uiAbsPartIdx ) )
    12631263  {
  • trunk/source/Lib/TLibEncoder/TEncTop.h

    r28 r55  
    7777  static Int              m_iSPSIdCnt;                    ///< next Id number for SPS   
    7878  static Int              m_iPPSIdCnt;                    ///< next Id number for PPS   
     79#if AVC_SYNTAX
     80  fstream*                m_pBLSyntaxFile;
     81#endif
    7982#endif
    8083 
     
    223226
    224227  Void encodePrep( bool bEos, TComPicYuv* pcPicYuvOrg );
     228#if AVC_SYNTAX
     229  Void      setBLSyntaxFile( fstream* pFile ) { m_pBLSyntaxFile = pFile; }
     230  fstream*  getBLSyntaxFile() { return m_pBLSyntaxFile; }
     231#endif
    225232#else
    226233  Void encode( bool bEos, TComPicYuv* pcPicYuvOrg, TComList<TComPicYuv*>& rcListPicYuvRecOut,
Note: See TracChangeset for help on using the changeset viewer.