blob: 45debbb64dea731185b4c2775c61e5d0dab07ff4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Module Name:
//
// Mpeg2Bits.h
//
// Abstract:
//
// This file defines the MPEG-2 section header bitfields. These are
// defined here instead of in mpegstructs.idl because of MIDL
// compiler conflicts with bitfield definitions.
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#pragma pack(push)
#pragma pack(1)
//
// PID structure
//
#ifdef __midl
typedef struct
{
WORD Bits;
} PID_BITS_MIDL;
#else
typedef struct
{
WORD Reserved : 3;
WORD ProgramId : 13;
} PID_BITS, *PPID_BITS;
#endif
//
// Generic MPEG packet header structure
//
#ifdef __midl
typedef struct
{
WORD Bits;
} MPEG_HEADER_BITS_MIDL;
#else
typedef struct
{
WORD SectionLength : 12;
WORD Reserved : 2;
WORD PrivateIndicator : 1;
WORD SectionSyntaxIndicator : 1;
} MPEG_HEADER_BITS, *PMPEG_HEADER_BITS;
#endif
//
// Long MPEG packet header structure
//
#ifdef __midl
typedef struct
{
BYTE Bits;
} MPEG_HEADER_VERSION_BITS_MIDL;
#else
typedef struct
{
BYTE CurrentNextIndicator : 1;
BYTE VersionNumber : 5;
BYTE Reserved : 2;
} MPEG_HEADER_VERSION_BITS, *PMPEG_HEADER_VERSION_BITS;
#endif
#pragma pack(pop)
|