MythTV  master
Macros | Functions | Variables
frequencytables.cpp File Reference
#include <utility>
#include <QMutex>
#include "frequencies.h"
#include "frequencytables.h"
#include "channelutil.h"
#include "compat.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)
 
#define US_MAX_CHAN   159
 
#define EIA_542_FREQUENCY(A, B, C)   ( ( (A) * ( 8 + (C) ) ) + (B) )
 

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)
 

Variables

static bool frequencies_initialized = false
 
static QMutex frequencies_lock
 
static freq_table_map_t frequencies
 

Macro Definition Documentation

◆ FREQ

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

◆ US_MAX_CHAN

#define US_MAX_CHAN   159

◆ EIA_542_FREQUENCY

#define EIA_542_FREQUENCY (   A,
  B,
 
)    ( ( (A) * ( 8 + (C) ) ) + (B) )

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 203 of file frequencytables.cpp.

◆ teardown_frequency_tables()

bool teardown_frequency_tables ( void  )

Definition at line 213 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 261 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 284 of file frequencytables.cpp.

Variable Documentation

◆ frequencies_initialized

bool frequencies_initialized = false
static

Definition at line 10 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