Changeset 407 in SHVCSoftware for branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.cpp
- Timestamp:
- 1 Oct 2013, 22:08:33 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.cpp
r405 r407 1755 1755 , m_vpsNumRepFormats (1) 1756 1756 #endif 1757 #if VIEW_ID_RELATED_SIGNALING 1758 , m_viewIdLenMinus1 (0) 1759 #endif 1757 1760 { 1758 1761 for( Int i = 0; i < MAX_TLAYER; i++) … … 1832 1835 ::memset( m_vpsRepFormatIdx, 0, sizeof(m_vpsRepFormatIdx) ); 1833 1836 #endif 1837 #if VIEW_ID_RELATED_SIGNALING 1838 ::memset(m_viewIdVal, 0, sizeof(m_viewIdVal)); 1839 #endif 1834 1840 } 1835 1841 … … 1862 1868 setNumLayersInIdList(i, n); 1863 1869 } 1870 } 1871 #endif 1872 #if VIEW_ID_RELATED_SIGNALING 1873 Int TComVPS::getNumViews() 1874 { 1875 Int numViews = 1; 1876 for( Int i = 0; i <= getMaxLayers() - 1; i++ ) 1877 { 1878 Int lId = getLayerIdInNuh( i ); 1879 if ( i > 0 && ( getViewIndex( lId ) != getScalabilityId( i - 1, VIEW_ORDER_INDEX ) ) ) 1880 { 1881 numViews++; 1882 } 1883 } 1884 1885 return numViews; 1886 } 1887 Int TComVPS::getScalabilityId( Int layerIdInVps, ScalabilityType scalType ) 1888 { 1889 return getScalabilityMask( scalType ) ? getDimensionId( layerIdInVps, scalTypeToScalIdx( scalType ) ) : 0; 1890 } 1891 Int TComVPS::scalTypeToScalIdx( ScalabilityType scalType ) 1892 { 1893 assert( scalType >= 0 && scalType <= MAX_VPS_NUM_SCALABILITY_TYPES ); 1894 assert( scalType == MAX_VPS_NUM_SCALABILITY_TYPES || getScalabilityMask( scalType ) ); 1895 Int scalIdx = 0; 1896 for( Int curScalType = 0; curScalType < scalType; curScalType++ ) 1897 { 1898 scalIdx += ( getScalabilityMask( curScalType ) ? 1 : 0 ); 1899 1900 } 1901 1902 return scalIdx; 1864 1903 } 1865 1904 #endif
Note: See TracChangeset for help on using the changeset viewer.