MythTV  master
Macros | Functions | Variables
mythpreviewgen.cpp File Reference
#include <cerrno>
#include <csignal>
#include <cstdlib>
#include <fcntl.h>
#include <fstream>
#include <iostream>
#include <libgen.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <QtGlobal>
#include <QApplication>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QMap>
#include "libmyth/mythcontext.h"
#include "libmythbase/cleanupguard.h"
#include "libmythbase/compat.h"
#include "libmythbase/exitcodes.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdb.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythversion.h"
#include "libmythbase/programinfo.h"
#include "libmythbase/signalhandling.h"
#include "libmythbase/storagegroup.h"
#include "libmythtv/dbcheck.h"
#include "libmythtv/mythsystemevent.h"
#include "libmythtv/previewgenerator.h"
#include "mythpreviewgen_commandlineparser.h"
Include dependency graph for mythpreviewgen.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("MythPreviewGen: ")
 
#define LOC_WARN   QString("MythPreviewGen, Warning: ")
 
#define LOC_ERR   QString("MythPreviewGen, Error: ")
 

Functions

int preview_helper (uint chanid, QDateTime starttime, long long previewFrameNumber, std::chrono::seconds previewSeconds, const QSize previewSize, const QString &infile, const QString &outfile)
 
int main (int argc, char **argv)
 

Variables

static constexpr long UNUSED_FILENO { 5 }
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("MythPreviewGen: ")

Definition at line 45 of file mythpreviewgen.cpp.

◆ LOC_WARN

#define LOC_WARN   QString("MythPreviewGen, Warning: ")

Definition at line 46 of file mythpreviewgen.cpp.

◆ LOC_ERR

#define LOC_ERR   QString("MythPreviewGen, Error: ")

Definition at line 47 of file mythpreviewgen.cpp.

Function Documentation

◆ preview_helper()

int preview_helper ( uint  chanid,
QDateTime  starttime,
long long  previewFrameNumber,
std::chrono::seconds  previewSeconds,
const QSize  previewSize,
const QString &  infile,
const QString &  outfile 
)

Definition at line 66 of file mythpreviewgen.cpp.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 130 of file mythpreviewgen.cpp.

Variable Documentation

◆ UNUSED_FILENO

constexpr long UNUSED_FILENO { 5 }
staticconstexpr

Definition at line 51 of file mythpreviewgen.cpp.

Referenced by main().