dvdmedia.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. #ifndef __DVDMEDIA_H__
  19. #define __DVDMEDIA_H__
  20. #define AMCONTROL_USED 0x00000001
  21. #define AMCONTROL_PAD_TO_4x3 0x00000002
  22. #define AMCONTROL_PAD_TO_16x9 0x00000004
  23. #define AMCONTROL_COLORINFO_PRESENT 0x00000080
  24. typedef struct tagVIDEOINFOHEADER2 {
  25. RECT rcSource;
  26. RECT rcTarget;
  27. DWORD dwBitRate;
  28. DWORD dwBitErrorRate;
  29. REFERENCE_TIME AvgTimePerFrame;
  30. DWORD dwInterlaceFlags;
  31. DWORD dwCopyProtectFlags;
  32. DWORD dwPictAspectRatioX;
  33. DWORD dwPictAspectRatioY;
  34. union {
  35. DWORD dwControlFlags;
  36. DWORD dwReserved1;
  37. } DUMMYUNIONNAME;
  38. DWORD dwReserved2;
  39. BITMAPINFOHEADER bmiHeader;
  40. } VIDEOINFOHEADER2;
  41. typedef struct tagMPEG2VIDEOINFO {
  42. VIDEOINFOHEADER2 hdr;
  43. DWORD dwStartTimeCode;
  44. DWORD cbSequenceHeader;
  45. DWORD dwProfile;
  46. DWORD dwLevel;
  47. DWORD dwFlags;
  48. DWORD dwSequenceHeader[1];
  49. } MPEG2VIDEOINFO;
  50. #define AMINTERLACE_IsInterlaced 0x0001
  51. #define AMINTERLACE_1FieldPerSample 0x0002
  52. #define AMINTERLACE_Field1First 0x0004
  53. #define AMINTERLACE_UNUSED 0x0008
  54. #define AMINTERLACE_FieldPatField1Only 0x0000
  55. #define AMINTERLACE_FieldPatField2Only 0x0010
  56. #define AMINTERLACE_FieldPatBothRegular 0x0020
  57. #define AMINTERLACE_FieldPatBothIrregular 0x0030
  58. #define AMINTERLACE_FieldPatternMask 0x0030
  59. #define AMINTERLACE_DisplayModeBobOnly 0x0000
  60. #define AMINTERLACE_DisplayModeWeaveOnly 0x0040
  61. #define AMINTERLACE_DisplayModeBobOrWeave 0x0080
  62. #define AMINTERLACE_DisplayModeMask 0x00c0
  63. #endif /* __DVDMEDIA_H__ */