Changeset 1119 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 7 Jul 2015, 01:55:11 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp ¶
r1118 r1119 2321 2321 assert( vps->getVpsNumRepFormats() > 0 && vps->getVpsNumRepFormats() <= 256 ); 2322 2322 2323 #if O0096_REP_FORMAT_INDEX2324 2323 #if !VPS_EXTN_UEV_CODING 2325 2324 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 8, "vps_num_rep_formats_minus1" ); … … 2327 2326 WRITE_UVLC( vps->getVpsNumRepFormats() - 1, "vps_num_rep_formats_minus1" ); 2328 2327 #endif 2329 #else 2330 WRITE_CODE( vps->getVpsNumRepFormats() - 1, 4, "vps_num_rep_formats_minus1" ); 2331 #endif 2328 2332 2329 } 2333 2330 for(i = 0; i < vps->getVpsNumRepFormats(); i++) … … 2343 2340 if( vps->getVpsNumRepFormats() > 1 ) 2344 2341 { 2345 #if O0096_REP_FORMAT_INDEX2346 2342 #if !VPS_EXTN_UEV_CODING 2347 2343 WRITE_CODE( vps->getVpsRepFormatIdx(i), 8, "vps_rep_format_idx[i]" ); … … 2354 2350 WRITE_CODE( vps->getVpsRepFormatIdx(i), numBits, "vps_rep_format_idx[i]" ); 2355 2351 #endif 2356 #else 2357 WRITE_CODE( vps->getVpsRepFormatIdx(i), 4, "vps_rep_format_idx[i]" ); 2358 #endif 2359 } 2360 } 2361 } 2362 #endif 2363 #endif 2352 2353 } 2354 } 2355 } 2356 #endif 2357 #endif //REPN_FORMAT_IN_VPS 2364 2358 2365 2359 WRITE_FLAG(vps->getMaxOneActiveRefLayerFlag(), "max_one_active_ref_layer_flag"); -
TabularUnified branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp ¶
r1117 r1119 1491 1491 Void TEncTop::xInitILRP() 1492 1492 { 1493 #if O0096_REP_FORMAT_INDEX1494 1493 RepFormat *repFormat = m_cVPS.getVpsRepFormat( m_cSPS.getUpdateRepFormatFlag() ? m_cSPS.getUpdateRepFormatIndex() : m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps(m_layerId) ) ); 1495 #else1496 RepFormat *repFormat = m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps(m_layerId) ) );1497 #endif1498 1494 Int bitDepthY,bitDepthC,picWidth,picHeight; 1499 1495 1500 #if O0096_REP_FORMAT_INDEX1501 1496 bitDepthY = repFormat->getBitDepthVpsLuma(); 1502 1497 bitDepthC = repFormat->getBitDepthVpsChroma(); 1503 1498 picWidth = repFormat->getPicWidthVpsInLumaSamples(); 1504 1499 picHeight = repFormat->getPicHeightVpsInLumaSamples(); 1505 #else1506 if( m_cSPS.getUpdateRepFormatFlag() )1507 {1508 bitDepthY = m_cSPS.getBitDepthY();1509 bitDepthC = m_cSPS.getBitDepthC();1510 picWidth = m_cSPS.getPicWidthInLumaSamples();1511 picHeight = m_cSPS.getPicHeightInLumaSamples();1512 }1513 else1514 {1515 bitDepthY = repFormat->getBitDepthVpsLuma();1516 bitDepthC = repFormat->getBitDepthVpsChroma();1517 picWidth = repFormat->getPicWidthVpsInLumaSamples();1518 picHeight = repFormat->getPicHeightVpsInLumaSamples();1519 }1520 #endif1521 1500 1522 1501 if(m_layerId > 0)
Note: See TracChangeset for help on using the changeset viewer.