
- Each adapter have three (or four) tabs o General setup and information o Grid of multiplexes o Grid of services o For sattelite adapters, a sattelite configuration tab. * Add support for disabling / enabling an entire DVB multiplex * Add support for multiple DiSEqC switchports on a single adapter * Add support for different sattelite LNBs * Graceful handling of DVB adapters that does not support many table filters in hardware. Tvheadend will rotate among the available ones. * Add support for enabling / disabling transports from the DVB configuration * Make it possible to remove DVB multiplexes from the web ui * Add 'Revert changes' button to all editable grids in the web ui * Make it possible to disable the idle scan on per-DVB adapter basis. The idle scan is a process to cycles through all multiplex to check the quality for each mux continously.
71 lines
2.3 KiB
C
71 lines
2.3 KiB
C
/*
|
|
* TV Input - Linux DVB interface - Support
|
|
* Copyright (C) 2007 Andreas Öman
|
|
*
|
|
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/*
|
|
* Based on:
|
|
*
|
|
* ITU-T Recommendation H.222.0 / ISO standard 13818-1
|
|
* EN 300 468 - V1.7.1
|
|
*/
|
|
|
|
#ifndef DVB_SUPPORT_H
|
|
#define DVB_SUPPORT_H
|
|
|
|
#include "dvb.h"
|
|
|
|
#define DVB_DESC_VIDEO_STREAM 0x02
|
|
#define DVB_DESC_CA 0x09
|
|
#define DVB_DESC_LANGUAGE 0x0a
|
|
|
|
/* Descriptors defined in EN 300 468 */
|
|
|
|
#define DVB_DESC_NETWORK_NAME 0x40
|
|
#define DVB_DESC_SERVICE_LIST 0x41
|
|
#define DVB_DESC_SAT 0x43
|
|
#define DVB_DESC_CABLE 0x44
|
|
#define DVB_DESC_SHORT_EVENT 0x4d
|
|
#define DVB_DESC_SERVICE 0x48
|
|
#define DVB_DESC_CONTENT 0x54
|
|
#define DVB_DESC_TELETEXT 0x56
|
|
#define DVB_DESC_SUBTITLE 0x59
|
|
#define DVB_DESC_AC3 0x6a
|
|
#define DVB_DESC_AAC 0x7c
|
|
|
|
int dvb_get_string(char *dst, size_t dstlen, const uint8_t *src,
|
|
const size_t srclen);
|
|
|
|
int dvb_get_string_with_len(char *dst, size_t dstlen,
|
|
const uint8_t *buf, size_t buflen);
|
|
|
|
#define bcdtoint(i) ((((i & 0xf0) >> 4) * 10) + (i & 0x0f))
|
|
|
|
time_t dvb_convert_date(uint8_t *dvb_buf);
|
|
|
|
const char *dvb_adaptertype_to_str(int type);
|
|
int dvb_str_to_adaptertype(const char *str);
|
|
const char *dvb_polarisation_to_str(int pol);
|
|
const char *dvb_polarisation_to_str_long(int pol);
|
|
th_dvb_adapter_t *dvb_adapter_find_by_identifier(const char *identifier);
|
|
th_dvb_mux_instance_t *dvb_mux_find_by_identifier(const char *identifier);
|
|
void dvb_mux_nicename(char *buf, size_t size, th_dvb_mux_instance_t *tdmi);
|
|
int dvb_mux_badness(th_dvb_mux_instance_t *tdmi);
|
|
const char *dvb_mux_status(th_dvb_mux_instance_t *tdmi);
|
|
void dvb_conversion_init(void);
|
|
void dvb_mux_nicefreq(char *buf, size_t size, th_dvb_mux_instance_t *tdmi);
|
|
|
|
#endif /* DVB_SUPPORT_H */
|