Exemplo n.º 1
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x3301: this.ComponentDepth = reader.ReadD(); return(true);

            case 0x3302: this.HorizontalSubsampling = reader.ReadD(); return(true);

            case 0x3308: this.VerticalSubsampling = reader.ReadD(); return(true);

            case 0x3303: this.ColorSiting = reader.ReadB(); return(true);

            case 0x330B: this.ReversedByteOrder = reader.ReadBool(); return(true);

            case 0x3307: this.PaddingBits = (Int16)reader.ReadW(); return(true);

            case 0x3309: this.AlphaSampleDepth = reader.ReadD(); return(true);

            case 0x3304: this.BlackRefLevel = reader.ReadD(); return(true);

            case 0x3305: this.WhiteRefLevel = reader.ReadD(); return(true);

            case 0x3306: this.ColorRange = reader.ReadD(); return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x8007: this.LensAttributes = reader.ReadUTF8String(localTag.Size); return(true);

            case 0x8000: this.IrisFNumber = reader.ReadUInt16(); return(true);

            case 0x8001: this.FocusPositionFromImagePlane = reader.ReadUInt16();  return(true);

            case 0x8002: this.FocusPositionFromFrontLensVertex = reader.ReadUInt16(); return(true);

            case 0x8003: this.MacroSetting = reader.ReadBool(); return(true);

            case 0x8004: this.LensZoom35mmStillCameraEquivalent = reader.ReadUInt16(); return(true);

            case 0x8005: this.LensZoomActualFocalLength = reader.ReadUInt16(); return(true);

            case 0x8006: this.OpticalExtenderMagnification = reader.ReadUInt16(); return(true);

            case 0x8008: this.IrisTNumber = reader.ReadUInt16(); return(true);

            case 0x8009: this.IrisRingPosition = reader.ReadUInt16(); return(true);

            case 0x800a: this.FocusRingPosition = reader.ReadUInt16(); return(true);

            case 0x800b: this.ZoomRingPosition = reader.ReadUInt16(); return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x3B02: this.LastModificationDate = reader.ReadTimestamp(); return(true);

            case 0x3B05: this.Version = reader.ReadVersion(); return(true);

            case 0x3B07: this.ObjectModelVersion = reader.ReadUInt32(); return(true);

            case 0x3B03: this.AddChild(reader.ReadReference <MXFContentStorage>("ContentStorage")); return(true);

            case 0x3B08: this.AddChild(reader.ReadReference <MXFGenericPackage>("PrimaryPackage")); return(true);

            case 0x3B09: this.OperationalPattern = reader.ReadULKey(); return(true);

            case 0x3B06: this.AddChild(reader.ReadReferenceSet <MXFIdentification>("Identifications", "Identification")); return(true);

            case 0x3B0A: this.AddChild(reader.ReadAUIDSet("EssenceContainers", "EssenceContainer")); return(true);

            // TODO review how the metadataschemes are read (especially if there are no schemes present)
            case 0x3B0B: this.AddChild(reader.ReadAUIDSet("Descriptive Metadata Schemes", "DM scheme")); return(true);

            case var _ when localTag.Key == isRIPPresent_Key: this.IsRIPPresent = reader.ReadBool(); return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x3D0D: this.Emphasis = reader.ReadB(); return(true);

            case 0x3D0F: this.BlockStartOffset = reader.ReadW(); return(true);

            case 0x3D08: this.AuxiliaryBitsMode = reader.ReadB(); return(true);

            case 0x3D10:
                this.ChannelStatusMode = new byte[localTag.Size];
                reader.Read(this.ChannelStatusMode, localTag.Size);
                return(true);

            case 0x3D11:
                this.FixedChannelStatusData = new byte[localTag.Size];
                reader.Read(this.FixedChannelStatusData, localTag.Size);
                return(true);

            case 0x3D12:
                this.UserDataMode = new byte[localTag.Size];
                reader.Read(this.UserDataMode, localTag.Size);
                return(true);

            case 0x3D13:
                this.FixedUserData = new byte[localTag.Size];
                reader.Read(this.FixedUserData, localTag.Size);
                return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            if (localTag.Key != null)
            {
                switch (localTag.Key)
                {
                case var _ when localTag.Key == bitRate_Key: this.BitRate = reader.ReadUInt32(); return(true);

                case var _ when localTag.Key == identicalGOPIndicator_Key: this.IdenticalGOPIndicator = reader.ReadBool(); return(true);

                case var _ when localTag.Key == maxGOPSize_Key: this.MaximumGOPSize = reader.ReadUInt16(); return(true);

                case var _ when localTag.Key == maxBPictureCount_Key: this.MaximumBPictureCount = reader.ReadUInt16(); return(true);

                case var _ when localTag.Key == constantBPictureFlag_Key: this.ConstantBPictureFlag = reader.ReadBool(); return(true);

                case var _ when localTag.Key == codedContentScanningKind_Key: this.CodedContentScanningKind = (MXFCodedContentScanning)reader.ReadByte(); return(true);

                case var _ when localTag.Key == profileAndLevel_Key: this.ProfileAndLevel = reader.ReadByte(); return(true);

                case var _ when localTag.Key == singleSequenceFlag_Key: this.SingleSequenceFlag = reader.ReadBool(); return(true);

                case var _ when localTag.Key == closedGOP_Key: this.ClosedGOPIndicator = reader.ReadBool(); return(true);

                case var _ when localTag.Key == lowDelay_Key: this.LowDelayIndicator = reader.ReadBool(); return(true);
                }
            }

            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 6
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="reader"></param>
        private void Initialize(MXFReader reader)
        {
            // Make sure we read at the data position
            reader.Seek(this.DataOffset);

            // Read all local tags
            long klvEnd = this.DataOffset + this.Length;

            while (reader.Position + 4 < klvEnd)
            {
                MXFLocalTag tag  = new MXFLocalTag(reader);
                long        next = tag.DataOffset + tag.Size;
                AddRefKeyFromPrimerPack(tag);

                // Allow derived classes to handle the data
                if (!ParseLocalTag(reader, tag))
                {
                    // Not processed, use default
                    tag.Parse(reader);

                    // Add to the collection
                    AddChild(tag);
                }

                reader.Seek(next);
            }

            // Allow derived classes to do some final work
            PostInitialize();
        }
