2003-03-16 20:13:28 +00:00
|
|
|
|
|
|
|
#ifndef DVBIN_H
|
|
|
|
#define DVBIN_H
|
|
|
|
|
2003-08-11 00:02:46 +00:00
|
|
|
#include "dvb_defaults.h"
|
|
|
|
#include "stream.h"
|
|
|
|
|
2003-03-16 20:13:28 +00:00
|
|
|
#ifdef HAVE_DVB_HEAD
|
|
|
|
#include <linux/dvb/dmx.h>
|
|
|
|
#include <linux/dvb/frontend.h>
|
|
|
|
#else
|
|
|
|
#include <ost/dmx.h>
|
|
|
|
#include <ost/sec.h>
|
|
|
|
#include <ost/frontend.h>
|
|
|
|
#define fe_status_t FrontendStatus
|
|
|
|
#define fe_spectral_inversion_t SpectralInversion
|
|
|
|
#define fe_modulation_t Modulation
|
|
|
|
#define fe_code_rate_t CodeRate
|
|
|
|
#define fe_transmit_mode_t TransmitMode
|
|
|
|
#define fe_guard_interval_t GuardInterval
|
|
|
|
#define fe_bandwidth_t BandWidth
|
|
|
|
#define fe_sec_voltage_t SecVoltage
|
|
|
|
#define dmx_pes_filter_params dmxPesFilterParams
|
|
|
|
#define dmx_sct_filter_params dmxSctFilterParams
|
|
|
|
#define dmx_pes_type_t dmxPesType_t
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define DVB_CHANNEL_LOWER -1
|
|
|
|
#define DVB_CHANNEL_HIGHER 1
|
|
|
|
|
2003-07-08 17:01:44 +00:00
|
|
|
#include "inttypes.h"
|
2003-03-16 20:13:28 +00:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int next, prev;
|
|
|
|
} dvb_history_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *name;
|
|
|
|
int freq, srate, diseqc, tone;
|
|
|
|
char pol;
|
|
|
|
int vpid, apid1, apid2, tpid, dpid1, dpid2, progid, ca;
|
|
|
|
fe_spectral_inversion_t inv;
|
|
|
|
fe_modulation_t mod;
|
|
|
|
fe_transmit_mode_t trans;
|
|
|
|
fe_bandwidth_t bw;
|
|
|
|
fe_guard_interval_t gi;
|
|
|
|
fe_code_rate_t cr;
|
|
|
|
} dvb_channel_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint16_t NUM_CHANNELS;
|
|
|
|
uint16_t current;
|
|
|
|
dvb_channel_t channels[512];
|
|
|
|
} dvb_channels_list;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2003-08-11 00:02:46 +00:00
|
|
|
int card;
|
2003-03-16 20:13:28 +00:00
|
|
|
int fe_fd;
|
|
|
|
int sec_fd;
|
|
|
|
int demux_fd[3];
|
|
|
|
int dvr_fd;
|
|
|
|
|
|
|
|
dvb_channels_list *list;
|
2003-08-11 00:02:46 +00:00
|
|
|
int tuner_type;
|
|
|
|
int is_on;
|
|
|
|
stream_t *stream;
|
|
|
|
char new_tuning[256], prev_tuning[256];
|
|
|
|
int retry;
|
2003-03-16 20:13:28 +00:00
|
|
|
} dvb_priv_t;
|
|
|
|
|
|
|
|
|
2003-08-11 00:02:46 +00:00
|
|
|
#define TUNER_SAT 1
|
|
|
|
#define TUNER_TER 2
|
|
|
|
#define TUNER_CBL 3
|
2003-03-16 20:13:28 +00:00
|
|
|
|
2003-08-11 00:02:46 +00:00
|
|
|
extern int dvb_step_channel(dvb_priv_t *, int);
|
|
|
|
extern int dvb_set_channel(dvb_priv_t *, int);
|
2003-03-16 20:13:28 +00:00
|
|
|
|
2003-08-11 00:02:46 +00:00
|
|
|
extern dvb_channels_list *dvb_get_channels(char *, int);
|
|
|
|
extern dvb_history_t dvb_prev_next;
|
2003-03-16 20:13:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|