MythTV  master
Macros | Functions
tv_rec.cpp File Reference
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sched.h>
#include <thread>
#include <utility>
#include "libmythbase/compat.h"
#include "libmythbase/mythconfig.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdate.h"
#include "libmythbase/mythdb.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythrandom.h"
#include "libmythbase/programinfo.h"
#include "libmythbase/remoteutil.h"
#include "libmythbase/storagegroup.h"
#include "cardutil.h"
#include "channelgroup.h"
#include "eitscanner.h"
#include "io/mythmediabuffer.h"
#include "jobqueue.h"
#include "livetvchain.h"
#include "mpeg/atscstreamdata.h"
#include "mpeg/atsctables.h"
#include "mpeg/dvbstreamdata.h"
#include "mythsystemevent.h"
#include "osd.h"
#include "previewgeneratorqueue.h"
#include "recorders/channelbase.h"
#include "recorders/dtvchannel.h"
#include "recorders/dtvrecorder.h"
#include "recorders/dtvsignalmonitor.h"
#include "recorders/v4lchannel.h"
#include "recorders/vboxutils.h"
#include "recordingprofile.h"
#include "recordingrule.h"
#include "sourceutil.h"
#include "tv_rec.h"
#include "tvremoteutil.h"
#include "recorders/dvbchannel.h"
Include dependency graph for tv_rec.cpp:

Go to the source code of this file.

Macros

#define DEBUG_CHANNEL_PREFIX   0
 set to 1 to channel prefixing More...
 
#define LOC   QString("TVRec[%1]: ").arg(m_inputId)
 
#define LOC2   QString("TVRec[%1]: ").arg(inputid)
 
#define TRANSITION(ASTATE, BSTATE)   ((m_internalState == (ASTATE)) && (m_desiredNextState == (BSTATE)))
 
#define SET_NEXT()   do { nextState = m_desiredNextState; changed = true; } while(false)
 
#define SET_LAST()   do { nextState = m_internalState; changed = true; } while(false)
 

Functions

static bool is_dishnet_eit (uint inputid)
 
static int init_jobs (const RecordingInfo *rec, RecordingProfile &profile, bool on_host, bool transcode_bfr_comm, bool on_line_comm)
 
static void apply_broken_dvb_driver_crc_hack (ChannelBase *, MPEGStreamData *)
 
static std::chrono::seconds eit_start_rand (uint inputId, std::chrono::seconds eitTransportTimeout)
 
static bool get_use_eit (uint inputid)
 
static int get_highest_input (void)
 
static void GetPidsToCache (DTVSignalMonitor *dtvMon, pid_cache_t &pid_cache)
 
static bool ApplyCachedPids (DTVSignalMonitor *dtvMon, const DTVChannel *channel)
 
static QString add_spacer (const QString &channel, const QString &spacer)
 Adds the spacer before the last character in chan. More...
 

Macro Definition Documentation

◆ DEBUG_CHANNEL_PREFIX

#define DEBUG_CHANNEL_PREFIX   0

set to 1 to channel prefixing

Definition at line 47 of file tv_rec.cpp.

◆ LOC

#define LOC   QString("TVRec[%1]: ").arg(m_inputId)

Definition at line 49 of file tv_rec.cpp.

◆ LOC2

#define LOC2   QString("TVRec[%1]: ").arg(inputid)

Definition at line 50 of file tv_rec.cpp.

◆ TRANSITION

#define TRANSITION (   ASTATE,
  BSTATE 
)    ((m_internalState == (ASTATE)) && (m_desiredNextState == (BSTATE)))

Definition at line 1031 of file tv_rec.cpp.

◆ SET_NEXT

#define SET_NEXT ( )    do { nextState = m_desiredNextState; changed = true; } while(false)

Definition at line 1033 of file tv_rec.cpp.

◆ SET_LAST

#define SET_LAST ( )    do { nextState = m_internalState; changed = true; } while(false)

Definition at line 1034 of file tv_rec.cpp.

Function Documentation

◆ is_dishnet_eit()

static bool is_dishnet_eit ( uint  inputid)
static

Definition at line 1287 of file tv_rec.cpp.

Referenced by TVRec::TuningSignalCheck().

◆ init_jobs()

static int init_jobs ( const RecordingInfo rec,
RecordingProfile profile,
bool  on_host,
bool  transcode_bfr_comm,
bool  on_line_comm 
)
static

Definition at line 4114 of file tv_rec.cpp.

Referenced by TVRec::InitAutoRunJobs().

◆ apply_broken_dvb_driver_crc_hack()

static void apply_broken_dvb_driver_crc_hack ( ChannelBase c,
MPEGStreamData s 
)
static

Definition at line 4924 of file tv_rec.cpp.

Referenced by TVRec::SetupDTVSignalMonitor().

◆ eit_start_rand()

static std::chrono::seconds eit_start_rand ( uint  inputId,
std::chrono::seconds  eitTransportTimeout 
)
static

◆ get_use_eit()

static bool get_use_eit ( uint  inputid)
static

Definition at line 1267 of file tv_rec.cpp.

Referenced by TVRec::run(), and TVRec::TuningSignalCheck().

◆ get_highest_input()

static int get_highest_input ( void  )
static

Definition at line 1308 of file tv_rec.cpp.

Referenced by eit_start_rand().

◆ GetPidsToCache()

static void GetPidsToCache ( DTVSignalMonitor dtvMon,
pid_cache_t pid_cache 
)
static

Definition at line 1848 of file tv_rec.cpp.

Referenced by TVRec::TeardownSignalMonitor().

◆ ApplyCachedPids()

static bool ApplyCachedPids ( DTVSignalMonitor dtvMon,
const DTVChannel channel 
)
static

Definition at line 1865 of file tv_rec.cpp.

Referenced by TVRec::SetupDTVSignalMonitor().

◆ add_spacer()

QString add_spacer ( const QString &  channel,
const QString &  spacer 
)
static

Adds the spacer before the last character in chan.

Definition at line 2324 of file tv_rec.cpp.

Referenced by TVRec::CheckChannelPrefix().