blob: b339ebef19f439f9cb90041a2c02eab5bf3edc57 [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.*/
18 DVB_DEMUX_SOURCE_DMA0 /**< DMA input port 0.*/
19} DVB_DemuxSource_t;
20
21/**
22 * Set the demux's input source.
23 * \param dmx_idx Demux device's index.
24 * \param src The demux's input source.
25 * \retval 0 On success.
26 * \retval -1 On error.
27 */
28int dvb_set_demux_source (int dmx_idx, DVB_DemuxSource_t src);
29
Chuanzhi Wang41bc0672020-07-29 15:58:56 +080030/**
31 * Get the demux's input source.
32 * \param dmx_idx Demux device's index.
33 * \param point src that demux's input source.
34 * \retval 0 On success.
35 * \retval -1 On error.
36 */
37int dvb_get_demux_source (int dmx_idx, DVB_DemuxSource_t *src);
38
39
Gong Ked869dd72020-07-20 09:00:25 +080040#ifdef __cplusplus
41}
42#endif
43
44#endif /*DVB_UTILS_H_*/
45