Changeset 409 in SHVCSoftware


Ignore:
Timestamp:
4 Oct 2013, 09:33:05 (11 years ago)
Author:
qualcomm
Message:

software integration of N0147 changes

Location:
branches/SHM-3.1-dev/source
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r403 r409  
    10591059    vps->setMaxOneActiveRefLayerFlag(maxDirectRefLayers > 1 ? false : true);
    10601060#endif
     1061#if N0147_IRAP_ALIGN_FLAG   
     1062    vps->setCrossLayerIrapAlignFlag(maxDirectRefLayers == 0 ? false : true);
     1063#endif
    10611064#if M0040_ADAPTIVE_RESOLUTION_CHANGE
    10621065  vps->setSingleLayerForNonIrapFlag(m_adaptiveResolutionChange > 0 ? true : false);
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.cpp

    r407 r409  
    18061806  m_maxOneActiveRefLayerFlag = true;
    18071807#endif
     1808#if N0147_IRAP_ALIGN_FLAG
     1809  m_crossLayerIrapAlignFlag = true;
     1810#endif
    18081811#if JCTVC_M0203_INTERLAYER_PRED_IDC
    18091812#if N0120_MAX_TID_REF_PRESENT_FLAG
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.h

    r407 r409  
    523523  Bool       m_maxOneActiveRefLayerFlag;
    524524#endif
     525#if N0147_IRAP_ALIGN_FLAG
     526  Bool       m_crossLayerIrapAlignFlag;
     527#endif
    525528#if JCTVC_M0203_INTERLAYER_PRED_IDC
    526529  UInt       m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1];
     
    719722  Bool   getMaxOneActiveRefLayerFlag()                                          { return m_maxOneActiveRefLayerFlag;                      }
    720723  Void   setMaxOneActiveRefLayerFlag(Bool x)                                    { m_maxOneActiveRefLayerFlag = x;                         }
     724#endif
     725#if N0147_IRAP_ALIGN_FLAG
     726  Bool   getCrossLayerIrapAlignFlag()                                           { return m_crossLayerIrapAlignFlag;                      }
     727  Void   setCrossLayerIrapAlignFlag(Bool x)                                     { m_crossLayerIrapAlignFlag = x;                         }
    721728#endif
    722729#if JCTVC_M0203_INTERLAYER_PRED_IDC
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TypeDef.h

    r408 r409  
    143143#endif
    144144
     145#define N0147_IRAP_ALIGN_FLAG            1
    145146#define FAST_INTRA_SHVC                  1      ///< M0115: reduction number of intra modes in the EL (encoder only)
    146147#if FAST_INTRA_SHVC
  • branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r407 r409  
    12051205#endif
    12061206
     1207#if N0147_IRAP_ALIGN_FLAG
     1208  READ_FLAG(uiCode, "cross_layer_irap_aligned_flag" );
     1209  vps->setCrossLayerIrapAlignFlag(uiCode);
     1210#endif
     1211
    12071212#if !VPS_MOVE_DIR_DEPENDENCY_FLAG
    12081213#if VPS_EXTN_DIRECT_REF_LAYERS
  • branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r408 r409  
    757757  // actual decoding starts here
    758758  xActivateParameterSets();
     759#if 0 // N0147_IRAP_ALIGN_FLAG Disabled for now!
     760  //When cross_layer_irap_aligned_flag is equal to 0, num_extra_slice_header_bits >=1
     761  if( m_layerId > 0 && m_apcSlicePilot->getVPS()->getCrossLayerIrapAlignFlag())
     762    assert( m_apcSlicePilot->getPPS()->getNumExtraSliceHeaderBits() > 0);
     763  //When cross_layer_irap_aligned_flag is equal to 1, the value of poc_reset_flag shall be equal to 0 
     764  // to be added after poc_reset_flag is integrated.
     765#endif
     766
    759767#if REPN_FORMAT_IN_VPS
    760768  // Initialize ILRP if needed, only for the current layer 
     
    10991107#endif //SVC_EXTENSION
    11001108
     1109#if N0147_IRAP_ALIGN_FLAG
     1110    if(  m_layerId > 0 && pcSlice->getVPS()->getCrossLayerIrapAlignFlag())
     1111    {
     1112      if(pcSlice->isIRAP())
     1113      {
     1114        for(Int depedentLayerId = 0; depedentLayerId < pcSlice->getVPS()->getNumDirectRefLayers(m_layerId); depedentLayerId++)
     1115          assert(pcSlice->getNalUnitType() == pcSlice->getBaseColPic(depedentLayerId)->getSlice(0)->getNalUnitType());
     1116      }
     1117    }
     1118#endif
    11011119    // For generalized B
    11021120    // note: maybe not existed case (always L0 is copied to L1 if L1 is empty)
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r407 r409  
    923923      WRITE_FLAG(vps->getMaxOneActiveRefLayerFlag(), "max_one_active_ref_layer_flag");
    924924#endif
     925#if N0147_IRAP_ALIGN_FLAG
     926      WRITE_FLAG(vps->getCrossLayerIrapAlignFlag(), "cross_layer_irap_aligned_flag");
     927#endif
    925928#if !VPS_MOVE_DIR_DEPENDENCY_FLAG
    926929#if VPS_EXTN_DIRECT_REF_LAYERS
Note: See TracChangeset for help on using the changeset viewer.