Example #1
0
        public Metadata(string kvaString, VideoInfo info, HistoryStack historyStack, TimeCodeBuilder timecodeBuilder, ClosestFrameDisplayer closestFrameDisplayer)
            : this(historyStack, timecodeBuilder)
        {
            // This should reflect what we do in FrameServerPlayer.SetupMetadata
            imageSize    = info.ReferenceSize;
            userInterval = info.FrameIntervalMilliseconds;
            averageTimeStampsPerFrame  = info.AverageTimeStampsPerFrame;
            averageTimeStampsPerSecond = info.AverageTimeStampsPerSeconds;
            calibrationHelper.CaptureFramesPerSecond = info.FramesPerSeconds;
            firstTimeStamp = info.FirstTimeStamp;

            fullPath = info.FilePath;

            MetadataSerializer serializer = new MetadataSerializer();

            serializer.Load(this, kvaString, false);
        }
Example #2
0
        public Metadata(HistoryStack historyStack, TimeCodeBuilder timecodeBuilder)
        {
            this.historyStack    = historyStack;
            this.timecodeBuilder = timecodeBuilder;

            calibrationHelper.CalibrationChanged += CalibrationHelper_CalibrationChanged;

            autoSaver = new AutoSaver(this);

            CreateStaticExtraDrawings();
            CleanupHash();

            SetupTempDirectory(id);

            calibrationChangedTemporizer = new Temporizer(200, TracksCalibrationChanged);

            log.Debug("Constructing new Metadata object.");
        }