Add ATSC support to muxbuilder
This commit is contained in:
parent
510a3919de
commit
4673252346
2 changed files with 27 additions and 0 deletions
|
@ -36,3 +36,4 @@ EOF
|
|||
find $1/dvb-s -type f | sort | xargs ./muxbuilder DVBS
|
||||
find $1/dvb-t -type f | sort | xargs ./muxbuilder DVBT
|
||||
find $1/dvb-c -type f | sort | xargs ./muxbuilder DVBC
|
||||
find $1/atsc -type f | sort | xargs ./muxbuilder ATSC
|
||||
|
|
|
@ -162,6 +162,25 @@ dvb_c_config(const char *l)
|
|||
}
|
||||
|
||||
|
||||
static void
|
||||
atsc_config(const char *l)
|
||||
{
|
||||
unsigned long freq;
|
||||
char modulation[20];
|
||||
int r;
|
||||
|
||||
r = sscanf(l, "%lu %s",
|
||||
&freq, modulation);
|
||||
|
||||
if(r != 2)
|
||||
return;
|
||||
|
||||
printf("\t{ "
|
||||
".freq = %lu, .constellation = %s},\n",
|
||||
freq, str2str(modulation, qamtab, "constellations"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
@ -259,6 +278,7 @@ static const struct {
|
|||
{"gr", "Greece"},
|
||||
{"hk", "Hong Kong"},
|
||||
{"hr", "Croatia"},
|
||||
{"hu", "Hungary"},
|
||||
{"is", "Iceland"},
|
||||
{"it", "Italy"},
|
||||
{"lu", "Luxembourg"},
|
||||
|
@ -271,6 +291,7 @@ static const struct {
|
|||
{"sk", "Slovakia"},
|
||||
{"tw", "Taiwan"},
|
||||
{"uk", "United Kingdom"},
|
||||
{"us", "United States"},
|
||||
{"vn", "Vietnam"},
|
||||
};
|
||||
|
||||
|
@ -283,6 +304,7 @@ tldcode2longname(const char *tld)
|
|||
return tldlist[i].name;
|
||||
|
||||
fprintf(stderr, "Unable to translate tld %s\n", tld);
|
||||
fprintf(stderr, "Exiting. Output is incomplete\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -382,6 +404,10 @@ scan_file(char *fname)
|
|||
gotcomment = 1;
|
||||
break;
|
||||
|
||||
case 'A':
|
||||
atsc_config(line + 1);
|
||||
break;
|
||||
|
||||
case 'C':
|
||||
dvb_c_config(line + 1);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue