Changeset 972 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibEncoder
- Timestamp:
- 8 Jan 2015, 02:58:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.