2 * Copyright (C) 2008 Maarten Lankhorst
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __DVDMEDIA_H__
20 #define __DVDMEDIA_H__
22 #define AMCONTROL_USED 0x00000001
23 #define AMCONTROL_PAD_TO_4x3 0x00000002
24 #define AMCONTROL_PAD_TO_16x9 0x00000004
25 #define AMCONTROL_COLORINFO_PRESENT 0x00000080
27 typedef struct tagVIDEOINFOHEADER2
{
32 REFERENCE_TIME AvgTimePerFrame
;
33 DWORD dwInterlaceFlags
;
34 DWORD dwCopyProtectFlags
;
35 DWORD dwPictAspectRatioX
;
36 DWORD dwPictAspectRatioY
;
42 BITMAPINFOHEADER bmiHeader
;
45 typedef struct tagMPEG2VIDEOINFO
{
47 DWORD dwStartTimeCode
;
48 DWORD cbSequenceHeader
;
52 DWORD dwSequenceHeader
[1];
55 #define AMINTERLACE_IsInterlaced 0x0001
56 #define AMINTERLACE_1FieldPerSample 0x0002
57 #define AMINTERLACE_Field1First 0x0004
58 #define AMINTERLACE_UNUSED 0x0008
59 #define AMINTERLACE_FieldPatField1Only 0x0000
60 #define AMINTERLACE_FieldPatField2Only 0x0010
61 #define AMINTERLACE_FieldPatBothRegular 0x0020
62 #define AMINTERLACE_FieldPatBothIrregular 0x0030
63 #define AMINTERLACE_FieldPatternMask 0x0030
64 #define AMINTERLACE_DisplayModeBobOnly 0x0000
65 #define AMINTERLACE_DisplayModeWeaveOnly 0x0040
66 #define AMINTERLACE_DisplayModeBobOrWeave 0x0080
67 #define AMINTERLACE_DisplayModeMask 0x00c0
69 #endif /* __DVDMEDIA_H__ */