Esempio n. 1
0
        public override void Read(BitReader bitReader)
        {
            base.Read(bitReader);

            // FIXME: SliceData above is not complete, so for now let's just skip the rest of data
            Nalu.SkipToEndOfNALU(bitReader);

            Nalu.CheckSize(bitReader);
        }
Esempio n. 2
0
        public override void Read(BitReader bitReader)
        {
            base.Read(bitReader);                          // read-in the NALU
            Header.Read(bitReader);
            SliceID = bitReader.DecodeUnsignedExpGolomb(); // this is not in base class
            Data.Read(bitReader);

            // FIXME: SliceData above is not complete, so for now let's just skip the rest of data
            Nalu.SkipToEndOfNALU(bitReader);

            Nalu.CheckSize(bitReader);
        }
        public override void Read(BitReader bitReader)
        {
            base.Read(bitReader); // read-in the NALU

            // NOTE: this coded slice has no Header (it should remain null)
            SliceID = bitReader.DecodeUnsignedExpGolomb();
            if (_pps.RedundantPICCountPresentFlag)
            {
                RedundantPictureCount = bitReader.DecodeUnsignedExpGolomb();
            }
            Data.Read(bitReader);

            // FIXME: SliceData above is not complete, so for now let's just skip the rest of data
            Nalu.SkipToEndOfNALU(bitReader);

            Nalu.CheckSize(bitReader);
        }