Changeset 1545 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
- Timestamp:
- 22 Mar 2016, 23:52:56 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1544 r1545 51 51 Int m_POC; 52 52 Int m_QPOffset; 53 #if W0038_CQP_ADJ 54 Int m_CbQPoffset; 55 Int m_CrQPoffset; 56 #endif 53 57 Double m_QPFactor; 54 58 Int m_tcOffsetDiv2; … … 69 73 : m_POC(-1) 70 74 , m_QPOffset(0) 75 #if W0038_CQP_ADJ 76 , m_CbQPoffset(0) 77 , m_CrQPoffset(0) 78 #endif 71 79 , m_QPFactor(0) 72 80 , m_tcOffsetDiv2(0) … … 132 140 133 141 //====== Coding Structure ======== 134 UInt m_uiIntraPeriod; 142 UInt m_uiIntraPeriod; // TODO: make this an Int - it can be -1! 135 143 UInt m_uiDecodingRefreshType; ///< the type of decoding refresh employed for the random access. 136 144 Int m_iGOPSize; … … 167 175 Int m_loopFilterBetaOffsetDiv2; 168 176 Int m_loopFilterTcOffsetDiv2; 177 #if W0038_DB_OPT 178 Int m_deblockingFilterMetric; 179 #else 169 180 Bool m_DeblockingFilterMetric; 181 #endif 170 182 Bool m_bUseSAO; 171 183 Bool m_bTestSAODisableAtPictureLevel; … … 192 204 Int m_chromaCbQpOffset; // Chroma Cb QP Offset (0:default) 193 205 Int m_chromaCrQpOffset; // Chroma Cr Qp Offset (0:default) 206 #if W0038_CQP_ADJ 207 UInt m_sliceChromaQpOffsetPeriodicity; ///< Used in conjunction with Slice Cb/Cr QpOffsetIntraOrPeriodic. Use 0 (default) to disable periodic nature. 208 Int m_sliceChromaQpOffsetIntraOrPeriodic[2/*Cb,Cr*/]; ///< Chroma Cb QP Offset at slice level for I slice or for periodic inter slices as defined by SliceChromaQPOffsetPeriodicity. Replaces offset in the GOP table. 209 #endif 210 194 211 ChromaFormat m_chromaFormatIDC; 195 212 … … 570 587 Void setLoopFilterBetaOffset ( Int i ) { m_loopFilterBetaOffsetDiv2 = i; } 571 588 Void setLoopFilterTcOffset ( Int i ) { m_loopFilterTcOffsetDiv2 = i; } 589 #if W0038_DB_OPT 590 Void setDeblockingFilterMetric ( Int i ) { m_deblockingFilterMetric = i; } 591 #else 572 592 Void setDeblockingFilterMetric ( Bool b ) { m_DeblockingFilterMetric = b; } 573 593 #endif 574 594 //====== Motion search ======== 575 595 Void setDisableIntraPUsInInterSlices ( Bool b ) { m_bDisableIntraPUsInInterSlices = b; } … … 591 611 Void setChromaCbQpOffset ( Int i ) { m_chromaCbQpOffset = i; } 592 612 Void setChromaCrQpOffset ( Int i ) { m_chromaCrQpOffset = i; } 613 #if W0038_CQP_ADJ 614 Void setSliceChromaOffsetQpIntraOrPeriodic( UInt periodicity, Int sliceChromaQpOffsetIntraOrPeriodic[2]) { m_sliceChromaQpOffsetPeriodicity = periodicity; memcpy(m_sliceChromaQpOffsetIntraOrPeriodic, sliceChromaQpOffsetIntraOrPeriodic, sizeof(m_sliceChromaQpOffsetIntraOrPeriodic)); } 615 Int getSliceChromaOffsetQpIntraOrPeriodic( Bool bIsCr) const { return m_sliceChromaQpOffsetIntraOrPeriodic[bIsCr?1:0]; } 616 UInt getSliceChromaOffsetQpPeriodicity() const { return m_sliceChromaQpOffsetPeriodicity; } 617 #endif 593 618 594 619 Void setChromaFormatIdc ( ChromaFormat cf ) { m_chromaFormatIDC = cf; } … … 649 674 Int getLoopFilterBetaOffset () { return m_loopFilterBetaOffsetDiv2; } 650 675 Int getLoopFilterTcOffset () { return m_loopFilterTcOffsetDiv2; } 676 #if W0038_DB_OPT 677 Int getDeblockingFilterMetric () { return m_deblockingFilterMetric; } 678 #else 651 679 Bool getDeblockingFilterMetric () { return m_DeblockingFilterMetric; } 680 #endif 652 681 653 682 //==== Motion search ========
Note: See TracChangeset for help on using the changeset viewer.