Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public NaluByteStream(RBSP rbsp,NaluType nalUnitType,NalRefIdc nalReferenceIdc)
     : base(rbsp, nalUnitType, nalReferenceIdc)
 {
 }