src/libtsduck/dtv/tsLNB.cpp
uint64_t ts::LNB::intermediateFrequency (uint64_t satellite_frequency) const
{
    if (useHighBand (satellite_frequency)) {
        return satellite_frequency - _high_frequency;
    }
    else if (satellite_frequency < _low_frequency) {
        return _low_frequency - satellite_frequency;
    }
    else {
        return satellite_frequency - _low_frequency;
    }
}
//----------------------------------------------------------------------------
// Compute the intermediate frequency from a satellite carrier frequency.
// The satellite carrier frequency is used to carry the signal from the
// satellite to the dish. This value is public and is stored in the NIT
// for instance. The intermediate frequency is used to carry the signal
// from the dish's LNB to the receiver. The way this frequency is
// computed depends on the characteristics of the LNB. The intermediate
// frequency is the one that is used by the tuner in the satellite receiver.
//----------------------------------------------------------------------------
Compute the intermediate frequency from a satellite carrier frequency.
The satellite carrier frequency is used to carry the signal from the
satellite to the dish. This value is public and is stored in the NIT
for instance. The intermediate frequency is used to carry the signal
from the dish's LNB to the receiver. The way this frequency is
computed depends on the characteristics of the LNB. The intermediate
frequency is the one that is used by the tuner in the satellite receiver.
Compute the intermediate frequency from a satellite carrier frequency . The satellite carrier frequency is used to carry the signal from the satellite to the dish . This value is public and is stored in the NIT for instance . The intermediate frequency is used to carry the signal from the dish ' s LNB to the receiver . The way this frequency is computed depends on the characteristics of the LNB . The intermediate frequency is the one that is used by the tuner in the satellite receiver .
uint64_t ts::LNB::intermediateFrequency (uint64_t satellite_frequency) const
{
    if (useHighBand (satellite_frequency)) {
        return satellite_frequency - _high_frequency;
    }
    else if (satellite_frequency < _low_frequency) {
        return _low_frequency - satellite_frequency;
    }
    else {
        return satellite_frequency - _low_frequency;
    }
}
uint64_t ts :: LNB :: intermediateFrequency ( uint64_t satellite_frequency ) const { if ( useHighBand ( satellite_frequency ) ) { return satellite_frequency - _high_frequency ; } else if ( satellite_frequency < _low_frequency ) { return _low_frequency - satellite_frequency ; } else { return satellite_frequency - _low_frequency ; } }
Compute the intermediate frequency from a satellite carrier frequency.
Compute the intermediate frequency from a satellite carrier frequency .