Changeset 1111 in 3DVCSoftware for branches/HTM-12.2-dev2-HHI/source/Lib
- Timestamp:
- 7 Nov 2014, 14:12:21 (10 years ago)
- Location:
- branches/HTM-12.2-dev2-HHI/source/Lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-12.2-dev2-HHI/source/Lib/TLibCommon/TComSlice.cpp
r1110 r1111 1879 1879 m_vpsBaseLayerAvailableFlag = true; 1880 1880 1881 #if H_MV_FIX_NUM_VIEWS 1882 m_numViews = 0; 1883 #endif 1881 1884 1882 1885 #endif … … 1924 1927 m_vpsNonVuiExtensionLength = 0; 1925 1928 m_splittingFlag = false; 1929 1926 1930 1927 1931 for( Int i = 0; i < MAX_NUM_SCALABILITY_TYPES; i++ ) … … 2199 2203 2200 2204 2205 #if H_MV_FIX_NUM_VIEWS 2206 Void TComVPS::initNumViews( ) 2207 { 2208 Int m_numViews = 1; 2209 #if HHI_VIEW_ID_LIST_I5_J0107 2210 #if H_3D 2211 AOF( m_viewOIdxList.size() == 0 ); 2212 m_viewOIdxList.push_back( 0 ); 2213 #endif 2214 #endif 2215 2216 for( Int i = 0; i <= getMaxLayersMinus1(); i++ ) 2217 { 2218 Int lId = getLayerIdInNuh( i ); 2219 if( i > 0 ) 2220 { 2221 Bool newViewFlag = true; 2222 for( Int j = 0; j < i; j++ ) 2223 { 2224 if( getViewOrderIdx( lId ) == getViewOrderIdx( getLayerIdInNuh( j ) ) ) 2225 { 2226 newViewFlag = false; 2227 } 2228 } 2229 if( newViewFlag ) 2230 { 2231 m_numViews++; 2232 #if HHI_VIEW_ID_LIST_I5_J0107 2233 #if H_3D 2234 m_viewOIdxList.push_back( getViewOrderIdx( lId ) ); 2235 #endif 2236 #endif 2237 } 2238 } 2239 } 2240 } 2241 #endif 2242 2243 2201 2244 Int TComVPS::getScalabilityId( Int layerIdInVps, ScalabilityType scalType ) 2202 2245 { … … 2357 2400 } 2358 2401 2402 #if !H_MV_FIX_NUM_VIEWS 2359 2403 Int TComVPS::getNumViews() 2360 2404 { … … 2368 2412 } 2369 2413 } 2370 2371 2414 return numViews; 2372 2415 } 2416 #endif 2417 2373 2418 2374 2419 Void TComVPS::deriveLayerSetLayerIdList() -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibCommon/TComSlice.h
r1110 r1111 884 884 Int m_dependencyFlag [MAX_NUM_LAYERS][MAX_NUM_LAYERS]; 885 885 886 #if H_MV_FIX_NUM_VIEWS 887 Int m_numViews; 888 #endif 886 889 Int m_numDirectRefLayers [MAX_NUM_LAYERS]; 887 890 Int m_idDirectRefLayer [MAX_NUM_LAYERS][MAX_NUM_LAYERS]; … … 949 952 Int ***m_aaaiCodedScale ; 950 953 Int ***m_aaaiCodedOffset; 954 955 #if H_MV_FIX_NUM_VIEWS 956 #if HHI_VIEW_ID_LIST_I5_J0107 957 std::vector<Int> m_viewOIdxList; 958 #endif 959 #endif 960 951 961 #endif 952 962 #if !HHI_TOOL_PARAMETERS_I2_J0107 … … 1186 1196 Int getAuxId ( Int layerIdInNuh ) { return getScalabilityId( getLayerIdInVps(layerIdInNuh), AUX_ID ); } 1187 1197 Int getDependencyId ( Int layerIdInNuh ) { return getScalabilityId( getLayerIdInVps(layerIdInNuh), DEPENDENCY_ID ); } 1198 #if H_MV_FIX_NUM_VIEWS 1199 Int getNumViews() { return m_numViews; } 1200 Void initNumViews(); 1201 #if HHI_VIEW_ID_LIST_I5_J0107 1202 Int getViewOIdxList( Int i ) { return m_viewOIdxList[i]; } 1203 #endif 1204 #else 1188 1205 Int getNumViews(); 1206 #endif 1189 1207 1190 1208 Bool getDependencyFlag( Int i, Int j ) { return m_dependencyFlag[i][j]; } -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibCommon/TypeDef.h
r1110 r1111 298 298 #define HHI_TOOL_PARAMETERS_I2_J0107 1 299 299 #define HHI_VPS_3D_EXTENSION_I3_J0107 1 300 #define HHI_VIEW_ID_LIST_I5_J0107 0 300 301 #endif 301 302 #define H_MV_FIX_REF_LAYER_PIC_FLAG 1 303 #define H_MV_FIX_NUM_VIEWS 1 302 304 #define H_3D_OUTPUT_ACTIVE_TOOLS 0 303 305 -
branches/HTM-12.2-dev2-HHI/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1110 r1111 1330 1330 } 1331 1331 1332 #if H_MV_FIX_NUM_VIEWS 1333 pcVPS->initNumViews(); 1334 #endif 1335 1332 1336 READ_CODE( 4, uiCode, "view_id_len" ); pcVPS->setViewIdLen( uiCode ); 1333 1337 … … 2022 2026 2023 2027 READ_UVLC( uiCamParPrecision, "cp_precision" ); 2028 #if HHI_VIEW_ID_LIST_I5_J0107 2029 for (Int n = 1; n < pcVPS->getNumViews(); n++) 2030 { 2031 Int viewIndex = pcVPS->getViewOIdxList( n ); 2032 #else 2024 2033 for (UInt viewIndex=1; viewIndex<pcVPS->getNumViews(); viewIndex++) 2025 2034 { 2035 #endif 2026 2036 pcVPS->setCamParPresent ( viewIndex, false ); 2027 2037 pcVPS->setHasCamParInSliceHeader( viewIndex, false ); … … 2032 2042 if ( !bCamParSlice ) 2033 2043 { 2034 for( UInt uiBaseIndex = 0; uiBaseIndex < viewIndex; uiBaseIndex++ ) 2035 { 2044 #if HHI_VIEW_ID_LIST_I5_J0107 2045 for( UInt m = 0; m < n; n++ ) 2046 { 2047 Int uiBaseIndex = pcVPS->getViewOIdxList ( m ); 2036 2048 Int iCode; 2037 2049 READ_SVLC( iCode, "vps_cp_scale" ); m_aaiTempScale [ uiBaseIndex ][ viewIndex ] = iCode; … … 2042 2054 } 2043 2055 pcVPS->initCamParaVPS( viewIndex, bCamParPresentFlag, uiCamParPrecision, bCamParSlice, m_aaiTempScale, m_aaiTempOffset ); 2056 #else 2057 for( UInt uiBaseIndex = 0; uiBaseIndex < viewIndex; uiBaseIndex++ ) 2058 { 2059 Int iCode; 2060 READ_SVLC( iCode, "vps_cp_scale" ); m_aaiTempScale [ uiBaseIndex ][ viewIndex ] = iCode; 2061 READ_SVLC( iCode, "vps_cp_off" ); m_aaiTempOffset [ uiBaseIndex ][ viewIndex ] = iCode; 2062 READ_SVLC( iCode, "vps_cp_inv_scale_plus_scale" ); m_aaiTempScale [ viewIndex ][ uiBaseIndex ] = iCode - m_aaiTempScale [ uiBaseIndex ][ viewIndex ]; 2063 READ_SVLC( iCode, "vps_cp_inv_off_plus_off" ); m_aaiTempOffset [ viewIndex ][ uiBaseIndex ] = iCode - m_aaiTempOffset[ uiBaseIndex ][ viewIndex ]; 2064 } 2065 } 2066 pcVPS->initCamParaVPS( viewIndex, bCamParPresentFlag, uiCamParPrecision, bCamParSlice, m_aaiTempScale, m_aaiTempOffset ); 2067 #endif 2044 2068 } 2045 2069 }
Note: See TracChangeset for help on using the changeset viewer.