Changeset 744 in SHVCSoftware
- Timestamp:
- 25 Apr 2014, 20:16:53 (11 years ago)
- Location:
- branches/SHM-6-dev/source/Lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.h
r723 r744 514 514 UInt m_layerIdInVps[MAX_VPS_LAYER_ID_PLUS1]; // Maps layer_id_in_nuh with the layer ID in the VPS 515 515 #endif 516 #if BITRATE_PICRATE_SIGNALLING 517 UInt m_maxSLInLayerSetMinus1[MAX_VPS_LAYER_SETS_PLUS1]; 518 #endif 519 516 520 #if ILP_SSH_SIG 517 521 Bool m_ilpSshSignalingEnabledFlag; … … 835 839 Void setLayerIdInVps(Int id, UInt x) { m_layerIdInVps[id] = x; } 836 840 #endif 841 #if BITRATE_PICRATE_SIGNALLING 842 UInt getMaxSLayersInLayerSetMinus1(Int ls) { return m_maxSLInLayerSetMinus1[ls]; } 843 Void setMaxSLayersInLayerSetMinus1(Int ls, Int x) { m_maxSLInLayerSetMinus1[ls] = x; } 844 #endif 837 845 #if ILP_SSH_SIG 838 846 Bool getIlpSshSignalingEnabledFlag() { return m_ilpSshSignalingEnabledFlag;} -
branches/SHM-6-dev/source/Lib/TLibCommon/TypeDef.h
r742 r744 273 273 #define P0138_USE_ALT_CPB_PARAMS_FLAG 1 ///< JCTVC-P0138: use_alt_cpb_params_flag syntax in buffering period SEI message extension 274 274 #define P0166_MODIFIED_PPS_EXTENSION 1 ///< JCTVC-P0166: add pps_extension_type_flag 275 #define BITRATE_PICRATE_SIGNALLING 1 ///< JCTVC-Q0102 Proposal 3 signal bitrate, picrate only up to the maximum temporal sub-layers in the corresponding layer set 275 276 276 277 #if VIEW_ID_RELATED_SIGNALING -
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r742 r744 1936 1936 UInt uiCode; 1937 1937 #if DPB_PARAMS_MAXTLAYERS 1938 #if BITRATE_PICRATE_SIGNALLING 1939 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumLayerSets()]; 1940 for(Int i = 0; i < vps->getNumLayerSets(); i++) 1941 #else 1938 1942 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()]; 1939 1943 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 1944 #endif 1940 1945 { 1941 1946 UInt maxSLMinus1 = 0; … … 1945 1950 Int optLsIdx = i; 1946 1951 #endif 1952 #if BITRATE_PICRATE_SIGNALLING 1953 optLsIdx = i; 1954 #endif 1947 1955 for(Int k = 0; k < vps->getNumLayersInIdList(optLsIdx); k++ ) { 1948 1956 Int lId = vps->getLayerSetLayerIdList(optLsIdx, k); … … 1950 1958 } 1951 1959 MaxSubLayersInLayerSetMinus1[ i ] = maxSLMinus1; 1960 #if BITRATE_PICRATE_SIGNALLING 1961 vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]); 1962 #endif 1952 1963 } 1953 1964 #endif … … 1963 1974 READ_FLAG( uiCode, "sub_layer_flag_info_present_flag[i]"); vps->setSubLayerFlagInfoPresentFlag( i, uiCode ? true : false ); 1964 1975 #if DPB_PARAMS_MAXTLAYERS 1976 #if BITRATE_PICRATE_SIGNALLING 1977 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++) 1978 #else 1965 1979 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++) 1980 #endif 1966 1981 #else 1967 1982 for(Int j = 0; j <= vps->getMaxTLayers(); j++) … … 2085 2100 for( i = 0; i < vps->getNumLayerSets(); i++ ) 2086 2101 { 2102 #if BITRATE_PICRATE_SIGNALLING 2103 for( j = 0; j <= vps->getMaxSLayersInLayerSetMinus1(i); j++ ) 2104 #else 2087 2105 for( j = 0; j < vps->getMaxTLayers(); j++ ) 2106 #endif 2088 2107 { 2089 2108 if( parseFlag && vps->getBitRatePresentVpsFlag() ) -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r742 r744 1371 1371 { 1372 1372 #if DPB_PARAMS_MAXTLAYERS 1373 #if BITRATE_PICRATE_SIGNALLING 1374 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumLayerSets()]; 1375 for(Int i = 0; i < vps->getNumLayerSets(); i++) 1376 #else 1373 1377 Int * MaxSubLayersInLayerSetMinus1 = new Int[vps->getNumOutputLayerSets()]; 1374 1378 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) 1379 #endif 1375 1380 { 1376 1381 UInt maxSLMinus1 = 0; … … 1380 1385 Int optLsIdx = i; 1381 1386 #endif 1387 #if BITRATE_PICRATE_SIGNALLING 1388 optLsIdx = i; 1389 #endif 1382 1390 for(Int k = 0; k < vps->getNumLayersInIdList(optLsIdx); k++ ) { 1383 1391 Int lId = vps->getLayerSetLayerIdList(optLsIdx, k); … … 1385 1393 } 1386 1394 MaxSubLayersInLayerSetMinus1[ i ] = maxSLMinus1; 1387 } 1388 #endif 1395 #if BITRATE_PICRATE_SIGNALLING 1396 vps->setMaxSLayersInLayerSetMinus1(i,MaxSubLayersInLayerSetMinus1[ i ]); 1397 #endif 1398 } 1399 #endif 1400 1389 1401 1390 1402 for(Int i = 1; i < vps->getNumOutputLayerSets(); i++) … … 1395 1407 WRITE_FLAG( vps->getSubLayerFlagInfoPresentFlag( i ), "sub_layer_flag_info_present_flag[i]"); 1396 1408 #if DPB_PARAMS_MAXTLAYERS 1409 #if BITRATE_PICRATE_SIGNALLING 1410 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ vps->getOutputLayerSetIdx( i ) ]; j++) 1411 #else 1397 1412 for(Int j = 0; j <= MaxSubLayersInLayerSetMinus1[ i ]; j++) 1413 #endif 1398 1414 #else 1399 1415 for(Int j = 0; j < vps->getMaxTLayers(); j++) … … 1463 1479 for( i = 0; i < vps->getNumLayerSets(); i++ ) 1464 1480 { 1481 #if BITRATE_PICRATE_SIGNALLING 1482 for( j = 0; j <= vps->getMaxSLayersInLayerSetMinus1(i); j++ ) 1483 #else 1465 1484 for( j = 0; j < vps->getMaxTLayers(); j++ ) 1485 #endif 1466 1486 { 1467 1487 if( vps->getBitRatePresentVpsFlag() )
Note: See TracChangeset for help on using the changeset viewer.