aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include/any-windows-any/mpeg2bits.h
blob: 9d9c40a71858ee1779c56d274e2a063b395a69cc (plain)
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
/*
 * Copyright (C) 2025 Biswapriyo Nath
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

#ifndef _MPEG2BITS_H_
#define _MPEG2BITS_H_

#pragma pack(push)
#pragma pack(1)

#if defined(__midl) || defined(__WIDL__)
typedef struct
{
    WORD Bits;
} PID_BITS_MIDL;
#else
typedef struct
{
    WORD Reserved : 3;
    WORD ProgramId : 13;
} PID_BITS, *PPID_BITS;
#endif

#if defined(__midl) || defined(__WIDL__)
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

#if defined(__midl) || defined(__WIDL__)
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)

#endif /* _MPEG2BITS_H_ */