Beispiel #1
0
func NewTAppEncTop() *TAppEncTop {
	return &TAppEncTop{m_cTEncTop: TLibEncoder.NewTEncTop(),
		m_cTVideoIOYuvInputFile: TLibCommon.NewTVideoIOYuv(),
		m_cTVideoIOYuvReconFile: TLibCommon.NewTVideoIOYuv(),
		m_cListPicYuvRec:        list.New(),
		m_iFrameRcvd:            0,
		m_totalBytes:            0,
		m_essentialBytes:        0}
}
Beispiel #2
0
func NewTAppDecTop() *TAppDecTop {
	pAppDecTop := &TAppDecTop{}
	//::memset (m_abDecFlag, 0, sizeof (m_abDecFlag));//memset 0 by Go
	pAppDecTop.m_iPOCLastDisplay = -TLibCommon.MAX_INT
	pAppDecTop.TAppDecCfg.m_targetDecLayerIdSet = list.New()
	pAppDecTop.m_cTDecTop = TLibDecoder.NewTDecTop()
	pAppDecTop.m_cTVideoIOYuvReconFile = TLibCommon.NewTVideoIOYuv()

	return pAppDecTop
}