Exemple #1
0
        public override void decode(MP4InputStream inStream)
        {
            // 10 bits objectDescriptorID, 1 bit url flag, 1 bit
            // includeInlineProfiles flag, 4 bits reserved
            int x = (int)inStream.readBytes(2);

            objectDescriptorID    = (x >> 6) & 0x3FF;
            urlPresent            = ((x >> 5) & 1) == 1;
            includeInlineProfiles = ((x >> 4) & 1) == 1;

            if (urlPresent)
            {
                url = inStream.readString(size - 2);
            }
            else
            {
                odProfile       = inStream.read();
                sceneProfile    = inStream.read();
                audioProfile    = inStream.read();
                visualProfile   = inStream.read();
                graphicsProfile = inStream.read();
            }

            readChildren(inStream);
        }
Exemple #2
0
        public override void decode(MP4InputStream inStream)
        {
            // 10 bits objectDescriptorID, 1 bit url flag, 5 bits reserved
            int x = (int)inStream.readBytes(2);

            objectDescriptorID = (x >> 6) & 0x3FF;
            urlPresent         = ((x >> 5) & 1) == 1;

            if (urlPresent)
            {
                url = inStream.readString(size - 2);
            }

            readChildren(inStream);
        }
Exemple #3
0
        public override void decode(MP4InputStream inStream)
        {
            if (parent.getType() == BoxType.UNKNOWN_HNTI_BOX)
            {
                // mpeg4 iod
                string content = inStream.readString((int)getLeft(inStream));
            }
            else
            {
                base.decode(inStream);

                hintTrackVersion         = (int)inStream.readBytes(2);
                highestCompatibleVersion = (int)inStream.readBytes(2);
                maxPacketSize            = inStream.readBytes(4);
            }
        }
Exemple #4
0
 public override void decode(MP4InputStream inStream)
 {
     originalFormat = inStream.readString(4);
 }
Exemple #5
0
        public override void decode(MP4InputStream inStream)
        {
            base.decode(inStream);

            requirement = inStream.readString((int)getLeft(inStream));
        }
        public override void decode(MP4InputStream inStream)
        {
            base.decode(inStream);

            domain = inStream.readString((int)getLeft(inStream));
        }
Exemple #7
0
 public override void decode(MP4InputStream inStream)
 {
     string tmp = inStream.readString((int)getLeft(inStream));
 }