public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            LibraryType = (MsexElementType)data.ReadByte();

            if (MsexVersion > CitpMsexVersions.Msex10Version)
            {
                LibraryParentId = data.ReadMsexLibraryId();
            }

            int libraryCount = 0;

            if (MsexVersion < CitpMsexVersions.Msex12Version)
            {
                libraryCount = data.ReadByte();
            }
            else
            {
                libraryCount = data.ReadUInt16();
            }

            for (int n = 0; n < libraryCount; n++)
            {
                LibraryNumbers.Add(data.ReadByte());
            }
        }
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            ThumbnailFormat = data.ReadCookie();
            ThumbnailWidth  = data.ReadUInt16();
            ThumbnailHeight = data.ReadUInt16();
            ThumbnailFlags  = (ThumbnailOptions)data.ReadByte();
            LibraryType     = (MsexElementType)data.ReadByte();

            int libraryCount = (MsexVersion < CitpMsexVersions.Msex12Version) ? data.ReadByte() : data.ReadUInt16();

            if (MsexVersion < CitpMsexVersions.Msex11Version)
            {
                for (int i = 0; i < libraryCount; i++)
                {
                    LibraryIds.Add(new CitpMsexLibraryId(data.ReadByte()));
                }
            }
            else
            {
                for (int i = 0; i < libraryCount; i++)
                {
                    LibraryIds.Add(data.ReadMsexLibraryId());
                }
            }
        }
            public override void ReadData(CitpBinaryReader data)
            {
                if (MsexVersion < CitpMsexVersions.Msex11Version)
                {
                    LibraryNumber = data.ReadByte();
                }
                else
                {
                    LibraryId = data.ReadMsexLibraryId();
                }

                if (MsexVersion > CitpMsexVersions.Msex11Version)
                {
                    SerialNumber = data.ReadUInt32();
                }

                DmxRangeMin = data.ReadByte();
                DmxRangeMax = data.ReadByte();
                Name        = data.ReadUcs2();

                if (MsexVersion > CitpMsexVersions.Msex10Version)
                {
                    LibraryCount = MsexVersion < CitpMsexVersions.Msex12Version ? data.ReadByte() : data.ReadUInt16();
                }

                ElementCount = MsexVersion < CitpMsexVersions.Msex12Version ? data.ReadByte() : data.ReadUInt16();
            }
Esempio n. 4
0
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            ThumbnailFormat = data.ReadCookie();
            ThumbnailWidth  = data.ReadUInt16();
            ThumbnailHeight = data.ReadUInt16();
            ThumbnailFlags  = (ThumbnailOptions)data.ReadByte();
            LibraryType     = (MsexElementType)data.ReadByte();

            if (MsexVersion < CitpMsexVersions.Msex11Version)
            {
                LibraryId = new CitpMsexLibraryId(data.ReadByte());
            }
            else
            {
                LibraryId = data.ReadMsexLibraryId();
            }

            int elementCount = (MsexVersion < CitpMsexVersions.Msex12Version) ? data.ReadByte() : data.ReadUInt16();

            for (int n = 0; n < elementCount; n++)
            {
                ElementNumbers.Add(data.ReadByte());
            }
        }
Esempio n. 5
0
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);
            if (MsexVersion > CitpMsexVersions.Msex10Version)
            {
                LibraryId = data.ReadMsexLibraryId();

                int elementCount = MsexVersion < CitpMsexVersions.Msex12Version ? data.ReadByte() : data.ReadUInt16();

                for (int n = 0; n < elementCount; n++)
                {
                    Elements.Add(new ElementInfomation(data, MsexVersion));
                }
            }
        }
Esempio n. 6
0
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            if (MsexVersion < 1.1)
            {
                LibraryId.ParseNumber(data.ReadByte());
            }
            else
            {
                LibraryId = data.ReadMsexLibraryId();
            }

            int elementCount = MsexVersion < 1.2 ? data.ReadByte() : data.ReadUInt16();

            for (int n = 0; n < elementCount; n++)
            {
                Elements.Add(new MediaInformation(data));
            }
        }
Esempio n. 7
0
 public override void ReadData(CitpBinaryReader data)
 {
     LayerNumber    = data.ReadByte();
     PhysicalOutput = data.ReadByte();
     if (MsexVersion < CitpMsexVersions.Msex12Version)
     {
         MediaLibraryNumber = data.ReadByte();
     }
     else
     {
         MediaLibraryType = data.ReadByte();
         MediaLibraryId   = data.ReadMsexLibraryId();
     }
     MediaNumber      = data.ReadByte();
     MediaName        = data.ReadUcs2();
     MediaPosition    = data.ReadUInt32();
     MediaLength      = data.ReadUInt32();
     MediaFPS         = data.ReadByte();
     LayerStatusFlags = data.ReadUInt32();
 }
Esempio n. 8
0
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            LibraryType = (MsexElementType)data.ReadByte();

            if (MsexVersion < CitpMsexVersions.Msex11Version)
            {
                LibraryId.ParseNumber(data.ReadByte());
            }
            else
            {
                LibraryId = data.ReadMsexLibraryId();
            }

            int elementCount = (MsexVersion < CitpMsexVersions.Msex12Version) ? data.ReadByte() : data.ReadUInt16();

            for (int n = 0; n < elementCount; n++)
            {
                ElementNumbers.Add(data.ReadByte());
            }
        }
Esempio n. 9
0
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            LibraryType = (MsexElementType)data.ReadByte();

            if (MsexVersion < CitpMsexVersions.Msex11Version)
            {
                LibraryId.ParseNumber(data.ReadByte());
            }
            else
            {
                LibraryId = data.ReadMsexLibraryId();
            }

            UpdateFlags = (MsexUpdateFlags)data.ReadByte();

            if (MsexVersion >= CitpMsexVersions.Msex12Version)
            {
                AffectedElements  = new BitArray(data.ReadBytes(32));
                AffectedLibraries = new BitArray(data.ReadBytes(32));
            }
        }
        public override void ReadData(CitpBinaryReader data)
        {
            base.ReadData(data);

            LibraryType = (MsexElementType)data.ReadByte();

            if (MsexVersion < CitpMsexVersions.Msex11Version)
            {
                LibraryId.ParseNumber(data.ReadByte());
            }
            else
            {
                LibraryId = data.ReadMsexLibraryId();
            }

            ThumbnailFormat = data.ReadCookie();
            ThumbnailWidth  = data.ReadUInt16();
            ThumbnailHeight = data.ReadUInt16();

            int bufferSize = data.ReadUInt16();

            ThumbnailBuffer = data.ReadBytes(bufferSize);
        }