Ticket #81: IdrFix_rev1026.patch

File IdrFix_rev1026.patch, 3.4 KB (added by jonatan, 9 years ago)
  • Lib/TLibCommon/TComSlice.cpp

     
    7979, m_colFromL0Flag                 ( 1 )
    8080#if SETTING_NO_OUT_PIC_PRIOR
    8181, m_noOutputPriorPicsFlag         ( false )
     82#if IDR_FIX
     83, m_firstSliceInPic               ( false )
     84#endif
    8285, m_noRaslOutputFlag              ( false )
    8386, m_handleCraAsBlaFlag            ( false )
    8487#endif
  • Lib/TLibCommon/TComSlice.h

     
    22582258  TComTrQuant* m_pcTrQuant;
    22592259#endif 
    22602260  UInt        m_colFromL0Flag;  // collocated picture from List0 flag
    2261  
     2261#if IDR_FIX
     2262  Bool        m_firstSliceInPic;
     2263#endif
    22622264#if SETTING_NO_OUT_PIC_PRIOR
    22632265  Bool        m_noOutputPriorPicsFlag;
    22642266  Bool        m_noRaslOutputFlag;
     
    25452547  Void setMaxNumMergeCand               (UInt val )         { m_maxNumMergeCand = val;                    }
    25462548  UInt getMaxNumMergeCand               ()                  { return m_maxNumMergeCand;                   }
    25472549
     2550#if IDR_FIX
     2551  Void setFirstSliceInPic               ( Bool val )        { m_firstSliceInPic = val;                    }
     2552  Bool getFirstSliceInPic               ()                  { return m_firstSliceInPic;                   }
     2553#endif
     2554
    25482555#if SETTING_NO_OUT_PIC_PRIOR
    25492556  Void setNoOutputPriorPicsFlag         ( Bool val )        { m_noOutputPriorPicsFlag = val;                    }
    25502557  Bool getNoOutputPriorPicsFlag         ()                  { return m_noOutputPriorPicsFlag;                   }
  • Lib/TLibCommon/TypeDef.h

     
    164164#endif
    165165
    166166#define P0297_VPS_POC_LSB_ALIGNED_FLAG   1      ///< JCTVC-P0297: vps_poc_lsb_aligned_flag for cross-layer POC anchor picture derivation
    167 
     167#define IDR_FIX                          1
    168168#define VPS_EXTN_MASK_AND_DIM_INFO       1      ///< Include avc_base_layer_flag, splitting_flag, scalability mask and dimension related info
    169169#if VPS_EXTN_MASK_AND_DIM_INFO
    170170#define MAX_VPS_NUM_SCALABILITY_TYPES    16
  • Lib/TLibDecoder/TDecCAVLC.cpp

     
    30673067
    30683068  UInt firstSliceSegmentInPic;
    30693069  READ_FLAG( firstSliceSegmentInPic, "first_slice_segment_in_pic_flag" );
     3070#if IDR_FIX
     3071  rpcSlice->setFirstSliceInPic(firstSliceSegmentInPic);
     3072#endif
    30703073  if( rpcSlice->getRapPicFlag())
    30713074  {
    30723075    READ_FLAG( uiCode, "no_output_of_prior_pics_flag" );  //ignored -- updated already
  • Lib/TLibDecoder/TDecTop.cpp

     
    11761176
    11771177  // exit when a new picture is found
    11781178#if SVC_EXTENSION
     1179#if IDR_FIX
     1180  bNewPOC = (m_apcSlicePilot->getPOC()!= m_prevPOC || (m_apcSlicePilot->getPOC()== m_prevPOC && m_apcSlicePilot->getFirstSliceInPic() && m_parseIdc == -1));
     1181#else
    11791182  bNewPOC = (m_apcSlicePilot->getPOC()!= m_prevPOC);
    1180 
     1183#endif
    11811184#if NO_OUTPUT_OF_PRIOR_PICS
    11821185#if NO_CLRAS_OUTPUT_FLAG
    11831186#if R0235_SMALLEST_LAYER_ID