MythTV  master
Functions | Variables
mythtv/programs/mythtranscode/main.cpp File Reference
#include <cerrno>
#include <fcntl.h>
#include <fstream>
#include <iostream>
#include <QCoreApplication>
#include <QDir>
#include <utility>
#include "mythmiscutil.h"
#include "exitcodes.h"
#include "programinfo.h"
#include "jobqueue.h"
#include "mythcontext.h"
#include "mythdb.h"
#include "mythversion.h"
#include "mythdate.h"
#include "transcode.h"
#include "mpeg2fix.h"
#include "remotefile.h"
#include "mythtranslation.h"
#include "loggingserver.h"
#include "mythlogging.h"
#include "commandlineparser.h"
#include "recordinginfo.h"
#include "signalhandling.h"
#include "HLS/httplivestream.h"
#include "cleanupguard.h"
Include dependency graph for mythtv/programs/mythtranscode/main.cpp:

Go to the source code of this file.

Functions

static void CompleteJob (int jobID, ProgramInfo *pginfo, bool useCutlist, frm_dir_map_t *deleteMap, int &exitCode, int resultCode, bool forceDelete)
 
static void UpdatePositionMap (frm_pos_map_t &posMap, frm_pos_map_t &durMap, const QString &mapfile, ProgramInfo *pginfo)
 
static int BuildKeyframeIndex (MPEG2fixup *m2f, QString &infile, frm_pos_map_t &posMap, frm_pos_map_t &durMap, int jobID)
 
static void UpdateJobQueue (float percent_done)
 
static int CheckJobQueue ()
 
static int QueueTranscodeJob (ProgramInfo *pginfo, const QString &profile, QString hostname, bool usecutlist)
 
int main (int argc, char *argv[])
 
static int transUnlink (const QString &filename, ProgramInfo *pginfo)
 
static uint64_t ComputeNewBookmark (uint64_t oldBookmark, frm_dir_map_t *deleteMap)
 
static uint64_t ReloadBookmark (ProgramInfo *pginfo)
 
static void WaitToDelete (ProgramInfo *pginfo)
 

Variables

static int glbl_jobID = -1
 
static QString recorderOptions = ""
 

Function Documentation

◆ CompleteJob()

static void CompleteJob ( int  jobID,
ProgramInfo pginfo,
bool  useCutlist,
frm_dir_map_t deleteMap,
int &  exitCode,
int  resultCode,
bool  forceDelete 
)
static

Definition at line 862 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by main().

◆ UpdatePositionMap()

static void UpdatePositionMap ( frm_pos_map_t posMap,
frm_pos_map_t durMap,
const QString &  mapfile,
ProgramInfo pginfo 
)
static

Definition at line 41 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by main().

◆ BuildKeyframeIndex()

static int BuildKeyframeIndex ( MPEG2fixup m2f,
QString &  infile,
frm_pos_map_t posMap,
frm_pos_map_t durMap,
int  jobID 
)
static

Definition at line 72 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by main().

◆ UpdateJobQueue()

static void UpdateJobQueue ( float  percent_done)
static

Definition at line 93 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by main().

◆ CheckJobQueue()

static int CheckJobQueue ( )
static

Definition at line 100 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by main().

◆ QueueTranscodeJob()

static int QueueTranscodeJob ( ProgramInfo pginfo,
const QString &  profile,
QString  hostname,
bool  usecutlist 
)
static

Definition at line 110 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 145 of file mythtv/programs/mythtranscode/main.cpp.

◆ transUnlink()

static int transUnlink ( const QString &  filename,
ProgramInfo pginfo 
)
static

Definition at line 745 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by CompleteJob().

◆ ComputeNewBookmark()

static uint64_t ComputeNewBookmark ( uint64_t  oldBookmark,
frm_dir_map_t deleteMap 
)
static

Definition at line 768 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by CompleteJob().

◆ ReloadBookmark()

static uint64_t ReloadBookmark ( ProgramInfo pginfo)
static

Definition at line 806 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by CompleteJob().

◆ WaitToDelete()

static void WaitToDelete ( ProgramInfo pginfo)
static

Definition at line 824 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by CompleteJob().

Variable Documentation

◆ glbl_jobID

int glbl_jobID = -1
static

Definition at line 38 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by CheckJobQueue(), main(), and UpdateJobQueue().

◆ recorderOptions

QString recorderOptions = ""
static

Definition at line 39 of file mythtv/programs/mythtranscode/main.cpp.

Referenced by main().