public VideoSequence(YuvFormatType yuvFormatType, Size frameSize ) { this.frameSize = frameSize; currentInputFrame = new YuvFrameBuffer(yuvFormatType, frameSize); currentOutputFrame = new YuvFrameBuffer(yuvFormatType, frameSize); picWidthInMbs = frameSize.Width / MbBlockSize; frameHeightInMbs = frameSize.Height / MbBlockSize; frameSizeInMbs = picWidthInMbs*frameHeightInMbs; lastIdr = 0; pictureIndex = 0; }
public YuvFrameBuffer(YuvFormatType yuvType, Size frameSize) : base(frameSize) { this.yuvType = yuvType; Init(); }