123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- enum dvb_streams {
- stream_reserved0 = 0x00,
- stream_video = 0x01,
- stream_video_h262 = 0x02,
- stream_audio = 0x03,
- stream_audio_13818_3 = 0x04,
- stream_private_sections = 0x05,
- stream_private_data = 0x06,
- stream_mheg = 0x07,
- stream_h222 = 0x08,
- stream_h222_1 = 0x09,
- stream_13818_6_A = 0x0A,
- stream_13818_6_B = 0x0B,
- stream_13818_6_C = 0x0C,
- stream_13818_6_D = 0x0D,
- stream_h222_aux = 0x0E,
- stream_audio_adts = 0x0F,
- stream_video_14496_2 = 0x10,
- stream_audio_latm = 0x11,
- stream_14496_1_pes = 0x12,
- stream_14496_1_iso = 0x13,
- stream_download = 0x14,
- stream_reserved = 0x15,
- stream_private = 0x80
- };
- extern const char *pmt_stream_name[];
- struct dvb_table_pmt_stream {
- uint8_t type;
- union {
- uint16_t bitfield;
- struct {
- uint16_t elementary_pid:13;
- uint16_t reserved:3;
- } __attribute__((packed));
- } __attribute__((packed));
- union {
- uint16_t bitfield2;
- struct {
- uint16_t desc_length:10;
- uint16_t zero:2;
- uint16_t reserved2:4;
- } __attribute__((packed));
- } __attribute__((packed));
- struct dvb_desc *descriptor;
- struct dvb_table_pmt_stream *next;
- } __attribute__((packed));
- struct dvb_table_pmt {
- struct dvb_table_header header;
- union {
- uint16_t bitfield;
- struct {
- uint16_t pcr_pid:13;
- uint16_t reserved2:3;
- } __attribute__((packed));
- } __attribute__((packed));
- union {
- uint16_t bitfield2;
- struct {
- uint16_t desc_length:10;
- uint16_t zero3:2;
- uint16_t reserved3:4;
- } __attribute__((packed));
- } __attribute__((packed));
- struct dvb_desc *descriptor;
- struct dvb_table_pmt_stream *stream;
- } __attribute__((packed));
- for (struct dvb_table_pmt_stream *_stream = _pmt->stream; _stream; _stream = _stream->next) \
- struct dvb_v5_fe_parms;
- extern "C" {
- ssize_t dvb_table_pmt_init (struct dvb_v5_fe_parms *parms, const uint8_t *buf,
- ssize_t buflen, struct dvb_table_pmt **table);
- void dvb_table_pmt_free(struct dvb_table_pmt *table);
- void dvb_table_pmt_print(struct dvb_v5_fe_parms *parms,
- const struct dvb_table_pmt *table);
- }
|