MythTV  master
Classes | Macros | Functions | Variables
mytharchivehelper.cpp File Reference
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <sys/wait.h>
#include <unistd.h>
#include <QtGlobal>
#include <QApplication>
#include <QDir>
#include <QDomElement>
#include <QFile>
#include <QImage>
#include <QMutex>
#include <QMutexLocker>
#include <QTextStream>
#include <mythconfig.h>
#include <libmyth/mythcontext.h>
#include <libmythbase/exitcodes.h>
#include <libmythbase/mythcommandlineparser.h>
#include <libmythbase/mythcoreutil.h>
#include <libmythbase/mythdate.h>
#include <libmythbase/mythdb.h>
#include <libmythbase/mythdirs.h>
#include <libmythbase/mythlogging.h>
#include <libmythbase/mythmiscutil.h>
#include <libmythbase/mythpluginexport.h>
#include <libmythbase/mythsystemlegacy.h>
#include <libmythbase/mythversion.h>
#include <libmythbase/programinfo.h>
#include <libmythtv/mythavutil.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/imgutils.h>
#include "external/pxsup2dast.h"
#include "../mytharchive/archiveutil.h"
#include "../mytharchive/remoteavformatcontext.h"
Include dependency graph for mytharchivehelper.cpp:

Go to the source code of this file.

Classes

class  NativeArchive
 
class  MythArchiveHelperCommandLineParser
 

Macros

#define QT_ENDL   Qt::endl
 

Functions

static bool createISOImage (QString &sourceDirectory)
 
static int burnISOImage (int mediaType, bool bEraseDVDRW, bool nativeFormat)
 
static int doBurnDVD (int mediaType, bool bEraseDVDRW, bool nativeFormat)
 
static QString fixFilename (const QString &filename)
 
static void clearArchiveTable (void)
 
static int doNativeArchive (const QString &jobFile)
 
static int doImportArchive (const QString &inFile, int chanID)
 
static int grabThumbnail (const QString &inFile, const QString &thumbList, const QString &outFile, int frameCount)
 
static int64_t getFrameCount (AVFormatContext *inputFC, int vid_id)
 
static int64_t getCutFrames (const QString &filename, int64_t lastFrame)
 
static int64_t getFrameCount (const QString &filename, float fps)
 
static int getFileInfo (const QString &inFile, const QString &outFile, int lenMethod)
 
static int getDBParamters (const QString &outFile)
 
static int isRemote (const QString &filename)
 
static int main_local (int argc, char **argv)
 
int main (int argc, char **argv)
 

Variables

static const QRegularExpression badChars { R"((/|\\|:|'|"|\?|\|))" }
 

Macro Definition Documentation

◆ QT_ENDL

#define QT_ENDL   Qt::endl

Definition at line 82 of file mytharchivehelper.cpp.

Function Documentation

◆ createISOImage()

static bool createISOImage ( QString &  sourceDirectory)
static

Definition at line 141 of file mytharchivehelper.cpp.

Referenced by NativeArchive::doNativeArchive().

◆ burnISOImage()

static int burnISOImage ( int  mediaType,
bool  bEraseDVDRW,
bool  nativeFormat 
)
static

Definition at line 165 of file mytharchivehelper.cpp.

Referenced by doBurnDVD(), and NativeArchive::doNativeArchive().

◆ doBurnDVD()

static int doBurnDVD ( int  mediaType,
bool  bEraseDVDRW,
bool  nativeFormat 
)
static

Definition at line 223 of file mytharchivehelper.cpp.

Referenced by main_local().

◆ fixFilename()

static QString fixFilename ( const QString &  filename)
static

◆ clearArchiveTable()

static void clearArchiveTable ( void  )
static

Definition at line 1517 of file mytharchivehelper.cpp.

Referenced by doNativeArchive().

◆ doNativeArchive()

static int doNativeArchive ( const QString &  jobFile)
static

Definition at line 1526 of file mytharchivehelper.cpp.

Referenced by main_local().

◆ doImportArchive()

static int doImportArchive ( const QString &  inFile,
int  chanID 
)
static

Definition at line 1549 of file mytharchivehelper.cpp.

Referenced by main_local().

◆ grabThumbnail()

static int grabThumbnail ( const QString &  inFile,
const QString &  thumbList,
const QString &  outFile,
int  frameCount 
)
static

Definition at line 1555 of file mytharchivehelper.cpp.

Referenced by main_local().

◆ getFrameCount() [1/2]

static int64_t getFrameCount ( AVFormatContext *  inputFC,
int  vid_id 
)
static

Definition at line 1766 of file mytharchivehelper.cpp.

Referenced by getFileInfo().

◆ getCutFrames()

static int64_t getCutFrames ( const QString &  filename,
int64_t  lastFrame 
)
static

Definition at line 1791 of file mytharchivehelper.cpp.

Referenced by getFileInfo().

◆ getFrameCount() [2/2]

static int64_t getFrameCount ( const QString &  filename,
float  fps 
)
static

Definition at line 1857 of file mytharchivehelper.cpp.

◆ getFileInfo()

static int getFileInfo ( const QString &  inFile,
const QString &  outFile,
int  lenMethod 
)
static

Definition at line 1909 of file mytharchivehelper.cpp.

Referenced by main_local().

◆ getDBParamters()

static int getDBParamters ( const QString &  outFile)
static

Definition at line 2206 of file mytharchivehelper.cpp.

Referenced by main_local().

◆ isRemote()

static int isRemote ( const QString &  filename)
static

Definition at line 2232 of file mytharchivehelper.cpp.

Referenced by main_local().

◆ main_local()

static int main_local ( int  argc,
char **  argv 
)
static

Definition at line 2370 of file mytharchivehelper.cpp.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 2574 of file mytharchivehelper.cpp.

Variable Documentation

◆ badChars

const QRegularExpression badChars { R"((/|\\|:|'|"|\?|\|))" }
static

Definition at line 379 of file mytharchivehelper.cpp.

Referenced by fixFilename(), and NetworkControlClient::readClient().