OSDN Git Service

暫定登録
[iptd/iPTd.git] / src / mpeg2 / ts / Header.h
1 /*
2  *  Header.h
3  */
4 #ifndef __MPEG2_TS_HEADER_H__
5 #define __MPEG2_TS_HEADER_H__
6
7 #include <stdint.h>
8
9 namespace MPEG2
10 {
11 namespace TS
12 {
13
14 extern const uint8_t    SYNC_BYTE;
15 extern const uint8_t    PACKET_SIZE;
16
17 class Header
18 {
19 public:
20     uint8_t     _sync_byte;                     //  8
21     uint8_t     _transport_error;               //  1
22     uint8_t     _payload_unit_start;            //  1
23     uint8_t     _transport_priority;            //  1
24     uint16_t    _pid;                           // 13
25     uint8_t     _transport_scramble_control;    //  2
26     uint8_t     _adaptation_field_control;      //  2
27     uint8_t     _continuty_counter;             //  4
28
29     Header(uint8_t *packet);
30 };
31
32 } // TS
33 } // MPEG2
34 #endif