File: dvbscan.h

package info (click to toggle)
w-scan 20170107-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,684 kB
  • sloc: ansic: 12,756; sh: 1,051; xml: 33; makefile: 17
file content (115 lines) | stat: -rw-r--r-- 3,739 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
 * Simple MPEG/DVB parser to achieve network/service information without initial tuning data
 *
 * Copyright (C) 2006, 2007, 2008, 2009 Winfried Koehler 
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 * Or, point your browser to http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 *
 * The author can be reached at: w_scan AT gmx-topmail DOT de
 *
 * The project's page is http://wirbel.htpc-forum.de/w_scan/index2.html
 */

#ifndef __HEADER_DVBSCAN_H__
#define __HEADER_DVBSCAN_H__

#include "extended_frontend.h"


typedef struct init_item {
        const char *    name;
        int             id;
} _init_item;



/********************************************************************
 * DVB-T
 *
 ********************************************************************/

/* convert text to identifiers */
int txt_to_terr_bw ( const char * txt );
int txt_to_terr_fec ( const char * txt );
int txt_to_terr_mod ( const char * txt );
int txt_to_terr_transmission ( const char * txt );
int txt_to_terr_guard ( const char * txt );
int txt_to_terr_hierarchy ( const char * txt );

/*convert identifier to text */
const char * terr_bw_to_txt ( int id );
const char * terr_fec_to_txt ( int id );
const char * terr_mod_to_txt ( int id );
const char * terr_transmission_to_txt ( int id );
const char * terr_guard_to_txt ( int id );
const char * terr_hierarchy_to_txt ( int id );

/********************************************************************
 * DVB-C
 *
 ********************************************************************/

/* convert text to identifiers */
int txt_to_cable_fec ( const char * txt );
int txt_to_cable_mod ( const char * txt );

/*convert identifier to text */
const char * cable_fec_to_txt ( int id );
const char * cable_mod_to_txt ( int id );

/********************************************************************
 * ATSC
 *
 ********************************************************************/

/* convert text to identifiers */
int txt_to_atsc_mod ( const char * txt );

/*convert identifier to text */
const char * atsc_mod_to_txt ( int id );

/********************************************************************
 * DVB-S
 *
 ********************************************************************/

/* convert text to identifiers */
int txt_to_sat_delivery_system ( const char * txt );
int txt_to_sat_pol ( const char * txt );
int txt_to_sat_fec ( const char * txt );
int txt_to_sat_rolloff ( const char * txt );
int txt_to_sat_mod ( const char * txt );

/*convert identifier to text */
const char * sat_delivery_system_to_txt ( int id );
const char * sat_pol_to_txt ( int id );
const char * sat_fec_to_txt ( int id );
const char * sat_rolloff_to_txt ( int id );
const char * sat_mod_to_txt ( int id );

/********************************************************************
 * non-frontend specific part
 *
 ********************************************************************/

/* convert text to identifiers */
int txt_to_scantype ( const char * txt );

/*convert identifier to text */
const char * scantype_to_txt ( int id );


#endif