Changeset 1287 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder/TEncSbac.cpp
- Timestamp:
- 17 Jul 2015, 05:43:37 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncSbac.cpp
r1286 r1287 886 886 887 887 #if SVC_EXTENSION 888 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffset Y();888 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffset(CHANNEL_TYPE_LUMA); 889 889 #else 890 890 Int qpBdOffsetY = pcCU->getSlice()->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA); … … 1608 1608 } 1609 1609 } 1610 #if SVC_EXTENSION 1611 Void TEncSbac::codeSAOOffsetParam(ComponentID compIdx, SAOOffset& ctbParam, Bool sliceEnabled, UInt* saoMaxOffsetQVal) 1612 #else 1613 Void TEncSbac::codeSAOOffsetParam(ComponentID compIdx, SAOOffset& ctbParam, Bool sliceEnabled) 1614 #endif 1610 1611 Void TEncSbac::codeSAOOffsetParam(ComponentID compIdx, SAOOffset& ctbParam, Bool sliceEnabled, const Int channelBitDepth) 1615 1612 { 1616 1613 UInt uiSymbol; … … 1658 1655 } 1659 1656 1657 const Int maxOffsetQVal = TComSampleAdaptiveOffset::getMaxOffsetQVal(channelBitDepth); 1660 1658 for(Int i=0; i< 4; i++) 1661 1659 { 1662 #if SVC_EXTENSION 1663 codeSaoMaxUvlc((offset[i]<0)?(-offset[i]):(offset[i]), saoMaxOffsetQVal[compIdx] ); //sao_offset_abs 1664 #else 1665 codeSaoMaxUvlc((offset[i]<0)?(-offset[i]):(offset[i]), g_saoMaxOffsetQVal[compIdx] ); //sao_offset_abs 1666 #endif 1660 codeSaoMaxUvlc((offset[i]<0)?(-offset[i]):(offset[i]), maxOffsetQVal ); //sao_offset_abs 1667 1661 } 1668 1662 … … 1693 1687 1694 1688 1695 Void TEncSbac::codeSAOBlkParam(SAOBlkParam& saoBlkParam 1696 #if SVC_EXTENSION 1697 , UInt* saoMaxOffsetQVal 1698 #endif 1689 Void TEncSbac::codeSAOBlkParam(SAOBlkParam& saoBlkParam, const BitDepths &bitDepths 1699 1690 , Bool* sliceEnabled 1700 1691 , Bool leftMergeAvail … … 1728 1719 for(Int compIdx=0; compIdx < MAX_NUM_COMPONENT; compIdx++) 1729 1720 { 1730 #if SVC_EXTENSION 1731 codeSAOOffsetParam(ComponentID(compIdx), saoBlkParam[compIdx], sliceEnabled[compIdx], saoMaxOffsetQVal); 1732 #else 1733 codeSAOOffsetParam(ComponentID(compIdx), saoBlkParam[compIdx], sliceEnabled[compIdx]); 1734 #endif 1721 codeSAOOffsetParam(ComponentID(compIdx), saoBlkParam[compIdx], sliceEnabled[compIdx], bitDepths.recon[toChannelType(ComponentID(compIdx))]); 1735 1722 } 1736 1723 }
Note: See TracChangeset for help on using the changeset viewer.