public int GetBits <T>(int numBits, T attribute, IValidityResultFormatter optionResultFormatter) { int value = (int)GetBits(numBits); // Add and verify the option attribute Result.AddAttribute(attribute, value, optionResultFormatter); return(value); }
public Mpeg2SystemReader(BitStreamDataReader dataReader, IMpeg2SystemState state, IReaderState readerState) { _dataReader = dataReader; _state = state; _readerState = readerState; _maxZeroByteStuffingLength = (uint)Mpeg2SystemDetector.Configurable[Mpeg2SystemDetector.ConfigurationKey.MaxZeroByteStuffingLength]; _stuffingBytesResultFormatter = new StuffingBytesResultFormatter(); }
public uint GetExpGolombCoded <T>(T attributeName, IValidityResultFormatter optionResultFormatter) { uint value = GetExpGolombCoded(); // Add and verify the option attribute // FIXME: is the cast to 'int' necessary!? Result.AddAttribute(attributeName, (int)value, optionResultFormatter); return(value); }
public PictureParameterSet() { _weightBidirectionalPredictionFormatter = new EnumResultFormatter <WeightedBidirectionalPredictionType>(); _sliceGroupMapTypeFormatter = new EnumResultFormatter <SliceGroupMapType>(); }