示例#1
0
func (this *TAppDecTop) IsNaluWithinTargetDecLayerIdSet(nalu *TLibDecoder.InputNALUnit) bool {
	if this.m_targetDecLayerIdSet.Len() == 0 { // By default, the set is empty, meaning all LayerIds are allowed
		return true
	}
	for e := this.m_targetDecLayerIdSet.Front(); e != nil; e = e.Next() {
		it := e.Value.(int)
		if int(nalu.GetReservedZero6Bits()) == it {
			return true
		}
	}
	return false
}