17#ifndef MOVIEIMPORTER_H
18#define MOVIEIMPORTER_H
20#include "pencilerror.h"
36 void setCore(
Editor* editor) { mEditor = editor; }
60 std::function<
void(
int)> progress,
61 std::function<
void(
QString)> progressMessage,
62 std::function<
bool()> askPermission);
64 void cancel() { mCanceled =
true; }
68 Status verifyFFmpegExists();
69 Status importMovieVideo(
const QString& filePath,
int fps,
int frameEstimate,
70 std::function<
bool(
int)> progress,
71 std::function<
void(
QString)> progressMessage);
72 Status importMovieAudio(
const QString& filePath, std::function<
bool(
int)> progress);
74 Status generateFrames(std::function<
bool(
int)> progress);
80 bool mCanceled =
false;
Status run(const QString &filePath, int fps, FileType type, std::function< void(int)> progress, std::function< void(QString)> progressMessage, std::function< bool()> askPermission)
Status estimateFrames(const QString &filePath, int fps, int *frameEstimate)
Attempts to load a video and determine it's duration.
QObject * parent() const const