本文整理汇总了Golang中gohm/TLibCommon.TComPic.Create方法的典型用法代码示例。如果您正苦于以下问题:Golang TComPic.Create方法的具体用法?Golang TComPic.Create怎么用?Golang TComPic.Create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gohm/TLibCommon.TComPic
的用法示例。
在下文中一共展示了TComPic.Create方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: xGetNewPicBuffer
// -------------------------------------------------------------------------------------------------------------------
// member access functions
// -------------------------------------------------------------------------------------------------------------------
func (this *TEncTop) xGetNewPicBuffer() *TLibCommon.TComPic { ///< get picture buffer which will be processed
var rpcPic *TLibCommon.TComPic
TLibCommon.SortPicList(this.m_cListPic)
if this.m_cListPic.Len() >= (this.GetEncCfg().m_iGOPSize + this.GetEncCfg().GetMaxDecPicBuffering(TLibCommon.MAX_TLAYER-1) + 2) {
//Int iSize = Int( this.m_cListPic.size() );
for iterPic := this.m_cListPic.Front(); iterPic != nil; iterPic = iterPic.Next() {
rpcPic = iterPic.Value.(*TLibCommon.TComPic)
if rpcPic.GetSlice(0).IsReferenced() == false {
break
}
}
} else {
if this.GetEncCfg().GetUseAdaptiveQP() {
pcEPic := TLibCommon.NewTComPic()
pcEPic.Create(this.GetEncCfg().m_iSourceWidth, this.GetEncCfg().m_iSourceHeight,
TLibCommon.G_uiMaxCUWidth, TLibCommon.G_uiMaxCUHeight, TLibCommon.G_uiMaxCUDepth, this.m_cPPS.GetMaxCuDQPDepth()+1,
this.GetEncCfg().m_conformanceWindow, this.GetEncCfg().m_defaultDisplayWindow, this.GetEncCfg().m_numReorderPics[:], false)
rpcPic = pcEPic
} else {
rpcPic = TLibCommon.NewTComPic()
rpcPic.Create(this.GetEncCfg().m_iSourceWidth, this.GetEncCfg().m_iSourceHeight,
TLibCommon.G_uiMaxCUWidth, TLibCommon.G_uiMaxCUHeight, TLibCommon.G_uiMaxCUDepth, 0,
this.GetEncCfg().m_conformanceWindow, this.GetEncCfg().m_defaultDisplayWindow, this.GetEncCfg().m_numReorderPics[:], false)
}
if this.GetEncCfg().GetUseSAO() {
fmt.Printf("not support SAO\n")
//rpcPic.GetPicSym().AllocSaoParam(this.m_cEncSAO);
}
this.m_cListPic.PushBack(rpcPic)
}
rpcPic.SetReconMark(false)
this.m_iPOCLast++
this.m_iNumPicRcvd++
rpcPic.GetSlice(0).SetPOC(this.m_iPOCLast)
// mark it should be extended
rpcPic.GetPicYuvRec().SetBorderExtension(false)
return rpcPic
}