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 "compat.h"
#include "previewgeneratorqueue.h"
#include "dtvsignalmonitor.h"
#include "recordingprofile.h"
#include "mythcorecontext.h"
#include "mythsystemevent.h"
#include "atscstreamdata.h"
#include "dvbstreamdata.h"
#include "recordingrule.h"
#include "channelgroup.h"
#include "storagegroup.h"
#include "tvremoteutil.h"
#include "dtvrecorder.h"
#include "livetvchain.h"
#include "programinfo.h"
#include "mythlogging.h"
#include "channelbase.h"
#include "atsctables.h"
#include "dtvchannel.h"
#include "eitscanner.h"
#include "mythconfig.h"
#include "remoteutil.h"
#include "ringbuffer.h"
#include "v4lchannel.h"
#include "cardutil.h"
#include "jobqueue.h"
#include "mythdb.h"
#include "tv_rec.h"
#include "mythdate.h"
#include "osd.h"
#include "../vboxutils.h"
#include "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 int eit_start_rand (int eitTransportTimeout)
 
static bool get_use_eit (uint inputid)
 
static int num_inputs (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 44 of file tv_rec.cpp.

◆ LOC

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

Definition at line 46 of file tv_rec.cpp.

◆ LOC2

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

Definition at line 47 of file tv_rec.cpp.

◆ TRANSITION

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

Definition at line 982 of file tv_rec.cpp.

◆ SET_NEXT

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

Definition at line 984 of file tv_rec.cpp.

◆ SET_LAST

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

Definition at line 985 of file tv_rec.cpp.

Function Documentation

◆ is_dishnet_eit()

static bool is_dishnet_eit ( uint  inputid)
static

Definition at line 1207 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 4050 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 4831 of file tv_rec.cpp.

Referenced by TVRec::SetupDTVSignalMonitor().

◆ eit_start_rand()

static int eit_start_rand ( int  eitTransportTimeout)
static

Definition at line 1247 of file tv_rec.cpp.

Referenced by TVRec::HandleStateChange(), TVRec::run(), and TVRec::TuningShutdowns().

◆ get_use_eit()

static bool get_use_eit ( uint  inputid)
static

Definition at line 1187 of file tv_rec.cpp.

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

◆ num_inputs()

static int num_inputs ( void  )
static

Definition at line 1227 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 1799 of file tv_rec.cpp.

Referenced by TVRec::TeardownSignalMonitor().

◆ ApplyCachedPids()

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

Definition at line 1816 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 2275 of file tv_rec.cpp.

Referenced by TVRec::CheckChannelPrefix().