Changeset 972 in SHVCSoftware
- Timestamp:
- 8 Jan 2015, 02:58:30 (10 years ago)
- Location:
- branches/SHM-upgrade/source/Lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibDecoder/TDecCAVLC.cpp
r967 r972 2309 2309 READ_FLAG( uiCode, "general_one_picture_only_constraint_flag"); 2310 2310 READ_FLAG( uiCode, "general_lower_bit_rate_constraint_flag"); ptl->setLowerBitRateConstraintFlag(uiCode != 0); 2311 READ_CODE(16, uiCode, "XXX_reserved_zero_35bits[0..15]");2312 READ_CODE(16, uiCode, "XXX_reserved_zero_35bits[16..31]");2313 READ_CODE(3, uiCode, "XXX_reserved_zero_35bits[32..34]");2314 }2315 2311 #if MULTIPLE_PTL_SUPPORT 2316 else if (ptl->getProfileIdc() == Profile::SCALABLEMAIN ) 2312 READ_CODE(32, uiCode, "general_reserved_zero_34bits"); READ_CODE(2, uiCode, "general_reserved_zero_34bits"); 2313 } 2314 else if( ptl->getProfileIdc() == Profile::SCALABLEMAIN ) 2317 2315 { 2318 2316 READ_FLAG( uiCode, "general_max_12bit_constraint_flag" ); assert (uiCode == 1); … … 2325 2323 READ_FLAG( uiCode, "general_one_picture_only_constraint_flag"); assert (uiCode == 0); 2326 2324 READ_FLAG( uiCode, "general_lower_bit_rate_constraint_flag"); assert (uiCode == 1); 2325 READ_CODE(32, uiCode, "general_reserved_zero_34bits"); READ_CODE(2, uiCode, "general_reserved_zero_34bits"); 2326 } 2327 else 2328 { 2329 ptl->setBitDepthConstraint((ptl->getProfileIdc() == Profile::MAIN10)?10:8); 2330 ptl->setChromaFormatConstraint(CHROMA_420); 2331 ptl->setIntraConstraintFlag(false); 2332 ptl->setLowerBitRateConstraintFlag(true); 2333 READ_CODE(32, uiCode, "general_reserved_zero_43bits"); READ_CODE(11, uiCode, "general_reserved_zero_43bits"); 2334 } 2335 2336 if( ( ptl->getProfileIdc() >= 1 && ptl->getProfileIdc() <= 5 ) || 2337 ptl->getProfileCompatibilityFlag(1) || ptl->getProfileCompatibilityFlag(2) || 2338 ptl->getProfileCompatibilityFlag(3) || ptl->getProfileCompatibilityFlag(4) || 2339 ptl->getProfileCompatibilityFlag(5) ) 2340 { 2341 READ_FLAG(uiCode, "general_inbld_flag"); 2342 } 2343 else 2344 { 2345 READ_FLAG(uiCode, "general_reserved_zero_bit"); 2346 } 2347 #else 2327 2348 READ_CODE(16, uiCode, "XXX_reserved_zero_35bits[0..15]"); 2328 2349 READ_CODE(16, uiCode, "XXX_reserved_zero_35bits[16..31]"); 2329 2350 READ_CODE(3, uiCode, "XXX_reserved_zero_35bits[32..34]"); 2330 2351 } 2331 #endif2332 2352 else 2333 2353 { … … 2340 2360 READ_CODE(12, uiCode, "XXX_reserved_zero_44bits[32..43]"); 2341 2361 } 2362 #endif 2342 2363 } 2343 2364 -
branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCavlc.cpp
r965 r972 1524 1524 WRITE_FLAG(0, "general_one_picture_only_constraint_flag"); 1525 1525 WRITE_FLAG(ptl->getLowerBitRateConstraintFlag(), "general_lower_bit_rate_constraint_flag"); 1526 #if MULTIPLE_PTL_SUPPORT 1527 WRITE_CODE(0, 32, "general_reserved_zero_34bits"); WRITE_CODE(0, 2, "general_reserved_zero_34bits"); 1528 } 1529 else if( ptl->getProfileIdc() == Profile::SCALABLEMAIN || ptl->getProfileIdc() == Profile::SCALABLEMAIN10 ) // at encoder side, scalable-main10 profile has a profile idc equal to 8, which is converted to 7 during signalling 1530 { 1531 WRITE_FLAG(true, "general_max_12bit_constraint_flag"); 1532 WRITE_FLAG(true, "general_max_10bit_constraint_flag"); 1533 WRITE_FLAG((ptl->getProfileIdc() == Profile::SCALABLEMAIN) ? true : false, "general_max_8bit_constraint_flag"); 1534 WRITE_FLAG(true, "general_max_422chroma_constraint_flag"); 1535 WRITE_FLAG(true, "general_max_420chroma_constraint_flag"); 1536 WRITE_FLAG(false, "general_max_monochrome_constraint_flag"); 1537 WRITE_FLAG(false, "general_intra_constraint_flag"); 1538 WRITE_FLAG(false, "general_one_picture_only_constraint_flag"); 1539 WRITE_FLAG(true, "general_lower_bit_rate_constraint_flag"); 1540 WRITE_CODE(0, 32, "general_reserved_zero_34bits"); WRITE_CODE(0, 2, "general_reserved_zero_34bits"); 1541 } 1542 else 1543 { 1544 WRITE_CODE(0, 32, "general_reserved_zero_43bits"); WRITE_CODE(0, 11, "general_reserved_zero_43bits"); 1545 } 1546 1547 if( ( ptl->getProfileIdc() >= 1 && ptl->getProfileIdc() <= 5 ) || 1548 ptl->getProfileCompatibilityFlag(1) || ptl->getProfileCompatibilityFlag(2) || 1549 ptl->getProfileCompatibilityFlag(3) || ptl->getProfileCompatibilityFlag(4) || 1550 ptl->getProfileCompatibilityFlag(5) ) 1551 { 1552 WRITE_FLAG(false, "general_inbld_flag"); 1553 } 1554 else 1555 { 1556 WRITE_FLAG(false, "general_reserved_zero_bit"); 1557 } 1558 #else 1526 1559 WRITE_CODE(0 , 16, "XXX_reserved_zero_35bits[0..15]"); 1527 1560 WRITE_CODE(0 , 16, "XXX_reserved_zero_35bits[16..31]"); 1528 1561 WRITE_CODE(0 , 3, "XXX_reserved_zero_35bits[32..34]"); 1529 1562 } 1530 #if MULTIPLE_PTL_SUPPORT1531 else if (ptl->getProfileIdc() == Profile::SCALABLEMAIN || ptl->getProfileIdc() == Profile::SCALABLEMAIN10)1532 {1533 WRITE_FLAG(true, "general_max_12bit_constraint_flag");1534 WRITE_FLAG(true, "general_max_10bit_constraint_flag");1535 WRITE_FLAG((ptl->getProfileIdc() == Profile::SCALABLEMAIN) ? true : false, "general_max_8bit_constraint_flag");1536 WRITE_FLAG(true, "general_max_422chroma_constraint_flag");1537 WRITE_FLAG(true, "general_max_420chroma_constraint_flag");1538 WRITE_FLAG(false, "general_max_monochrome_constraint_flag");1539 WRITE_FLAG(false, "general_intra_constraint_flag");1540 WRITE_FLAG(false, "general_one_picture_only_constraint_flag");1541 WRITE_FLAG(true, "general_lower_bit_rate_constraint_flag");1542 WRITE_CODE(0 , 16, "XXX_reserved_zero_35bits[0..15]");1543 WRITE_CODE(0 , 16, "XXX_reserved_zero_35bits[16..31]");1544 WRITE_CODE(0 , 3, "XXX_reserved_zero_35bits[32..34]");1545 }1546 #endif1547 1563 else 1548 1564 { … … 1551 1567 WRITE_CODE(0x000 , 12, "XXX_reserved_zero_44bits[32..43]"); 1552 1568 } 1569 #endif 1553 1570 } 1554 1571
Note: See TracChangeset for help on using the changeset viewer.