MythTV  master
Macros | Functions
channelutil.cpp File Reference
#include <algorithm>
#include <cstdint>
#include <set>
#include <QFile>
#include <QHash>
#include <QImage>
#include <QReadWriteLock>
#include <QRegExp>
#include <utility>
#include "channelutil.h"
#include "mythdb.h"
#include "dvbtables.h"
#include "mythmiscutil.h"
#include "HLSReader.h"
Include dependency graph for channelutil.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("ChanUtil: ")
 

Functions

static uint get_dtv_multiplex (uint db_source_id, const QString &sistandard, uint64_t frequency, uint transport_id, uint network_id, signed char polarity)
 
static uint insert_dtv_multiplex (int db_source_id, const QString &sistandard, uint64_t frequency, const QString &modulation, int transport_id, int network_id, int symbol_rate, signed char bandwidth, signed char polarity, signed char inversion, signed char trans_mode, const QString &inner_FEC, const QString &constellation, signed char hierarchy, const QString &hp_code_rate, const QString &lp_code_rate, const QString &guard_interval, const QString &mod_sys, const QString &rolloff)
 
static void handle_transport_desc (vector< uint > &muxes, const MPEGDescriptor &desc, uint sourceid, uint tsid, uint netid)
 
static bool lt_pidcache (const pid_cache_item_t &a, const pid_cache_item_t &b)
 
static QStringList get_valid_recorder_list (uint chanid)
 Returns list of the recorders that have chanid in their sources. More...
 
static QStringList get_valid_recorder_list (const QString &channum)
 Returns list of the recorders that have channum in their sources. More...
 
static uint get_max_chanid (uint sourceid)
 
static bool chanid_available (uint chanid)
 
bool lt_callsign (const ChannelInfo &a, const ChannelInfo &b)
 
bool lt_smart (const ChannelInfo &a, const ChannelInfo &b)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("ChanUtil: ")

Definition at line 21 of file channelutil.cpp.

Function Documentation

◆ get_dtv_multiplex()

static uint get_dtv_multiplex ( uint  db_source_id,
const QString &  sistandard,
uint64_t  frequency,
uint  transport_id,
uint  network_id,
signed char  polarity 
)
static

Definition at line 25 of file channelutil.cpp.

Referenced by insert_dtv_multiplex().

◆ insert_dtv_multiplex()

static uint insert_dtv_multiplex ( int  db_source_id,
const QString &  sistandard,
uint64_t  frequency,
const QString &  modulation,
int  transport_id,
int  network_id,
int  symbol_rate,
signed char  bandwidth,
signed char  polarity,
signed char  inversion,
signed char  trans_mode,
const QString &  inner_FEC,
const QString &  constellation,
signed char  hierarchy,
const QString &  hp_code_rate,
const QString &  lp_code_rate,
const QString &  guard_interval,
const QString &  mod_sys,
const QString &  rolloff 
)
static

Definition at line 78 of file channelutil.cpp.

Referenced by ChannelUtil::CreateMultiplex().

◆ handle_transport_desc()

static void handle_transport_desc ( vector< uint > &  muxes,
const MPEGDescriptor desc,
uint  sourceid,
uint  tsid,
uint  netid 
)
static

Definition at line 279 of file channelutil.cpp.

Referenced by ChannelUtil::CreateMultiplexes().

◆ lt_pidcache()

static bool lt_pidcache ( const pid_cache_item_t a,
const pid_cache_item_t b 
)
static

Definition at line 844 of file channelutil.cpp.

Referenced by ChannelUtil::GetCachedPids(), and ChannelUtil::SaveCachedPids().

◆ get_valid_recorder_list() [1/2]

get_valid_recorder_list ( uint  chanid)
static

Returns list of the recorders that have chanid in their sources.

Parameters
chanidChannel ID of channel we are querying recorders for.
Returns
List of inputid's for recorders with channel.

Definition at line 1016 of file channelutil.cpp.

Referenced by ChannelUtil::GetValidRecorderList().

◆ get_valid_recorder_list() [2/2]

get_valid_recorder_list ( const QString &  channum)
static

Returns list of the recorders that have channum in their sources.

Parameters
channumChannel "number" we are querying recorders for.
Returns
List of inputid's for recorders with channel.

Definition at line 1050 of file channelutil.cpp.

◆ get_max_chanid()

static uint get_max_chanid ( uint  sourceid)
static

Definition at line 1391 of file channelutil.cpp.

Referenced by ChannelUtil::CreateChanID().

◆ chanid_available()

static bool chanid_available ( uint  chanid)
static

Definition at line 1412 of file channelutil.cpp.

Referenced by ChannelUtil::CreateChanID().

◆ lt_callsign()

bool lt_callsign ( const ChannelInfo a,
const ChannelInfo b 
)
inline

Definition at line 2154 of file channelutil.cpp.

Referenced by lt_smart(), and ChannelUtil::SortChannels().

◆ lt_smart()

bool lt_smart ( const ChannelInfo a,
const ChannelInfo b 
)
inline

Definition at line 2159 of file channelutil.cpp.

Referenced by ChannelUtil::GetNearestChannel(), and ChannelUtil::SortChannels().