home *** CD-ROM | disk | FTP | other *** search
- //==========================================================================;
- //
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
- // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
- // PURPOSE.
- //
- // Copyright (c) 1992 - 1996 Microsoft Corporation. All Rights Reserved.
- //
- //--------------------------------------------------------------------------;
- //
- // IVideoCaptureConfigure
- //
- // Permits the filter user to configure the video driver in use by the capture source filter.
- // The functionality is defined by what is available through AVICap
- //
-
- #ifndef __IVIDEOCAP__
- #define __IVIDEOCAP__
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
-
- //
- // The interfaces GUID.
- //
- // {fd5010a3-8ebe-11ce-8183-00aa00577da1}
- DEFINE_GUID(IID_IVideoCaptureConfigure,
- 0xfd5010a3, 0x8ebe, 0x11ce, 0x81, 0x83, 0x00, 0xaa, 0x00, 0x57, 0x7d, 0xa1);
-
-
- DECLARE_INTERFACE_(IVideoCaptureConfigure, IUnknown) {
-
- // return the driver name in DriverName & S_OK or an error
- STDMETHOD(get_DriverName) (THIS_
- BSTR DriverName /*[out]*/ // The driver name will be returned here.
- // will have 80 characters allocated to it
- ) PURE;
-
- // return the driver version in DriverVersion & S_OK or an error
- STDMETHOD(get_DriverVersion) (THIS_
- BSTR DriverVersion /*[out]*/ // The drivers version string is returned here
- // will have 40 characters allocated to it
- ) PURE;
-
- // S_OK if this driver can display a Video source dialog
- // S_FALSE if it can't.
- STDMETHOD(get_SupportsVideoSourceDialog) (THIS) PURE;
-
-
- // S_OK if this driver can display a Video Format dialog
- // S_FALSE if it can't.
- STDMETHOD(get_SupportsVideoFormatDialog) (THIS) PURE;
-
-
- // S_OK if this driver can display a Video Display dialog
- // S_FALSE if it can't.
- STDMETHOD(get_SupportsVideoDisplayDialog) (THIS) PURE;
-
-
- // S_OK if this driver can display a Video Display dialog
- // S_FALSE if it can't.
- STDMETHOD(get_SupportsVideoCompressionDialog) (THIS) PURE;
-
-
- // S_OK if the dialog was displayed OK
- // E_ACCESSDENIED if you can't change the format at the moment
- // E_UNEXPECTED if this driver can't display this dialog.
- // E_FAIL if display is attempted and fails.
- STDMETHOD(DisplayVideoSourceDialog) (THIS) PURE;
-
- // S_OK if the dialog was displayed OK
- // E_ACCESSDENIED if you can't change the format at the moment
- // E_UNEXPECTED if this driver can't display this dialog.
- // E_FAIL if display is attempted and fails.
- STDMETHOD(DisplayVideoFormatDialog) (THIS) PURE;
-
-
- // S_OK if the dialog was displayed OK
- // E_ACCESSDENIED if you can't change the format at the moment
- // E_UNEXPECTED if this driver can't display this dialog.
- // E_FAIL if display is attempted and fails.
- STDMETHOD(DisplayVideoCompressionDialog) (THIS) PURE;
-
-
- // S_OK if the dialog was displayed OK
- // E_ACCESSDENIED if you can't change the format at the moment
- // E_UNEXPECTED if this driver can't display this dialog.
- // E_FAIL if display is attempted and fails.
- STDMETHOD(DisplayVideoDisplayDialog) (THIS) PURE;
-
-
- // returns the current requested number of microseconds per frame
- // in MicroSecondsperFrame.
- STDMETHOD(get_RequestedMicroSecondsPerFrame) (THIS_
- long *MicroSecondsPerFrame /*[out]*/ // 66667 == 15fps
- ) PURE;
-
- // Set the number of microseconds per frame to MicroSecondsPerFrame.
- // returns: S_OK if successful
- // E_ACCESSDENIED if you can't change at the moment - if the pi is connected
- // E_FAIL if it could not complete.
- // Use GetMicroSecondsPerFrame to find the actual rate set.
- STDMETHOD(put_RequestedMicroSecondsPerFrame) (THIS_
- long MicroSecondsPerFrame /*[in]*/
- ) PURE;
- };
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif // __IVIDEOCAP__
-