diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-26 23:10:57 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-12-26 23:10:57 +0100 |
commit | 67c82c97dfcfc68d4bd71f5773d21c34c8733c83 (patch) | |
tree | fe3b9b22293bb5c19eef4b44d30c8cde9b32057b /src/SubchannelSource.cpp | |
parent | 91d3331d467c05d673f965b9f6eb8d33715df2b7 (diff) | |
download | dabmod-67c82c97dfcfc68d4bd71f5773d21c34c8733c83.tar.gz dabmod-67c82c97dfcfc68d4bd71f5773d21c34c8733c83.tar.bz2 dabmod-67c82c97dfcfc68d4bd71f5773d21c34c8733c83.zip |
Use ref instead of pointer for subchannel sources
Diffstat (limited to 'src/SubchannelSource.cpp')
-rw-r--r-- | src/SubchannelSource.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/SubchannelSource.cpp b/src/SubchannelSource.cpp index f4b6b55..7632de5 100644 --- a/src/SubchannelSource.cpp +++ b/src/SubchannelSource.cpp @@ -59,7 +59,7 @@ #define P24 0xffffffff -const std::vector<PuncturingRule>& SubchannelSource::get_rules() +const std::vector<PuncturingRule>& SubchannelSource::get_rules() const { return d_puncturing_rules; } @@ -635,18 +635,18 @@ SubchannelSource::SubchannelSource(eti_STC &stc) : } } -size_t SubchannelSource::startAddress() +size_t SubchannelSource::startAddress() const { return d_start_address; } -size_t SubchannelSource::framesize() +size_t SubchannelSource::framesize() const { return d_framesize; } -size_t SubchannelSource::framesizeCu() +size_t SubchannelSource::framesizeCu() const { size_t framesizeCu = 0; @@ -1003,25 +1003,25 @@ size_t SubchannelSource::framesizeCu() } -size_t SubchannelSource::bitrate() +size_t SubchannelSource::bitrate() const { return d_framesize / 3; } -size_t SubchannelSource::protection() +size_t SubchannelSource::protection() const { return d_protection; } -size_t SubchannelSource::protectionForm() +size_t SubchannelSource::protectionForm() const { return (d_protection >> 5) & 1; } -size_t SubchannelSource::protectionLevel() +size_t SubchannelSource::protectionLevel() const { if (protectionForm()) { // Long form return (d_protection & 0x3) + 1; @@ -1030,7 +1030,7 @@ size_t SubchannelSource::protectionLevel() } -size_t SubchannelSource::protectionOption() +size_t SubchannelSource::protectionOption() const { if (protectionForm()) { // Long form return (d_protection >> 2) & 0x7; |