Exemplo n.º 7
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x3D0D: this.Emphasis = (MXFEmphasis)reader.ReadByte(); return(true);

            case 0x3D0F: this.BlockStartOffset = reader.ReadUInt16(); return(true);

            case 0x3D08: this.AuxiliaryBitsMode = (MXFAuxBitsMode)reader.ReadByte(); return(true);

            case 0x3D10: this.ChannelStatusMode = reader.ReadArray(reader.ReadChannelstatusMode, 8); return(true);

            case 0x3D11:
                this.FixedChannelStatusData = reader.ReadArray(reader.ReadByte, localTag.Size);
                return(true);

            case 0x3D12:
                this.UserDataMode = reader.ReadArray(reader.ReadUserDataMode, 2); return(true);

            case 0x3D13:
                this.FixedUserData = reader.ReadArray(reader.ReadByte, localTag.Size);
                return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 8
0
 /// <summary>
 /// Overridden method to process local tags
 /// </summary>
 /// <param name="localTag"></param>
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     }
     return(base.ParseLocalTag(reader, localTag));
 }
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x3D0A: this.BlockAlign = reader.ReadW(); return(true);

            case 0x3D0B: this.SequenceOffset = reader.ReadB(); return(true);

            case 0x3D09: this.AveragesBytesPerSecond = reader.ReadD(); return(true);

            case 0x3D32: this.ChannelAssignment = reader.ReadKey(); return(true);

            case 0x3D29: this.PeakEnvelopeVersion = reader.ReadD(); return(true);

            case 0x3D2A: this.PeakEnvelopeFormat = reader.ReadD(); return(true);

            case 0x3D2B: this.PointsPerPeakValue = reader.ReadD(); return(true);

            case 0x3D2C: this.PeakEnvelopeBlockSize = reader.ReadD(); return(true);

            case 0x3D2D: this.PeakChannels = reader.ReadD(); return(true);

            case 0x3D2E: this.PeakFrames = reader.ReadD(); return(true);

            case 0x3D2F: this.PeakOfPeaksPosition = reader.ReadL(); return(true);

            case 0x3D30: this.PeakEnvelopeTimestamp = reader.ReadTimestamp(); return(true);

            case 0x3D31:
                this.PeakEnvelopeData = new byte[localTag.Size];
                reader.Read(this.PeakEnvelopeData, localTag.Size);
                return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 10
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            if (localTag.Key != null)
            {
                switch (localTag.Key)
                {
                case var _ when localTag.Key == initMetadata_Key: this.VC1InitializationMetadata = reader.ReadArray(reader.ReadByte, localTag.Size); return(true);

                case var _ when localTag.Key == singleSequence_Key: this.VC1SingleSequence = reader.ReadBool(); return(true);

                case var _ when localTag.Key == codedContent_Key: this.VC1CodedContentType = (MXFCodedContentScanning)reader.ReadByte(); return(true);

                case var _ when localTag.Key == identicalGOP_Key: this.VC1IdenticalGOP = reader.ReadBool(); return(true);

                case var _ when localTag.Key == maxGOP_Key: this.VC1MaxGOP = reader.ReadUInt16(); return(true);

                case var _ when localTag.Key == pictureCount_Key: this.VC1BPictureCount = reader.ReadUInt16(); return(true);

                case var _ when localTag.Key == avgBitRate_Key: this.VC1AverageBitRate = reader.ReadUInt32(); return(true);

                case var _ when localTag.Key == maxBitRate_Key: this.VC1MaximumBitRate = reader.ReadUInt32(); return(true);

                case var _ when localTag.Key == profile_Key: this.VC1Profile = reader.ReadByte(); return(true);

                case var _ when localTag.Key == level_Key: this.VC1Level = reader.ReadByte(); return(true);
                }
            }

            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 11
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            if (localTag.Key != null)
            {
                switch (localTag.Key)
                {
                case var _ when localTag.Key == pictureFormatObject_Key:
                    this.AddChild(reader.ReadReference <MXFDescriptiveObject>("PictureFormatObject"));
                    return(true);

                case var _ when localTag.Key == projectObject_Key:
                    this.AddChild(reader.ReadReference <MXFDescriptiveObject>("ProjectObject"));
                    return(true);

                case var _ when localTag.Key == captionsDescriptionObjects_Key:
                    this.AddChild(reader.ReadReferenceSet <MXFDescriptiveObject>("CaptionsDescriptionObjects", "CaptionsDescriptionObject"));
                    return(true);

                case var _ when localTag.Key == contractObjects_Key:
                    this.AddChild(reader.ReadReferenceSet <MXFDescriptiveObject>("ContractObjects", "ContractObject"));
                    return(true);
                }
            }

            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 12
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x3D03: this.AudioSamplingRate = reader.ReadRational(); return(true);

            case 0x3D02: this.Locked = reader.ReadBool(); return(true);

            case 0x3D04: this.AudioRefLevel = reader.ReadSignedByte(); return(true);

            case 0x3D05: this.ElectroSpatialFormulation = (MXFElectroSpatialFormulation)reader.ReadByte(); return(true);

            case 0x3D07: this.ChannelCount = reader.ReadUInt32(); return(true);

            case 0x3D01: this.QuantizationBits = reader.ReadUInt32(); return(true);

            case 0x3D0C: this.DialNorm = reader.ReadSignedByte(); return(true);

            case 0x3D06: this.SoundEssenceCoding = reader.ReadULKey(); return(true);

            case var _ when localTag.Key == refImageEditRate_Key: this.ReferenceImageEditRate = reader.ReadRational(); return(true);

            case var _ when localTag.Key == refAudioAlignmentLevel: this.ReferenceAudioAlignmentLevel = reader.ReadByte(); return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 13
