From 5f5a05fb6ad6d22bae5a58bb2e7aec5da3ee8f27 Mon Sep 17 00:00:00 2001 From: Hidenori Takeshima <hidenori@a2.ctktv.ne.jp> Date: Wed, 20 Mar 2002 22:56:20 +0000 Subject: [PATCH] Added a missing header. --- include/Makefile.in | 1 + include/dvdmedia.h | 99 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 include/dvdmedia.h diff --git a/include/Makefile.in b/include/Makefile.in index 4a117d60953..e238ab25757 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -36,6 +36,7 @@ INSTALLED_INCLUDES = \ dplobby.h \ dshow.h \ dsound.h \ + dvdmedia.h \ errors.h \ evcode.h \ guiddef.h \ diff --git a/include/dvdmedia.h b/include/dvdmedia.h new file mode 100644 index 00000000000..ef3ea2ab6a4 --- /dev/null +++ b/include/dvdmedia.h @@ -0,0 +1,99 @@ +/* + * Copyright (C) 2002 Hidenori TAKESHIMA <hidenori@a2.ctktv.ne.jp> + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef __WINE_DVDMEDIA_H_ +#define __WINE_DVDMEDIA_H_ + + +/* enums. */ + +enum AM_MPEG2Level +{ + AM_MPEG2Level_Low = 1, + AM_MPEG2Level_Main = 2, + AM_MPEG2Level_High1440 = 3, + AM_MPEG2Level_High = 4, +}; + +enum AM_MPEG2Profile +{ + AM_MPEG2Profile_Simple = 1, + AM_MPEG2Profile_Main = 2, + AM_MPEG2Profile_SNRScalable = 3, + AM_MPEG2Profile_SpatiallyScalable = 4, + AM_MPEG2Profile_High = 5, +}; + +/* structs. */ +typedef struct +{ + RECT rcSource; + RECT rcTarget; + DWORD dwBitRate; + DWORD dwBitErrorRate; + REFERENCE_TIME AvgTimePerFrame; + DWORD dwInterlaceFlags; + DWORD dwCopyProtectFlags; + DWORD dwPictAspectRatioX; + DWORD dwPictAspectRatioY; + DWORD dwReserved1; + DWORD dwReserved2; + BITMAPINFOHEADER bmiHeader; +} VIDEOINFOHEADER2; + +typedef struct +{ + VIDEOINFOHEADER2 hdr; + DWORD dwStartTimeCode; + DWORD cbSequenceHeader; + DWORD dwProfile; + DWORD dwLevel; + DWORD dwFlags; + DWORD dwSequenceHeader[1]; +} MPEG2VIDEOINFO; + + +/* defines. */ +#define AMINTERLACE_IsInterlaced 0x00000001 +#define AMINTERLACE_1FieldPerSample 0x00000002 +#define AMINTERLACE_Field1First 0x00000004 + +#define AMINTERLACE_FieldPatternMask 0x00000030 +#define AMINTERLACE_FieldPatField1Only 0x00000000 +#define AMINTERLACE_FieldPatField2Only 0x00000010 +#define AMINTERLACE_FieldPatBothRegular 0x00000020 +#define AMINTERLACE_FieldPatBothIrregular 0x00000030 + +#define AMINTERLACE_DisplayModeMask 0x000000C0 +#define AMINTERLACE_DisplayModeBobOnly 0x00000000 +#define AMINTERLACE_DisplayModeWeaveOnly 0x00000040 +#define AMINTERLACE_DisplayModeBobOrWeave 0x00000080 + +#define AMCOPYPROTECT_RestrictDuplication 0x1 + +#define AMMPEG2_DoPanScan 0x00000001 +#define AMMPEG2_DVDLine21Field1 0x00000002 +#define AMMPEG2_DVDLine21Field2 0x00000004 +#define AMMPEG2_SourceIsLetterboxed 0x00000008 +#define AMMPEG2_FilmCameraMode 0x00000010 +#define AMMPEG2_LetterboxAnalogOut 0x00000020 + + + + +#endif /* __WINE_DVDMEDIA_H_ */ -- GitLab