MythTV  master
Macros | Functions | Variables
frequencytables.cpp File Reference
#include <utility>
#include <QMutex>
#include "libmythbase/compat.h"
#include "frequencies.h"
#include "frequencytables.h"
#include "channelutil.h"
Include dependency graph for frequencytables.cpp:

Go to the source code of this file.

Macros

#define FREQ(A, B, C, D, E, F, G, H, I)
 

Functions

static void init_freq_tables (freq_table_map_t &)
 
static freq_table_list_t get_matching_freq_tables_internal (const QString &format, const QString &modulation, const QString &country)
 
static bool init_freq_tables (void)
 
bool teardown_frequency_tables (void)
 
freq_table_list_t get_matching_freq_tables (const QString &format, const QString &modulation, const QString &country)
 
long long get_center_frequency (const QString &format, const QString &modulation, const QString &country, int freqid)
 
int get_closest_freqid (const QString &format, QString modulation, const QString &country, long long centerfreq)
 
static constexpr uint64_t EIA_542_FREQUENCY (uint64_t bandwidth, uint64_t offset, uint64_t channel)
 

Variables

static bool frequencies_initialized = false
 
static QMutex frequencies_lock
 
static freq_table_map_t frequencies
 
static constexpr uint8_t US_MAX_CHAN { 158 }
 

Macro Definition Documentation

◆ FREQ

#define FREQ (   A,
  B,
  C,
  D,
  E,
  F,
  G,
  H,
 
)
Value:
fmap[QString("atsc_%1_us%2").arg(A,B)] = \
new FrequencyTable((C)+(D), E, F, G, H, I);

Definition at line 317 of file frequencytables.cpp.

Function Documentation

◆ init_freq_tables() [1/2]

static void init_freq_tables ( freq_table_map_t fmap)
static

◆ get_matching_freq_tables_internal()

static freq_table_list_t get_matching_freq_tables_internal ( const QString &  format,
const QString &  modulation,
const QString &  country 
)
static

◆ init_freq_tables() [2/2]

static bool init_freq_tables ( void  )
static

Definition at line 204 of file frequencytables.cpp.

◆ teardown_frequency_tables()

bool teardown_frequency_tables ( void  )

Definition at line 214 of file frequencytables.cpp.

Referenced by ChannelScanSM::~ChannelScanSM().

◆ get_matching_freq_tables()

freq_table_list_t get_matching_freq_tables ( const QString &  format,
const QString &  modulation,
const QString &  country 
)

◆ get_center_frequency()

long long get_center_frequency ( const QString &  format,
const QString &  modulation,
const QString &  country,
int  freqid 
)

Definition at line 262 of file frequencytables.cpp.

Referenced by get_atsc_stuff().

◆ get_closest_freqid()

int get_closest_freqid ( const QString &  format,
QString  modulation,
const QString &  country,
long long  centerfreq 
)

Definition at line 285 of file frequencytables.cpp.

◆ EIA_542_FREQUENCY()

static constexpr uint64_t EIA_542_FREQUENCY ( uint64_t  bandwidth,
uint64_t  offset,
uint64_t  channel 
)
staticconstexpr

Definition at line 324 of file frequencytables.cpp.

Referenced by init_freq_tables().

Variable Documentation

◆ frequencies_initialized

bool frequencies_initialized = false
static

Definition at line 11 of file frequencytables.cpp.

Referenced by init_freq_tables(), and teardown_frequency_tables().

◆ frequencies_lock

QMutex frequencies_lock
static

◆ frequencies

freq_table_map_t frequencies
static

◆ US_MAX_CHAN

constexpr uint8_t US_MAX_CHAN { 158 }
staticconstexpr

Definition at line 322 of file frequencytables.cpp.

Referenced by init_freq_tables().

FrequencyTable
Definition: frequencytables.h:38
D
#define D(i, j)