本文整理汇总了Golang中gohm/TLibCommon.TComDataCU.IsIntra方法的典型用法代码示例。如果您正苦于以下问题:Golang TComDataCU.IsIntra方法的具体用法?Golang TComDataCU.IsIntra怎么用?Golang TComDataCU.IsIntra使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gohm/TLibCommon.TComDataCU
的用法示例。
在下文中一共展示了TComDataCU.IsIntra方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: DecodePredInfo
func (this *TDecEntropy) DecodePredInfo(pcCU *TLibCommon.TComDataCU, uiAbsPartIdx, uiDepth uint, pcSubCU *TLibCommon.TComDataCU) {
if pcCU.IsIntra(uiAbsPartIdx) {
this.DecodeIntraDirModeLuma(pcCU, uiAbsPartIdx, uiDepth)
this.DecodeIntraDirModeChroma(pcCU, uiAbsPartIdx, uiDepth)
} else {
this.DecodePUWise(pcCU, uiAbsPartIdx, uiDepth, pcSubCU)
}
}
示例2: encodePredInfo
func (this *TEncEntropy) encodePredInfo(pcCU *TLibCommon.TComDataCU, uiAbsPartIdx uint, bRD bool) { // = false );
if bRD {
uiAbsPartIdx = 0
}
//fmt.Printf("uiAbsPartIdx=%d\n", uiAbsPartIdx);
if pcCU.IsIntra(uiAbsPartIdx) { // If it is Intra mode, encode intra prediction mode.
this.encodeIntraDirModeLuma(pcCU, uiAbsPartIdx, true)
this.encodeIntraDirModeChroma(pcCU, uiAbsPartIdx, bRD)
} else {
this.encodePUWise(pcCU, uiAbsPartIdx, bRD)
}
}
示例3: DecodeCoeff
func (this *TDecEntropy) DecodeCoeff(pcCU *TLibCommon.TComDataCU, uiAbsPartIdx, uiDepth, uiWidth, uiHeight uint, bCodeDQP *bool) {
uiMinCoeffSize := pcCU.GetPic().GetMinCUWidth() * pcCU.GetPic().GetMinCUHeight()
uiLumaOffset := uiMinCoeffSize * uiAbsPartIdx
uiChromaOffset := uiLumaOffset >> 2
if !pcCU.IsIntra(uiAbsPartIdx) {
uiQtRootCbf := uint(1)
if !(pcCU.GetPartitionSize1(uiAbsPartIdx) == TLibCommon.SIZE_2Nx2N && pcCU.GetMergeFlag1(uiAbsPartIdx)) {
this.m_pcEntropyDecoderIf.ParseQtRootCbf(uiAbsPartIdx, &uiQtRootCbf)
}
if uiQtRootCbf == 0 {
pcCU.SetCbfSubParts(0, 0, 0, uiAbsPartIdx, uiDepth)
pcCU.SetTrIdxSubParts(0, uiAbsPartIdx, uiDepth)
return
}
}
this.xDecodeTransform(pcCU, uiLumaOffset, uiChromaOffset, uiAbsPartIdx, uiDepth, uiWidth, uiHeight, 0, bCodeDQP)
}
示例4: encodeCoeff
func (this *TEncEntropy) encodeCoeff(pcCU *TLibCommon.TComDataCU, uiAbsPartIdx, uiDepth, uiWidth, uiHeight uint, bCodeDQP *bool) {
uiMinCoeffSize := pcCU.GetPic().GetMinCUWidth() * pcCU.GetPic().GetMinCUHeight()
uiLumaOffset := uiMinCoeffSize * uiAbsPartIdx
uiChromaOffset := uiLumaOffset >> 2
if pcCU.IsIntra(uiAbsPartIdx) {
/*DTRACE_CABAC_VL( g_nSymbolCounter++ )*/
this.m_pcEntropyCoderIf.DTRACE_CABAC_T("\tdecodeTransformIdx()\tCUDepth=")
this.m_pcEntropyCoderIf.DTRACE_CABAC_V(uiDepth)
this.m_pcEntropyCoderIf.DTRACE_CABAC_T("\n")
} else {
if !(pcCU.GetMergeFlag1(uiAbsPartIdx) && pcCU.GetPartitionSize1(uiAbsPartIdx) == TLibCommon.SIZE_2Nx2N) {
this.m_pcEntropyCoderIf.codeQtRootCbf(pcCU, uiAbsPartIdx)
}
if !pcCU.GetQtRootCbf(uiAbsPartIdx) {
return
}
}
this.xEncodeTransform(pcCU, uiLumaOffset, uiChromaOffset, uiAbsPartIdx, uiDepth, uiWidth, uiHeight, 0, bCodeDQP)
}