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

Go to the source code of this file.

Classes

class  NativeArchive
 
class  MythArchiveHelperCommandLineParser
 

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)
 
int main (int argc, char **argv)
 

Variables

static QRegExp badChars = QRegExp("(/|\\\\|:|\'|\"|\\?|\\|)")
 

Function Documentation

◆ createISOImage()

static bool createISOImage ( QString &  sourceDirectory)
static

◆ burnISOImage()

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

◆ doBurnDVD()

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

Definition at line 215 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ fixFilename()

static QString fixFilename ( const QString &  filename)
static

◆ clearArchiveTable()

static void clearArchiveTable ( void  )
static

◆ doNativeArchive()

static int doNativeArchive ( const QString &  jobFile)
static

Definition at line 1521 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ doImportArchive()

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

Definition at line 1544 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ grabThumbnail()

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

Definition at line 1550 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ getFrameCount() [1/2]

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

Definition at line 1757 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by getFileInfo().

◆ getCutFrames()

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

Definition at line 1778 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by getFileInfo().

◆ getFrameCount() [2/2]

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

◆ getFileInfo()

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

Definition at line 1895 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ getDBParamters()

static int getDBParamters ( const QString &  outFile)
static

Definition at line 2182 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ isRemote()

static int isRemote ( const QString &  filename)
static

Definition at line 2208 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ badChars

QRegExp badChars = QRegExp("(/|\\\\|:|\'|\"|\\?|\\|)")
static

Definition at line 371 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by fixFilename().