created import and probe tasks

This commit is contained in:
itsmattkc
2019-06-30 11:19:20 -07:00
parent 823dd6c2e3
commit db5641a0a4
8 changed files with 172 additions and 18 deletions
+22
View File
@@ -0,0 +1,22 @@
# Olive - Non-Linear Video Editor
# Copyright (C) 2019 Olive Team
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
set(OLIVE_SOURCES
${OLIVE_SOURCES}
task/probe/probe.h
task/probe/probe.cpp
PARENT_SCOPE
)
+20
View File
@@ -0,0 +1,20 @@
#include "probe.h"
#include <QFileInfo>
#include "decoder/probeserver.h"
ProbeTask::ProbeTask(Footage *footage) :
footage_(footage)
{
QString base_filename = QFileInfo(footage_->filename()).fileName();
set_text(tr("Probing \"%1\"").arg(base_filename));
}
bool ProbeTask::Action()
{
olive::ProbeMedia(footage_);
return true;
}
+19
View File
@@ -0,0 +1,19 @@
#ifndef PROBE_H
#define PROBE_H
#include "project/item/footage/footage.h"
#include "task/task.h"
class ProbeTask : public Task
{
Q_OBJECT
public:
ProbeTask(Footage* footage);
virtual bool Action() override;
private:
Footage* footage_;
};
#endif // PROBE_H