0
 /// <summary>
 /// Overridden method to process local tags
 /// </summary>
 /// <param name="localTag"></param>
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     case 0x4101: LocationName = reader.ReadUTF16String(localTag.Size); return(true);
     }
     return(base.ParseLocalTag(reader, localTag));
 }
 /// <summary>
 /// Overridden method to process local tags
 /// </summary>
 /// <param name="localTag"></param>
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     case 0x3E01: this.DataEssenceCoding = reader.ReadULKey();       return(true);
     }
     return(base.ParseLocalTag(reader, localTag));
 }
Exemplo n.º 15
0
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     case 0x001a: this.AddChild(reader.ReadReference <MXFTypeDefinition>("SetElementType")); return(true);
     }
     return(base.ParseLocalTag(reader, localTag));
 }
Exemplo n.º 16
0
 /// <summary>
 /// Overridden method to process local tags
 /// </summary>
 /// <param name="localTag"></param>
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     case 0x4701: this.Descriptor = reader.ReadRefKey(); return(true);
     }
     return(base.ParseLocalTag(reader, localTag));
 }
Exemplo n.º 17
0
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     case 0x5212: this.MIMEEncoding = reader.ReadUTF16String(localTag.Size); return(true);
     }
     return(base.ParseLocalTag(reader, localTag));
 }
