Пример #1
0
 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;
 }
Пример #2
0
 public YuvFrameBuffer(YuvFormatType yuvType, Size frameSize)
     : base(frameSize)
 {
     this.yuvType = yuvType;
     Init();
 }