[DDK]
[reactos.git] / include / dxsdk / mpeg2bits.h
1
2 #pragma once
3 #pragma pack(push)
4
5 #ifdef __midl
6 typedef struct
7 {
8 WORD Bits;
9 } PID_BITS_MIDL;
10
11 typedef struct
12 {
13 WORD Bits;
14 } MPEG_HEADER_BITS_MIDL;
15
16 typedef struct
17 {
18 BYTE Bits;
19 } MPEG_HEADER_VERSION_BITS_MIDL;
20
21 #else
22
23 typedef struct
24 {
25 WORD Reserved : 3;
26 WORD ProgramId : 13;
27 } PID_BITS, *PPID_BITS;
28 typedef struct
29 {
30 WORD SectionLength : 12;
31 WORD Reserved : 2;
32 WORD PrivateIndicator : 1;
33 WORD SectionSyntaxIndicator : 1;
34 } MPEG_HEADER_BITS, *PMPEG_HEADER_BITS;
35
36 typedef struct
37 {
38 BYTE CurrentNextIndicator : 1;
39 BYTE VersionNumber : 5;
40 BYTE Reserved : 2;
41 } MPEG_HEADER_VERSION_BITS, *PMPEG_HEADER_VERSION_BITS;
42 #endif
43
44 #pragma pack(pop)
45