From e4396c73c894c4730d4d28b3caefc26ce41cdd4a Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 20 Feb 2018 19:00:22 +0100 Subject: Rework other_ensemble to support OE=1 in FIG0/24 --- src/MuxElements.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/MuxElements.h') diff --git a/src/MuxElements.h b/src/MuxElements.h index b5d1285..6b8b718 100644 --- a/src/MuxElements.h +++ b/src/MuxElements.h @@ -196,6 +196,7 @@ class DabComponent; class DabSubchannel; class LinkageSet; struct FrequencyInformation; +struct ServiceOtherEnsembleInfo; using vec_sp_component = std::vector >; using vec_sp_service = std::vector >; @@ -248,6 +249,7 @@ class dabEnsemble : public RemoteControllable { std::vector > clusters; std::vector > linkagesets; std::vector > frequency_information; + std::vector service_other_ensemble; }; @@ -420,9 +422,6 @@ class DabService : public RemoteControllable uint16_t ASu = 0; std::vector clusters; - // Ensembles in which this service is also available, used for FIG0/24 - std::vector other_ensembles; - subchannel_type_t getType(const std::shared_ptr ensemble) const; bool isProgramme(const std::shared_ptr& ensemble) const; unsigned char nbComponent(const vec_sp_component& components) const; @@ -437,6 +436,13 @@ class DabService : public RemoteControllable virtual const std::string get_parameter(const std::string& parameter) const; }; +/* Represent an entry for FIG0/24 */ +struct ServiceOtherEnsembleInfo { + uint32_t service_id = 0; + // Ensembles in which this service is also available + std::vector other_ensembles; +}; + enum class ServiceLinkType {DAB, FM, DRM, AMSS}; /* Represent one link inside a linkage set */ -- cgit v1.2.3