blob: e5367664fd74d89da0e4c99a264a0135eac0d767 [file] [log] [blame]
Gong Ked869dd72020-07-20 09:00:25 +08001/**
2 * \file
3 * \brief DVB utility functions
4 */
5
6#ifndef DVB_UTILS_H_
7#define DVB_UTILS_H_
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/**Demux input source.*/
14typedef enum {
15 DVB_DEMUX_SOURCE_TS0, /**< Hardware TS input port 0.*/
16 DVB_DEMUX_SOURCE_TS1, /**< Hardware TS input port 1.*/
17 DVB_DEMUX_SOURCE_TS2, /**< Hardware TS input port 2.*/
Chuanzhi Wang670fc042020-08-12 11:11:04 +080018 DVB_DEMUX_SOURCE_TS3, /**< Hardware TS input port 3.*/
19 DVB_DEMUX_SOURCE_TS4, /**< Hardware TS input port 4.*/
20 DVB_DEMUX_SOURCE_TS5, /**< Hardware TS input port 5.*/
21 DVB_DEMUX_SOURCE_TS6, /**< Hardware TS input port 6.*/
22 DVB_DEMUX_SOURCE_TS7, /**< Hardware TS input port 7.*/
23 DVB_DEMUX_SOURCE_DMA0, /**< DMA input port 0.*/
24 DVB_DEMUX_SOURCE_DMA1, /**< DMA input port 1.*/
25 DVB_DEMUX_SOURCE_DMA2, /**< DMA input port 2.*/
26 DVB_DEMUX_SOURCE_DMA3, /**< DMA input port 3.*/
27 DVB_DEMUX_SOURCE_DMA4, /**< DMA input port 4.*/
28 DVB_DEMUX_SOURCE_DMA5, /**< DMA input port 5.*/
29 DVB_DEMUX_SOURCE_DMA6, /**< DMA input port 6.*/
30 DVB_DEMUX_SOURCE_DMA7 /**< DMA input port 7.*/
Gong Ked869dd72020-07-20 09:00:25 +080031} DVB_DemuxSource_t;
32
33/**
34 * Set the demux's input source.
35 * \param dmx_idx Demux device's index.
36 * \param src The demux's input source.
37 * \retval 0 On success.
38 * \retval -1 On error.
39 */
40int dvb_set_demux_source (int dmx_idx, DVB_DemuxSource_t src);
41
Chuanzhi Wang41bc0672020-07-29 15:58:56 +080042/**
43 * Get the demux's input source.
44 * \param dmx_idx Demux device's index.
45 * \param point src that demux's input source.
46 * \retval 0 On success.
47 * \retval -1 On error.
48 */
49int dvb_get_demux_source (int dmx_idx, DVB_DemuxSource_t *src);
50
51
Gong Ked869dd72020-07-20 09:00:25 +080052#ifdef __cplusplus
53}
54#endif
55
56#endif /*DVB_UTILS_H_*/
57