summaryrefslogtreecommitdiffstats
path: root/src/fig/FIG0.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-07-18 22:48:41 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-07-18 22:48:41 +0200
commit0d8780510f504fc3606d703aebd4e5322d55c326 (patch)
tree8859705328aabff2a7875be3417fee5474a75ec8 /src/fig/FIG0.h
parent37ba86ca9323a888bda51fcbfdf348480499a9e2 (diff)
downloaddabmux-0d8780510f504fc3606d703aebd4e5322d55c326.tar.gz
dabmux-0d8780510f504fc3606d703aebd4e5322d55c326.tar.bz2
dabmux-0d8780510f504fc3606d703aebd4e5322d55c326.zip
Add FIG0/3 to FIB0
Diffstat (limited to 'src/fig/FIG0.h')
-rw-r--r--src/fig/FIG0.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/fig/FIG0.h b/src/fig/FIG0.h
index 625e2ae..3530e5f 100644
--- a/src/fig/FIG0.h
+++ b/src/fig/FIG0.h
@@ -74,12 +74,29 @@ class FIG0_2 : public IFIG
virtual FIG_rate repetition_rate(void) { return FIG_rate::A; }
virtual const int figtype(void) const { return 0; }
- virtual const int figextension(void) const { return 1; }
+ virtual const int figextension(void) const { return 2; }
private:
FIGRuntimeInformation *m_rti;
std::vector<std::shared_ptr<DabService> >::iterator serviceFIG0_2;
};
+// FIG type 0/3
+// The Extension 3 of FIG type 0 (FIG 0/3) gives additional information about
+// the service component description in packet mode.
+class FIG0_3 : public IFIG
+{
+ public:
+ FIG0_3(FIGRuntimeInformation* rti);
+ virtual size_t fill(uint8_t *buf, size_t max_size);
+ virtual FIG_rate repetition_rate(void) { return FIG_rate::A; }
+
+ virtual const int figtype(void) const { return 0; }
+ virtual const int figextension(void) const { return 3; }
+
+ private:
+ FIGRuntimeInformation *m_rti;
+};
+
#endif // __FIG0_H_