Lei Zhang : include: Add ISampleGrabber interface.

Alexandre Julliard julliard at winehq.org
Tue Feb 19 13:59:03 CST 2008


Module: wine
Branch: master
Commit: 121e8ebbbe9ad5e408f5ee39711b419f67713d72
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=121e8ebbbe9ad5e408f5ee39711b419f67713d72

Author: Lei Zhang <thestig at google.com>
Date:   Wed Feb 13 13:10:23 2008 -0800

include: Add ISampleGrabber interface.

---

 include/qedit.idl |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/include/qedit.idl b/include/qedit.idl
index 886e46f..c4219af 100644
--- a/include/qedit.idl
+++ b/include/qedit.idl
@@ -40,3 +40,42 @@ interface ISampleGrabberCB : IUnknown
         long BufferLen
     );
 }
+
+[
+    object,
+    uuid(6B652FFF-11FE-4fce-92AD-0266B5D7C78F),
+    local,
+    pointer_default(unique)
+]
+interface ISampleGrabber: IUnknown
+{
+    HRESULT SetOneShot(
+        BOOL OneShot
+    );
+
+    HRESULT SetMediaType(
+        const AM_MEDIA_TYPE * pType
+    );
+
+    HRESULT GetConnectedMediaType(
+        AM_MEDIA_TYPE * pType
+    );
+
+    HRESULT SetBufferSamples(
+        BOOL BufferThem
+    );
+
+    HRESULT GetCurrentBuffer(
+        [in,out] long * pBufferSize,
+        [out] long * pBuffer
+    );
+
+    HRESULT GetCurrentSample(
+        [out] IMediaSample ** ppSample
+    );
+
+    HRESULT SetCallback(
+        ISampleGrabberCB * pCallback,
+        long WhichMethodToCallback
+    );
+};




More information about the wine-cvs mailing list