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