amvpe.idl
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:5k
源码类别:

模拟服务器

开发平台:

C/C++

  1. //------------------------------------------------------------------------------
  2. // File: AMVPE.idl
  3. //
  4. // Desc: 
  5. //
  6. // Copyright (c) 1992 - 2000, Microsoft Corporation.  All rights reserved.
  7. //------------------------------------------------------------------------------
  8. import "unknwn.idl";
  9. import "objidl.idl"; // for IPersist (IFilter's root)
  10. /*
  11.  * VIDOESIGNALINFO
  12.  */
  13. typedef struct _VIDEOSIGNALINFO
  14. {
  15.     DWORD dwSize; // Size of the structure
  16.     DWORD dwVREFHeight; // Specifies the number of lines of data in the vref
  17. BOOL  bDoubleClock; // videoport should enable double clocking
  18. BOOL  bVACT; // videoport should use an external VACT signal
  19. BOOL  bInterlaced; // Indicates that the signal is interlaced
  20. BOOL  bHalfline; // Device will write half lines into the frame buffer
  21. BOOL  bInvertedPolarity;    // Devoce inverts the polarity by default
  22. } AMVIDEOSIGNALINFO;
  23. typedef struct AMVIDEOSIGNALINFO        *LPAMVIDEOSIGNALINFO;
  24. interface IVPEConfig;
  25. interface IVPE;
  26. /*
  27.  * DDVIDEOPORTCONNECT
  28.  */
  29. typedef struct _DDVIDEOPORTCONNECT
  30. {
  31.     DWORD dwSize; // size of the DDVIDEOPORTCONNECT structure
  32.     GUID  guidTypeID;  // Description of video port connection
  33.     DWORD dwPortWidth; // Width of the video port
  34.     DWORD dwFlags; // Connection flags
  35. } DDVIDEOPORTCONNECT;
  36. typedef DDVIDEOPORTCONNECT *LPDDVIDEOPORTCONNECT;
  37. /*
  38.  * DDPIXELFORMAT
  39.  */
  40. typedef struct _DDPIXELFORMAT
  41. {
  42.     DWORD dwSize; // size of structure
  43.     DWORD dwFlags; // pixel format flags
  44.     DWORD dwFourCC; // (FOURCC code)
  45.     union
  46.     {
  47. DWORD dwRGBBitCount; // how many bits per pixel (BD_1,2,4,8,16,24,32)
  48. DWORD dwYUVBitCount; // how many bits per pixel (BD_4,8,16,24,32)
  49. DWORD dwZBufferBitDepth; // how many bits for z buffers (BD_8,16,24,32)
  50. DWORD dwAlphaBitDepth; // how many bits for alpha channels (BD_1,2,4,8)
  51.     };
  52.     union
  53.     {
  54. DWORD dwRBitMask; // mask for red bit
  55. DWORD dwYBitMask; // mask for Y bits
  56.     };
  57.     union
  58.     {
  59. DWORD dwGBitMask; // mask for green bits
  60. DWORD dwUBitMask; // mask for U bits
  61.     };
  62.     union
  63.     {
  64. DWORD dwBBitMask; // mask for blue bits
  65. DWORD dwVBitMask; // mask for V bits
  66.     };
  67.     union
  68.     {
  69. DWORD dwRGBAlphaBitMask; // mask for alpha channel
  70. DWORD dwYUVAlphaBitMask; // mask for alpha channel
  71. DWORD dwRGBZBitMask; // mask for Z channel
  72. DWORD dwYUVZBitMask; // mask for Z channel
  73.     };
  74. } DDPIXELFORMAT;
  75. typedef DDPIXELFORMAT * LPDDPIXELFORMAT;
  76. [
  77. object,
  78. uuid(BC29A660-30E3-11d0-9E69-00C04FD7C15B),
  79. pointer_default(unique)
  80. ]
  81. interface IVPEConfig : IUnknown {
  82. // gets the various connection information structures (guid, portwidth)
  83. // in an array of structures. If the pointer to the array is NULL, first 
  84. // parameter returns the total number of formats supported.
  85. HRESULT GetConnectInfo(
  86. [in,out] LPDWORD lpNumConnectInfo,
  87. [out] LPDDVIDEOPORTCONNECT lpddvpConnectInfo
  88. );
  89. HRESULT SetConnectInfo(
  90. [in] DDVIDEOPORTCONNECT ddvpConnectInfo
  91. );
  92. // gets the various formats supported by the decoder in an array
  93. // of structures. If the pointer to the array is NULL, first parameter
  94. // returns the total number of formats supported.
  95. HRESULT GetVideoFormats(
  96. [in,out] LPDWORD lpNumFormats,
  97. [out] LPDDPIXELFORMAT lpddpfFormats
  98. );
  99. // retrives maximum pixels per second rate expected for a given 
  100. // format and a given scaling factor. If decoder does not support 
  101. // those scaling factors, then it gives the rate and the nearest 
  102. // scaling factors.
  103. HRESULT GetMaxPixelRate(
  104. [in] DDPIXELFORMAT ddpfFormat,
  105. [in,out] LPDWORD lpdwZoomHeight,
  106. [in,out] LPDWORD lpdwZoomWidth,
  107. [out] LPDWORD lpdwMaxPixelsPerSecond
  108. );
  109. // retrives various properties of the decoder for a given format
  110. HRESULT GetVideoSignalInfo(
  111. [in] DDPIXELFORMAT ddpfFormat,
  112. [out] LPAMVIDEOSIGNALINFO lpAMVideoSignalInfo
  113. );
  114. // asks the decoder to ouput in this format. Return value should give
  115. // appropriate error code
  116. HRESULT SetVideoFormat(
  117. [in] DDPIXELFORMAT ddpfFormat
  118. );
  119. // asks the decoder to treat even fields like odd fields and visa versa
  120. HRESULT SetInvertPolarity(
  121. );
  122. // sets the scaling factors. If decoder does not support these,
  123. // then it sets the values to the nearest factors it can support
  124. HRESULT SetScalingFactors(
  125. [in,out] LPDWORD lpdwZoomHeight,
  126. [in,out] LPDWORD lpdwZoomWidth
  127. );
  128.  
  129.  }
  130. [
  131. object,
  132. uuid(BC29A661-30E3-11d0-9E69-00C04FD7C15B),
  133. pointer_default(unique)
  134. ]
  135. interface IVPE : IUnknown {
  136. HRESULT SetOverlaySurface(
  137. //                            [in] LPDIRECTDRAWSURFACE lpOverlaySurface,
  138.                             [in] LPUNKNOWN lpOverlaySurface,
  139. [in] INT iNumBackBuffers
  140. );
  141. }