1 /* 2 * Copyright (C) 2008 Maarten Lankhorst 3 * 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. 8 * 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. 13 * 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 17 */ 18 19 #ifndef __DVDMEDIA_H__ 20 #define __DVDMEDIA_H__ 21 22 #define AMCONTROL_USED 0x00000001 23 #define AMCONTROL_PAD_TO_4x3 0x00000002 24 #define AMCONTROL_PAD_TO_16x9 0x00000004 25 26 typedef struct tagVIDEOINFOHEADER2 { 27 RECT rcSource; 28 RECT rcTarget; 29 DWORD dwBitRate; 30 DWORD dwBitErrorRate; 31 REFERENCE_TIME AvgTimePerFrame; 32 DWORD dwInterlaceFlags; 33 DWORD dwCopyProtectFlags; 34 DWORD dwPictAspectRatioX; 35 DWORD dwPictAspectRatioY; 36 union { 37 DWORD dwControlFlags; 38 DWORD dwReserved1; 39 } DUMMYUNIONNAME; 40 DWORD dwReserved2; 41 BITMAPINFOHEADER bmiHeader; 42 } VIDEOINFOHEADER2; 43 44 typedef struct tagMPEG2VIDEOINFO { 45 VIDEOINFOHEADER2 hdr; 46 DWORD dwStartTimeCode; 47 DWORD cbSequenceHeader; 48 DWORD dwProfile; 49 DWORD dwLevel; 50 DWORD dwFlags; 51 DWORD dwSequenceHeader[1]; 52 } MPEG2VIDEOINFO; 53 54 #endif /* __DVDMEDIA_H__ */ 55