Esempio n. 1
0
        public void WriteXML(XmlWriter writer)
        {
            writer.WriteStartElement("CapturePathConfiguration");
            capturePathConfiguration.WriteXml(writer);
            writer.WriteEndElement();

            string dsf = displaySynchronizationFramerate.ToString("0.000", CultureInfo.InvariantCulture);

            writer.WriteElementString("DisplaySynchronizationFramerate", dsf);
            writer.WriteElementString("CaptureRecordingMode", recordingMode.ToString());
            writer.WriteElementString("VerboseStats", verboseStats ? "true" : "false");
            writer.WriteElementString("SaveUncompressedVideo", saveUncompressedVideo ? "true" : "false");

            writer.WriteElementString("MemoryBuffer", memoryBuffer.ToString());

            if (cameraBlurbs.Count > 0)
            {
                writer.WriteStartElement("Cameras");

                foreach (CameraBlurb blurb in cameraBlurbs.Values)
                {
                    writer.WriteStartElement("Camera");
                    blurb.WriteXML(writer);
                    writer.WriteEndElement();
                }

                writer.WriteEndElement();
            }

            writer.WriteStartElement("DelayCompositeConfiguration");
            delayCompositeConfiguration.WriteXml(writer);
            writer.WriteEndElement();

            writer.WriteStartElement("PhotofinishConfiguration");
            photofinishConfiguration.WriteXml(writer);
            writer.WriteEndElement();

            writer.WriteStartElement("CaptureAutomationConfiguration");
            captureAutomationConfiguration.WriteXml(writer);
            writer.WriteEndElement();

            string hrft = highspeedRecordingFramerateThreshold.ToString("0.000", CultureInfo.InvariantCulture);
            string hrfo = highspeedRecordingFramerateOutput.ToString("0.000", CultureInfo.InvariantCulture);

            writer.WriteElementString("HighspeedRecordingFramerateThreshold", hrft);
            writer.WriteElementString("HighspeedRecordingFramerateOutput", hrfo);
            string srft = slowspeedRecordingFramerateThreshold.ToString("0.000", CultureInfo.InvariantCulture);
            string srfo = slowspeedRecordingFramerateOutput.ToString("0.000", CultureInfo.InvariantCulture);

            writer.WriteElementString("SlowspeedRecordingFramerateThreshold", srft);
            writer.WriteElementString("SlowspeedRecordingFramerateOutput", srfo);

            writer.WriteElementString("PostRecordCommand", postRecordCommand);
            writer.WriteElementString("CaptureKVA", captureKVA);
        }
Esempio n. 2
0
        public void WriteXML(XmlWriter writer)
        {
            writer.WriteStartElement("CapturePathConfiguration");
            capturePathConfiguration.WriteXml(writer);
            writer.WriteEndElement();

            string dsf = displaySynchronizationFramerate.ToString("0.000", CultureInfo.InvariantCulture);

            writer.WriteElementString("DisplaySynchronizationFramerate", dsf);
            writer.WriteElementString("CaptureRecordingMode", recordingMode.ToString());
            writer.WriteElementString("VerboseStats", verboseStats ? "true" : "false");
            writer.WriteElementString("SaveUncompressedVideo", saveUncompressedVideo ? "true" : "false");

            writer.WriteElementString("MemoryBuffer", memoryBuffer.ToString());

            if (cameraBlurbs.Count > 0)
            {
                writer.WriteStartElement("Cameras");

                foreach (CameraBlurb blurb in cameraBlurbs.Values)
                {
                    writer.WriteStartElement("Camera");
                    blurb.WriteXML(writer);
                    writer.WriteEndElement();
                }

                writer.WriteEndElement();
            }

            writer.WriteStartElement("DelayCompositeConfiguration");
            delayCompositeConfiguration.WriteXml(writer);
            writer.WriteEndElement();

            writer.WriteStartElement("PhotofinishConfiguration");
            photofinishConfiguration.WriteXml(writer);
            writer.WriteEndElement();
        }