Example #1
0
//public:
func NewTDecTop() *TDecTop {
	return &TDecTop{m_pcPic: nil,
		m_iMaxRefPicNum:              0,
		m_pocCRA:                     0,
		m_prevRAPisBLA:               false,
		m_pocRandomAccess:            TLibCommon.MAX_INT,
		m_prevPOC:                    TLibCommon.MAX_INT,
		m_prevSkipPictureForBLA:      false,
		m_bFirstSliceInPicture:       true,
		m_bFirstSliceInSequence:      true,
		m_pcListPic:                  list.New(),
		m_parameterSetManagerDecoder: TLibCommon.NewParameterSetManager(),
		warningMessage:               false,
		m_cPrediction:                TLibCommon.NewTComPrediction(),
		m_cTrQuant:                   TLibCommon.NewTComTrQuant(),
		m_cGopDecoder:                NewTDecGop(),
		m_cSliceDecoder:              NewTDecSlice(),
		m_cCuDecoder:                 NewTDecCu(),
		m_cEntropyDecoder:            NewTDecEntropy(),
		m_cCavlcDecoder:              NewTDecCavlc(),
		m_cSbacDecoder:               NewTDecSbac(),
		m_cBinCabac:                  NewTDecBinCabac(),
		m_cSeiReader:                 NewTDecSeiReader(),
		m_cLoopFilter:                TLibCommon.NewTComLoopFilter(),
		m_cSAO:                       TLibCommon.NewTComSampleAdaptiveOffset()}
}
Example #2
0
func NewTEncTop() *TEncTop {
	return &TEncTop{m_iPOCLast: -1,
		m_cListPic:             list.New(),
		m_cSearch:              NewTEncSearch(),
		m_cTrQuant:             TLibCommon.NewTComTrQuant(),
		m_cLoopFilter:          TLibCommon.NewTComLoopFilter(),
		m_cEncSAO:              NewTEncSampleAdaptiveOffset(),
		m_cEntropyCoder:        NewTEncEntropy(),
		m_cCavlcCoder:          NewTEncCavlc(),
		m_cSbacCoder:           NewTEncSbac(),
		m_cBinCoderCABAC:       NewTEncBinCABAC(),
		m_cGOPEncoder:          NewTEncGOP(),
		m_cSliceEncoder:        NewTEncSlice(),
		m_cCuEncoder:           NewTEncCu(),
		m_cSPS:                 TLibCommon.NewTComSPS(),
		m_cPPS:                 TLibCommon.NewTComPPS(),
		m_cRDGoOnBinCoderCABAC: NewTEncBinCABACCounter(),
		m_cBitCounter:          TLibCommon.NewTComBitCounter(),
		m_cRdCost:              NewTEncRdCost(),
		m_cRDGoOnSbacCoder:     NewTEncSbac(),
		m_scalingList:          TLibCommon.NewTComScalingList(),
		m_cRateCtrl:            NewTEncRateCtrl(),
	}
}