18 #ifndef PROXYMANAGER_H
19 #define PROXYMANAGER_H
36 enum ScanMode { Automatic, Progressive, InterlacedTopFieldFirst, InterlacedBottomFieldFirst };
39 static QString resource(Mlt::Service &producer);
40 static void generateVideoProxy(Mlt::Producer &producer,
42 ScanMode scanMode = Automatic,
43 const QPoint &aspectRatio = QPoint(),
45 static void generateImageProxy(Mlt::Producer &producer,
bool replace =
true);
46 static bool filterXML(QString &xml, QString root);
47 static bool fileExists(Mlt::Producer &producer);
48 static bool filePending(Mlt::Producer &producer);
49 static bool isValidImage(Mlt::Producer &producer);
50 static bool isValidVideo(Mlt::Producer producer);
51 static bool generateIfNotExists(Mlt::Producer &producer,
bool replace =
true);
52 static const char *videoFilenameExtension();
53 static const char *pendingVideoExtension();
54 static const char *imageFilenameExtension();
55 static const char *pendingImageExtension();
56 static int resolution();
57 static void generateIfNotExistsAll(Mlt::Producer &producer);
58 static bool removePending();
59 static QString GoProProxyFilePath(
const QString &resource);
60 static QString DJIProxyFilePath(
const QString &resource);