Exemplo n.º 18
0
 /// <summary>
 /// Overridden method to process local tags
 /// </summary>
 /// <param name="localTag"></param>
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     case 0x0801: this.ActiveState = reader.ReadBool(); return(true);
     }
     return(base.ParseLocalTag(reader, localTag));
 }
Exemplo n.º 19
0
 /// <summary>
 /// Overridden method to process local tags
 /// </summary>
 /// <param name="localTag"></param>
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     case 0x4701: this.AddChild(reader.ReadReference <MXFGenericDescriptor>("EssenceDescription")); return(true);
     }
     return(base.ParseLocalTag(reader, localTag));
 }
Exemplo n.º 20
0
 /// <summary>
 /// Overridden method to process local tags
 /// </summary>
 /// <param name="localTag"></param>
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     case 0x4C01: this.ParameterDefinitionReference = reader.ReadUUIDKey(); return(true);
     }
     return(base.ParseLocalTag(reader, localTag));
 }
Exemplo n.º 21
0
 /// <summary>
 /// Overridden method to process local tags
 /// </summary>
 /// <param name="localTag"></param>
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     case 0x3101: this.AIFCSummary = reader.ReadArray(reader.ReadByte, localTag.Size); return(true);
     }
     return(base.ParseLocalTag(reader, localTag));
 }
Exemplo n.º 22
0
 /// <summary>
 /// Overridden method to process local tags
 /// </summary>
 /// <param name="localTag"></param>
 protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
 {
     switch (localTag.Tag)
     {
     case 0x4001: LocatorName = reader.ReadS(localTag.Size); return(true);
     }
     return(base.ParseLocalTag(reader, localTag));
 }
