Ignore:
Timestamp:
4 Jul 2013, 21:00:23 (11 years ago)
Author:
tech
Message:

Integrated following changes:

  • H_MV_FIX1071, fix of encoder side reference list construction on IRAP pictures, same as in HM11.
  • H_3D_VSO_FIX_BORDRE_EXTENSION, fixed uninitialized borders for org-yuvs in VSO
  • H_MV_ENC_DEC_TRAC, added cu/pu level trace ( only enabled when ENC_DEC_TRACE is enabled)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev2/source/Lib/TLibEncoder/TEncCavlc.cpp

    r504 r521  
    3939#include "TEncCavlc.h"
    4040#include "SEIwrite.h"
     41#include "../TLibCommon/TypeDef.h"
    4142
    4243//! \ingroup TLibEncoder
     
    4748Void  xTraceSPSHeader (TComSPS *pSPS)
    4849{
     50#if H_MV_ENC_DEC_TRAC
     51  fprintf( g_hTrace, "=========== Sequence Parameter Set ===========\n" );
     52#else
    4953  fprintf( g_hTrace, "=========== Sequence Parameter Set ID: %d ===========\n", pSPS->getSPSId() );
     54#endif
    5055}
    5156
    5257Void  xTracePPSHeader (TComPPS *pPPS)
    5358{
     59#if H_MV_ENC_DEC_TRAC
     60  fprintf( g_hTrace, "=========== Picture Parameter Set ===========\n" );
     61#else
    5462  fprintf( g_hTrace, "=========== Picture Parameter Set ID: %d ===========\n", pPPS->getPPSId() );
     63#endif
    5564}
    5665
     
    838847    //   colour_plane_id                                      u(2)
    839848
    840 #if H_MV
     849#if H_MV && !H_MV_FIX1071
    841850    // Temporary fix for FIX1071 should be removed later
    842851    TComReferencePictureSet* rps = pcSlice->getRPS();
     
    846855      Int picOrderCntLSB = (pcSlice->getPOC()-pcSlice->getLastIDR()+(1<<pcSlice->getSPS()->getBitsForPOC()))%(1<<pcSlice->getSPS()->getBitsForPOC());
    847856      WRITE_CODE( picOrderCntLSB, pcSlice->getSPS()->getBitsForPOC(), "pic_order_cnt_lsb");
    848 #if !H_MV
    849       // Temporary fix for FIX1071 should be removed later
     857#if !H_MV || H_MV_FIX1071
    850858      TComReferencePictureSet* rps = pcSlice->getRPS();
    851859#endif     
    852 #if FIX1071
     860#if FIX1071 && H_MV_FIX1071
     861      // check for bitstream restriction stating that:
     862      // If the current picture is a BLA or CRA picture, the value of NumPocTotalCurr shall be equal to 0.
     863      // Ideally this process should not be repeated for each slice in a picture
     864      if (pcSlice->isIRAP())
     865      {
     866          for (Int picIdx = 0; picIdx < rps->getNumberOfPictures(); picIdx++)
     867          {
     868          assert (!rps->getUsed(picIdx));
     869          }
     870        }
     871#endif
     872#if FIX1071 && !H_MV_FIX1071
    853873      // Deal with bitstream restriction stating that:
    854874      // – If the current picture is a BLA or CRA picture, the value of NumPocTotalCurr shall be equal to 0.
     
    872892        }
    873893      }
    874 
    875894      if(pcSlice->getRPSidx() < 0 || useAltRps)
    876895#else
     
    10091028      pcSlice->setNumRefIdx(REF_PIC_LIST_1, 0);
    10101029    }
    1011 #if H_MV
     1030#if H_MV && !H_MV_FIX1071
    10121031    // Temporary fix for FIX1071 should be removed later
    10131032    if( pcSlice->getPPS()->getListsModificationPresentFlag() && pcSlice->getNumRpsCurrTempList( rps ) > 1)
Note: See TracChangeset for help on using the changeset viewer.