mirror of
https://github.com/mpv-player/mpv
synced 2024-12-30 02:52:10 +00:00
10l: huge amount of constant crap in data segment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18033 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a93707fd8f
commit
20674f6d49
@ -6,7 +6,7 @@
|
|||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* US broadcast */
|
/* US broadcast */
|
||||||
static struct CHANLIST ntsc_bcast[] = {
|
static const struct CHANLIST ntsc_bcast[] = {
|
||||||
{ "2", 55250 },
|
{ "2", 55250 },
|
||||||
{ "3", 61250 },
|
{ "3", 61250 },
|
||||||
{ "4", 67250 },
|
{ "4", 67250 },
|
||||||
@ -93,7 +93,7 @@ static struct CHANLIST ntsc_bcast[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* US cable */
|
/* US cable */
|
||||||
static struct CHANLIST ntsc_cable[] = {
|
static const struct CHANLIST ntsc_cable[] = {
|
||||||
{ "1", 73250 },
|
{ "1", 73250 },
|
||||||
{ "2", 55250 },
|
{ "2", 55250 },
|
||||||
{ "3", 61250 },
|
{ "3", 61250 },
|
||||||
@ -234,7 +234,7 @@ static struct CHANLIST ntsc_cable[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* US HRC */
|
/* US HRC */
|
||||||
static struct CHANLIST ntsc_hrc[] = {
|
static const struct CHANLIST ntsc_hrc[] = {
|
||||||
{ "1", 72000 },
|
{ "1", 72000 },
|
||||||
{ "2", 54000 },
|
{ "2", 54000 },
|
||||||
{ "3", 60000 },
|
{ "3", 60000 },
|
||||||
@ -377,7 +377,7 @@ static struct CHANLIST ntsc_hrc[] = {
|
|||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* JP broadcast */
|
/* JP broadcast */
|
||||||
static struct CHANLIST ntsc_bcast_jp[] = {
|
static const struct CHANLIST ntsc_bcast_jp[] = {
|
||||||
{ "1", 91250 },
|
{ "1", 91250 },
|
||||||
{ "2", 97250 },
|
{ "2", 97250 },
|
||||||
{ "3", 103250 },
|
{ "3", 103250 },
|
||||||
@ -445,7 +445,7 @@ static struct CHANLIST ntsc_bcast_jp[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* JP cable */
|
/* JP cable */
|
||||||
static struct CHANLIST ntsc_cable_jp[] = {
|
static const struct CHANLIST ntsc_cable_jp[] = {
|
||||||
{ "13", 109250 },
|
{ "13", 109250 },
|
||||||
{ "14", 115250 },
|
{ "14", 115250 },
|
||||||
{ "15", 121250 },
|
{ "15", 121250 },
|
||||||
@ -503,7 +503,7 @@ static struct CHANLIST ntsc_cable_jp[] = {
|
|||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* australia */
|
/* australia */
|
||||||
static struct CHANLIST pal_australia[] = {
|
static const struct CHANLIST pal_australia[] = {
|
||||||
{ "0", 46250 },
|
{ "0", 46250 },
|
||||||
{ "1", 57250 },
|
{ "1", 57250 },
|
||||||
{ "2", 64250 },
|
{ "2", 64250 },
|
||||||
@ -717,14 +717,14 @@ static struct CHANLIST pal_australia[] = {
|
|||||||
{ "68", 847250 }, \
|
{ "68", 847250 }, \
|
||||||
{ "69", 855250 }
|
{ "69", 855250 }
|
||||||
|
|
||||||
static struct CHANLIST europe_west[] = {
|
static const struct CHANLIST europe_west[] = {
|
||||||
FREQ_CCIR_I_III,
|
FREQ_CCIR_I_III,
|
||||||
FREQ_CCIR_SL_SH,
|
FREQ_CCIR_SL_SH,
|
||||||
FREQ_CCIR_H,
|
FREQ_CCIR_H,
|
||||||
FREQ_UHF
|
FREQ_UHF
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct CHANLIST europe_east[] = {
|
static const struct CHANLIST europe_east[] = {
|
||||||
FREQ_OIRT_I_III,
|
FREQ_OIRT_I_III,
|
||||||
FREQ_OIRT_SL_SH,
|
FREQ_OIRT_SL_SH,
|
||||||
FREQ_CCIR_I_III,
|
FREQ_CCIR_I_III,
|
||||||
@ -733,7 +733,7 @@ static struct CHANLIST europe_east[] = {
|
|||||||
FREQ_UHF
|
FREQ_UHF
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct CHANLIST pal_italy[] = {
|
static const struct CHANLIST pal_italy[] = {
|
||||||
{ "A", 53750 },
|
{ "A", 53750 },
|
||||||
{ "B", 62250 },
|
{ "B", 62250 },
|
||||||
{ "C", 82250 },
|
{ "C", 82250 },
|
||||||
@ -747,7 +747,7 @@ static struct CHANLIST pal_italy[] = {
|
|||||||
FREQ_UHF
|
FREQ_UHF
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct CHANLIST pal_ireland[] = {
|
static const struct CHANLIST pal_ireland[] = {
|
||||||
{ "0", 45750 },
|
{ "0", 45750 },
|
||||||
{ "1", 53750 },
|
{ "1", 53750 },
|
||||||
{ "2", 61750 },
|
{ "2", 61750 },
|
||||||
@ -760,7 +760,7 @@ static struct CHANLIST pal_ireland[] = {
|
|||||||
FREQ_UHF,
|
FREQ_UHF,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct CHANLIST secam_france[] = {
|
static const struct CHANLIST secam_france[] = {
|
||||||
{ "K01", 47750 },
|
{ "K01", 47750 },
|
||||||
{ "K02", 55750 },
|
{ "K02", 55750 },
|
||||||
{ "K03", 60500 },
|
{ "K03", 60500 },
|
||||||
@ -811,7 +811,7 @@ static struct CHANLIST secam_france[] = {
|
|||||||
|
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
static struct CHANLIST pal_newzealand[] = {
|
static const struct CHANLIST pal_newzealand[] = {
|
||||||
{ "1", 45250 },
|
{ "1", 45250 },
|
||||||
{ "2", 55250 },
|
{ "2", 55250 },
|
||||||
{ "3", 62250 },
|
{ "3", 62250 },
|
||||||
@ -829,7 +829,7 @@ static struct CHANLIST pal_newzealand[] = {
|
|||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* China broadcast */
|
/* China broadcast */
|
||||||
static struct CHANLIST pal_bcast_cn[] = {
|
static const struct CHANLIST pal_bcast_cn[] = {
|
||||||
{ "1", 49750 },
|
{ "1", 49750 },
|
||||||
{ "2", 57750 },
|
{ "2", 57750 },
|
||||||
{ "3", 65750 },
|
{ "3", 65750 },
|
||||||
@ -929,7 +929,7 @@ static struct CHANLIST pal_bcast_cn[] = {
|
|||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
/* South Africa Broadcast */
|
/* South Africa Broadcast */
|
||||||
|
|
||||||
static struct CHANLIST pal_bcast_za[] ={
|
static const struct CHANLIST pal_bcast_za[] ={
|
||||||
{ "1", 175250 },
|
{ "1", 175250 },
|
||||||
{ "2", 183250 },
|
{ "2", 183250 },
|
||||||
{ "3", 191250 },
|
{ "3", 191250 },
|
||||||
@ -943,7 +943,7 @@ static struct CHANLIST pal_bcast_za[] ={
|
|||||||
|
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
static struct CHANLIST argentina[] = {
|
static const struct CHANLIST argentina[] = {
|
||||||
{ "001", 56250 },
|
{ "001", 56250 },
|
||||||
{ "002", 62250 },
|
{ "002", 62250 },
|
||||||
{ "003", 68250 },
|
{ "003", 68250 },
|
||||||
@ -1041,7 +1041,7 @@ static struct CHANLIST argentina[] = {
|
|||||||
|
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
static struct CHANLIST russia[] = {
|
static const struct CHANLIST russia[] = {
|
||||||
{"1", 49750 },
|
{"1", 49750 },
|
||||||
{"2", 59250 },
|
{"2", 59250 },
|
||||||
{"3", 77250 },
|
{"3", 77250 },
|
||||||
@ -1144,7 +1144,7 @@ static struct CHANLIST russia[] = {
|
|||||||
};
|
};
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
struct CHANLISTS chanlists[] = {
|
const struct CHANLISTS chanlists[] = {
|
||||||
{ "us-bcast", ntsc_bcast, CHAN_COUNT(ntsc_bcast) },
|
{ "us-bcast", ntsc_bcast, CHAN_COUNT(ntsc_bcast) },
|
||||||
{ "us-cable", ntsc_cable, CHAN_COUNT(ntsc_cable) },
|
{ "us-cable", ntsc_cable, CHAN_COUNT(ntsc_cable) },
|
||||||
{ "us-cable-hrc", ntsc_hrc, CHAN_COUNT(ntsc_hrc) },
|
{ "us-cable-hrc", ntsc_hrc, CHAN_COUNT(ntsc_hrc) },
|
||||||
|
@ -89,21 +89,21 @@
|
|||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
struct CHANLIST {
|
struct CHANLIST {
|
||||||
char *name;
|
char name[8];
|
||||||
int freq;
|
int freq;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct CHANLISTS {
|
struct CHANLISTS {
|
||||||
char *name;
|
char *name;
|
||||||
struct CHANLIST *list;
|
const struct CHANLIST *list;
|
||||||
int count;
|
int count;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define CHAN_COUNT(x) (sizeof(x)/sizeof(struct CHANLIST))
|
#define CHAN_COUNT(x) (sizeof(x)/sizeof(struct CHANLIST))
|
||||||
|
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
extern struct CHANLISTS chanlists[];
|
extern const struct CHANLISTS chanlists[];
|
||||||
//extern struct STRTAB chanlist_names[];
|
//extern struct STRTAB chanlist_names[];
|
||||||
|
|
||||||
extern int chantab;
|
extern int chantab;
|
||||||
|
@ -82,7 +82,7 @@ typedef struct tvi_handle_s {
|
|||||||
/* specific */
|
/* specific */
|
||||||
int norm;
|
int norm;
|
||||||
int chanlist;
|
int chanlist;
|
||||||
struct CHANLIST *chanlist_s;
|
const struct CHANLIST *chanlist_s;
|
||||||
int channel;
|
int channel;
|
||||||
} tvi_handle_t;
|
} tvi_handle_t;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user