Esempio n. 1
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));
        }
Esempio 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 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));
        }
Esempio 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 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));
        }
Esempio n. 4
0
 private void Initialize(MXFReader reader)
 {
     // Make sure we read at the data position
     reader.Seek(this.DataOffset);
     ItemValue_ISO7 = reader.ReadUTF8String((int)this.Length);
 }