From d9b78bb885ff8ff0f8bf6dd8e28e657d0a277db8 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 17 Mar 2014 20:32:31 +0100 Subject: Explain the usage of these iterators --- src/DabMux.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/DabMux.cpp b/src/DabMux.cpp index bf5bf59..4c92d90 100644 --- a/src/DabMux.cpp +++ b/src/DabMux.cpp @@ -609,21 +609,23 @@ int main(int argc, char *argv[]) printOutputs(outputs); - - /* Each iteration of the main loop creates one ETI frame */ - - /* Used for FIG0/2 insertion */ + /* These iterators are used to fill the respective FIG. + * It is necessary to cycle through all the FIGs that have + * to be transmitted because they do not fit in a single + * FIB. + * + * ETSI EN 300 799 Clauses 5.2 and 8.1 + */ serviceProgFIG0_2 = ensemble->services.end(); serviceDataFIG0_2 = ensemble->services.end(); - componentProgFIG0_8 = ensemble->components.end(); componentDataFIG0_8 = ensemble->components.end(); serviceFIG0_17 = ensemble->services.end(); - - /* used for FIG0/1 insertion */ subchannelFIG0_1 = ensemble->subchannels.end(); + /* Each iteration of the main loop creates one ETI frame */ + for (currentFrame = 0; running; currentFrame++) { if ((limit > 0) && (currentFrame >= limit)) { break; -- cgit v1.2.3