Exemplo n.º 23
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x8113: this.CameraSettingFileURI = reader.ReadUTF8String(localTag.Size); return(true);

            case 0x8114: this.CameraAttributes = reader.ReadUTF8String(localTag.Size); return(true);

            case 0x3210: this.TransferCharacteristic = reader.ReadULKey(); return(true);

            case 0x8106: this.CaptureFrameRate = reader.ReadRational(); return(true);

            case 0x8100: this.AutoExposureMode = reader.ReadULKey(); return(true);

            case 0x8101: this.AutoFocusSensingAreaSetting = (MXFAutoFocusSensingAreaSetting)reader.ReadByte(); return(true);

            case 0x8102: this.ColorCorrectionFilterWheelSetting = (MXFColorCorrectionFilterWheelSetting)reader.ReadByte(); return(true);

            case 0x8103: this.NeutralDensityFilterWheelSetting = reader.ReadUInt16(); return(true);

            case 0x8104: this.ImageSensorDimensionEffectiveWidth = reader.ReadUInt16(); return(true);

            case 0x8105: this.ImageSensorDimensionEffectiveHeight = reader.ReadUInt16(); return(true);

            case 0x8107: this.ImageSensorReadoutMode = (MXFImageSensorReadoutMode)reader.ReadByte(); return(true);

            case 0x8108: this.ShutterSpeedAngle = reader.ReadUInt32(); return(true);

            case 0x8109: this.ShutterSpeedTime = reader.ReadRational(); return(true);

            case 0x810a: this.CameraMasterGainAdjustment = (short)reader.ReadUInt16(); return(true);

            case 0x810b: this.ISOSensitivity = reader.ReadUInt16(); return(true);

            case 0x810c: this.ElectricalExtenderMagnification = reader.ReadUInt16(); return(true);

            case 0x8115: this.ExposureIndexOfPhotoMeter = reader.ReadUInt16(); return(true);

            case 0x8118: this.ColorMatrix = reader.ReadArray(reader.ReadRational, localTag.Size); return(true);

            case 0x810d: this.AutoWhiteBalanceMode = (MXFAutoWhiteBalanceMode)reader.ReadByte(); return(true);

            case 0x810e: this.WhiteBalance = reader.ReadUInt16(); return(true);

            case 0x810f: this.CameraMasterBlackLevel = (short)reader.ReadUInt16(); return(true);

            case 0x8110: this.CameraKneePoint = reader.ReadUInt16(); return(true);

            case 0x8111: this.CameraKneeSlope = reader.ReadUInt16(); return(true);

            case 0x8112: this.CameraLuminanceDynamicRange = reader.ReadUInt16(); return(true);

            case 0x8116: this.GammaForCDL = reader.ReadByte(); return(true);
            }


            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 24
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            if (localTag.Key != null)
            {
                switch (localTag.Key)
                {
                case var _ when localTag.Key == frameworkTitle_Key:
                    this.FrameworkTitle = reader.ReadUTF16String(localTag.Size);
                    return(true);

                case var _ when localTag.Key == extTextLanguageCode_Key:
                    this.FrameworkExtendedTextLanguageCode = reader.ReadUTF8String(localTag.Size);
                    return(true);

                case var _ when localTag.Key == primExtSpokenLanguageCode_Key:
                    this.PrimaryExtendedSpokenLanguageCode = reader.ReadUTF8String(localTag.Size);
                    return(true);

                case var _ when localTag.Key == secExtSpokenLanguageCode_Key:
                    this.SecondaryExtendedSpokenLanguageCode = reader.ReadUTF8String(localTag.Size);
                    return(true);

                case var _ when localTag.Key == orgExtSpokenLanguageCode_Key:
                    this.OriginalExtendedSpokenLanguageCode = reader.ReadUTF8String(localTag.Size);
                    return(true);

                case var _ when localTag.Key == thesaurusName_Key:
                    this.FrameworkThesaurusName = reader.ReadUTF8String(localTag.Size);
                    return(true);

                case var _ when localTag.Key == contactsListObject_Key:
                    this.AddChild(reader.ReadReference <MXFContactsList>("ContactsList Object"));
                    return(true);

                case var _ when localTag.Key == locations_Key:
                    this.AddChild(reader.ReadReferenceSet <MXFLocation>("LocationObjects", "LocationObject"));
                    return(true);

                case var _ when localTag.Key == titlesObjects_Key:
                    this.AddChild(reader.ReadReferenceSet <MXFDescriptiveObject>("Titles Objects", "TitlesObject"));
                    return(true);

                case var _ when localTag.Key == annotationObjects_Key:
                    this.AddChild(reader.ReadReferenceSet <MXFDescriptiveObject>("AnnotationObjects", "AnnotationObject"));
                    return(true);

                case var _ when localTag.Key == participantObjects_Key:
                    this.AddChild(reader.ReadReferenceSet <MXFDescriptiveObject>("ParticipantObjects", "ParticipantObjects"));
                    return(true);

                case var _ when localTag.Key == metadataServerLocators_Key:
                    this.AddChild(reader.ReadReferenceSet <MXFLocator>("MetadataServerLocators", "MetadataServerLocator"));
                    return(true);
                }
            }

            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 25
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x1701: this.IncludeSync = reader.ReadBool(); return(true);
            }

            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 26
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x0601: this.EventPosition = reader.ReadUInt64(); return(true);

            case 0x0602: this.EventComment = reader.ReadUTF16String(localTag.Size); return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 27
0
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x5001: this.Tag = reader.ReadUTF16String(localTag.Size); return(true);

            case 0x5003: this.IndirectValue = reader.ReadArray <byte>(reader.ReadByte, localTag.Size); return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 28
0
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x001f: ExtendibleEnumerationElementNames = reader.ReadUTF16String(localTag.Size).Split((char)0x00); return(true);

            case 0x0020: this.AddChild(reader.ReadAUIDSet("ExtendibleEnumerationElementValues", "ExtendibleEnumerationElementValue")); return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 29
0
        /// <summary>
        /// Overridden method to process local tags
        /// </summary>
        /// <param name="localTag"></param>
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case 0x4901: this.EventTrackEditRate = reader.ReadRational(); return(true);

            case 0x4902: this.EventTrackOrigin = reader.ReadUInt64(); return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }
Exemplo n.º 30
0
        protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag)
        {
            switch (localTag.Tag)
            {
            case var _ when localTag.Key == audioBitRate_Key: this.MPEGAudioBitRate = reader.ReadUInt32(); return(true);

            case var _ when localTag.Key == channelAssignment_Key: this.MPEGAudioChannelAssignment = reader.ReadULKey(); return(true);
            }
            return(base.ParseLocalTag(reader, localTag));
        }