Changeset 459 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibCommon
- Timestamp:
- 11 Nov 2013, 22:26:50 (12 years ago)
- Location:
- branches/SHM-4.0-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/Lib/TLibCommon/TComPic.cpp
r442 r459 801 801 #endif 802 802 803 #if MFM_ENCCONSTRAINT 804 Bool TComPic::checkSameRefInfo() 805 { 806 Bool bSameRefInfo = true; 807 TComSlice * pSlice0 = getSlice( 0 ); 808 for( UInt uSliceID = getNumAllocatedSlice() - 1 ; bSameRefInfo && uSliceID > 0 ; uSliceID-- ) 809 { 810 TComSlice * pSliceN = getSlice( uSliceID ); 811 if( pSlice0->getSliceType() != pSliceN->getSliceType() ) 812 { 813 bSameRefInfo = false; 814 } 815 else if( pSlice0->getSliceType() != I_SLICE ) 816 { 817 Int nListNum = pSlice0->getSliceType() == B_SLICE ? 2 : 1; 818 for( Int nList = 0 ; nList < nListNum ; nList++ ) 819 { 820 RefPicList eRefList = ( RefPicList )nList; 821 if( pSlice0->getNumRefIdx( eRefList ) == pSliceN->getNumRefIdx( eRefList ) ) 822 { 823 for( Int refIdx = pSlice0->getNumRefIdx( eRefList ) - 1 ; refIdx >= 0 ; refIdx-- ) 824 { 825 if( pSlice0->getRefPic( eRefList , refIdx ) != pSliceN->getRefPic( eRefList , refIdx ) ) 826 { 827 bSameRefInfo = false; 828 break; 829 } 830 } 831 } 832 else 833 { 834 bSameRefInfo = false; 835 break; 836 } 837 } 838 } 839 } 840 841 return( bSameRefInfo ); 842 } 843 #endif 803 844 804 845 //! \} -
branches/SHM-4.0-dev/source/Lib/TLibCommon/TComPic.h
r442 r459 129 129 Void initUpsampledMvField (); 130 130 #endif 131 #if MFM_ENCCONSTRAINT 132 Bool checkSameRefInfo(); 133 #endif 131 134 132 135 Bool getUsedByCurr() { return m_bUsedByCurr; } -
branches/SHM-4.0-dev/source/Lib/TLibCommon/TypeDef.h
r458 r459 45 45 #define RANDOM_ACCESS_SEI_FIX 1 46 46 #if SVC_EXTENSION 47 #define MFM_ENCCONSTRAINT 1 ///< JCTVC-O0216: Encoder constraint for motion field mapping 47 48 #define VPS_NUH_LAYER_ID 1 ///< JCTVC-N0085: Assert that the nuh_layer_id of VPS NAL unit should be 0 48 49 #define MAX_LAYERS 2 ///< max number of layers the codec is supposed to handle
Note: See TracChangeset for help on using the changeset viewer.