Changeset 839 in SHVCSoftware
- Timestamp:
- 25 Jul 2014, 18:35:47 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r838 r839 45 45 46 46 #define VPS_RESERVED_FLAGS 1 ///< vps_base_layer_internal_flag and vps_base_layer_available_flag 47 #define VPS_VUI_VST_PARAMS 1 ///< JCTVC-R0227: Related to signalling of VST parameters of the base layer. 47 48 #define VPS_VUI_OFFSET 1 ///< N0085: Signal VPS VUI offset in the VPS extension 48 49 #define O0137_MAX_LAYERID 1 ///< JCTVC-O0137, JCTVC-O0200, JCTVC-O0223: restrict nuh_layer_id and vps_max_layers_minus1 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r838 r839 2201 2201 else 2202 2202 { 2203 #if VPS_VUI_VST_PARAMS 2204 vps->setNumVideoSignalInfo(vps->getMaxLayers() - vps->getBaseLayerInternalFlag() ? 0 : 1); 2205 #else 2203 2206 vps->setNumVideoSignalInfo(vps->getMaxLayers()); 2207 #endif 2204 2208 } 2205 2209 … … 2212 2216 READ_CODE(8, uiCode, "matrix_coeffs_vps" );vps->setMaxtrixCoeff(i,uiCode); 2213 2217 } 2218 #if VPS_VUI_VST_PARAMS 2219 if( vps->getVideoSigPresentVpsFlag() && vps->getNumVideoSignalInfo() > 1 ) 2220 { 2221 for(i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++) 2222 { 2223 READ_CODE(4, uiCode, "vps_video_signal_info_idx" ); vps->setVideoSignalInfoIdx(i, uiCode); 2224 } 2225 } 2226 else if ( !vps->getVideoSigPresentVpsFlag() ) 2227 { 2228 for(i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++) 2229 { 2230 vps->setVideoSignalInfoIdx( i, i ); 2231 } 2232 } 2233 else // ( vps->getNumVideoSignalInfo() = 0 ) 2234 { 2235 for(i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++) 2236 { 2237 vps->setVideoSignalInfoIdx( i, 0 ); 2238 } 2239 } 2240 #else 2214 2241 if(!vps->getVideoSigPresentVpsFlag()) 2215 2242 { … … 2233 2260 } 2234 2261 } 2262 #endif 2235 2263 #endif 2236 2264 #if VPS_VUI_TILES_NOT_IN_USE__FLAG -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r837 r839 1545 1545 if (vps->getVideoSigPresentVpsFlag() && vps->getNumVideoSignalInfo() > 1 ) 1546 1546 { 1547 #if VPS_VUI_VST_PARAMS 1548 for(i = vps->getBaseLayerInternalFlag() ? 0 : 1; i < vps->getMaxLayers(); i++) 1549 { 1550 WRITE_CODE( vps->getVideoSignalInfoIdx(i), 4, "vps_video_signal_info_idx" ); 1551 } 1552 #else 1547 1553 for (i=1; i < vps->getMaxLayers(); i++) 1548 1554 WRITE_CODE(vps->getVideoSignalInfoIdx(i), 4, "vps_video_signal_info_idx" ); 1555 #endif 1549 1556 } 1550 1557 #endif
Note: See TracChangeset for help on using the changeset viewer.