protected Nalu(RBSP rbsp, NaluType nalUnitType, NalRefIdc nalRefIdc) { startcodeprefixLen = useAnnexbLongStartcode ? 4 : 3; this.nalUnitType = nalUnitType; this.nalRefIdc = nalRefIdc; forbiddenZeroBit = 0; this.rbsp = rbsp; useAnnexbLongStartcode = true; }
protected int WriteRBSP(RBSP rbspObj, IH264EntropyOutputStream output) { var rbspSize = rbspObj.Write(output); if (rbspSize < RBSP.Maxrbspsize) { // TODO throw an exception. PayloadOverloadedException? } return 1 + PreventEmulationOfStartCode(output, 0); }
public NaluByteStream(RBSP rbsp,NaluType nalUnitType,NalRefIdc nalReferenceIdc) : base(rbsp, nalUnitType, nalReferenceIdc) { }