public void Encode(byte[] inputFrameData)
 {
     currentInputFrame.CopyData(inputFrameData);
     currentPicture = new Frame(this, pictureIndex, lastIdr);
     currentPicture.Encode(currentInputFrame, currentOutputFrame);
     pictureIndex++;
 }
示例#2
0
 //private int sliceNr;
 public Slice(Picture picture, SliceType sliceType)
 {
     this.picture = picture;
     macroblocks = new List<Macroblock>();
     this.sliceType = sliceType;
 }