public MacroBlockLayer(SequenceParameterSet sps, PictureParameterSet pps, SliceHeader header, SliceData data) { _sliceType = header.SliceType; _sps = sps; _pps = pps; _header = header; _data = data; _mbTypeParser = _data.MBTypeParser; _cbp = _data.CBP; _mbQPD = _data.MBQPD; }
public SliceData(SequenceParameterSet sps, PictureParameterSet pps, SliceHeader header) { _sps = sps; _pps = pps; _header = header; if (_pps.EntropyCodingModeFlag) { MBTypeParser = new MBTypeCABACParser(_pps, header); CBP = new CodedBlockPattern(_pps, _header); MBQPD = new MBQPDelta(_pps, _header); } }