Example #1
0
 public SearchHeader(DefaultCodecHeaderManager defaultCodecHeaderManager,
                     BackgroundDataBlockScanner backgroundDataBlockScanner)
 {
     _defaultCodecHeaderManager  = defaultCodecHeaderManager;
     _backgroundDataBlockScanner = backgroundDataBlockScanner;
     InitializeComponent();
 }
        public ProjectKeyframeOverview(FileTreeObject fileTreeObject, ProjectManager projectManager,
                                       FFmpegManager ffmpegManager, DefaultCodecHeaderManager defaultCodecHeaderManager,
                                       FullFileScanner fullFileScanner, Creator <SelectingKeyframe> selectingKeyframeCreator)
        {
            if (_activeInstance != null)
            {
                throw new Exception("It's not allowed to create multiple ProjectKeyframeOverview windows.");
            }

            _activeInstance            = this;
            _fileTreeObject            = fileTreeObject;
            _projectManager            = projectManager;
            _ffmpegManager             = ffmpegManager;
            _defaultCodecHeaderManager = defaultCodecHeaderManager;
            _fullFileScanner           = fullFileScanner;
            _selectingKeyframeCreator  = selectingKeyframeCreator;

            InitializeComponent();
            ReportProgressComplete();

            _resultRows            = new List <ProjectKeyframeOverviewRow>();
            resultsTree.DataSource = _resultRows;

            projectManager.ProjectChanged += new EventHandler <ProjectChangedEventArgs>(projectManager_ProjectChanged);
            defaultCodecHeaderManager.CodecHeaderChanged += new DefaultCodecHeaderManager.DefaultCodecHeaderChangeHandler(defaultCodecHeaderManager_CodecHeaderChanged);

            fullFileScanner.ScanNextCodecStreamOnInvalidation = true;
            fullFileScanner.ScanMoreThanOneFragment           = false;
            fullFileScanner.ScanProgressChanged += new ProgressChangedEventHandler(fullFileScanner_ScanProgressChanged);
            fullFileScanner.ResultDetected      += new FullFileScanner.ResultDetectedHandler(fullFileScanner_ResultDetected);
            fullFileScanner.ScanCompleted       += new FullFileScanner.ScanCompleteHandler(fullFileScanner_ScanCompleted);
            fullFileScanner.ScanNumCodecStreams  = 1;            // Limit to only 1 codecstream, otherwise the scan will take to long
        }
        public VideoKeyframesManager(FFmpegManager ffmpegManager, ProjectManager projectManager,
                                     DefaultCodecHeaderManager defaultCodecHeaderManager, Creator <VideoKeyframesWindow> videoThumbsWindowCreator)
        {
            _ffmpegManager            = ffmpegManager;
            _videoThumbsWindowCreator = videoThumbsWindowCreator;

            projectManager.ProjectChanged += new EventHandler <ProjectChangedEventArgs>(ProjectChanged);
            defaultCodecHeaderManager.CodecHeaderChanged += new DefaultCodecHeaderManager.DefaultCodecHeaderChangeHandler(defaultCodecHeaderManager_CodecHeaderChanged);
        }
Example #4
0
        public FramePreviewManager(ProjectManager projectManager, FFmpegManager ffmpegManager,
                                   DefaultCodecHeaderManager defaultCodecHeaderManager,
                                   IForensicIntegrityLog forensicIntegrityLog)
        {
            _ffmpegManager        = ffmpegManager;
            _forensicIntegrityLog = forensicIntegrityLog;

            projectManager.ProjectChanged += new EventHandler <ProjectChangedEventArgs>(ProjectChanged);
            defaultCodecHeaderManager.CodecHeaderChanged += new DefaultCodecHeaderManager.DefaultCodecHeaderChangeHandler(defaultCodecHeaderManager_CodecHeaderChanged);
        }
Example #5
0
        public EditDefaultCodecHeader(DefaultCodecHeaderManager defaultCodecHeaderManager,
                                      ProjectManager projectManager, Creator <SearchHeader> searchHeaderCreator)
        {
            _defaultCodecHeaderManager = defaultCodecHeaderManager;
            _projectManager            = projectManager;
            _searchHeaderCreator       = searchHeaderCreator;

            InitializeComponent();
            UpdateCodecList();
        }
        public VideoKeyframesWindow(MainForm mainForm, VideoKeyframesManager videoKeyframesManager,
                                    DefaultCodecHeaderManager defaultCodecHeaderManager)
        {
            _mainForm = mainForm;
            _videoKeyframesManager     = videoKeyframesManager;
            _defaultCodecHeaderManager = defaultCodecHeaderManager;
            InitializeComponent();
            UpdateTitle();

            textBoxMaxNumThumbs.Text = _videoKeyframesManager.MaxThumbs.ToString();
        }