protected override void DeserializeFromStream(CitpBinaryReader reader)
        {
            base.DeserializeFromStream(reader);

            switch (Version)
            {
            case MsexVersion.Version1_0:
            case MsexVersion.Version1_1:
            {
                SourceIdentifier = reader.ReadUInt16();
                FrameFormat      = CitpEnumHelper.GetEnumFromIdString <MsexImageFormat>(reader.ReadIdString());
                FrameWidth       = reader.ReadUInt16();
                FrameHeight      = reader.ReadUInt16();

                int frameBufferLength = reader.ReadUInt16();
                FrameBuffer = reader.ReadBytes(frameBufferLength);
            }
            break;

            case MsexVersion.Version1_2:
            {
                MediaServerUuid  = reader.ReadGuid();
                SourceIdentifier = reader.ReadUInt16();
                FrameFormat      = CitpEnumHelper.GetEnumFromIdString <MsexImageFormat>(reader.ReadIdString());
                FrameWidth       = reader.ReadUInt16();
                FrameHeight      = reader.ReadUInt16();

                int frameBufferLength = reader.ReadUInt16();
                FrameBuffer = reader.ReadBytes(frameBufferLength);
            }
            break;
            }
        }