merge the formfield patch from ooo-build
[ooovba.git] / avmedia / source / win / interface.hxx
blobd31c544ebb4a63167cead8a518a2d2fbf02abdde
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: interface.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 extern "C" const CLSID CLSID_MediaDet;
32 extern "C" const IID IID_IMediaDet;
33 struct ISampleGrabber;
35 struct
36 #ifndef __MINGW32__
37 __declspec(uuid("65BD0710-24D2-4ff7-9324-ED2E5D3ABAFA")) __declspec(novtable)
38 #endif
39 IMediaDet : public IUnknown
41 public:
42 virtual HRESULT __stdcall get_Filter(
43 IUnknown **pVal) = 0;
44 virtual HRESULT __stdcall put_Filter(
45 IUnknown *newVal) = 0;
46 virtual HRESULT __stdcall get_OutputStreams(
47 long *pVal) = 0;
48 virtual HRESULT __stdcall get_CurrentStream(
49 long *pVal) = 0;
50 virtual HRESULT __stdcall put_CurrentStream(
51 long newVal) = 0;
52 virtual HRESULT __stdcall get_StreamType(
53 GUID *pVal) = 0;
54 virtual HRESULT __stdcall get_StreamTypeB(
55 BSTR *pVal) = 0;
56 virtual HRESULT __stdcall get_StreamLength(
57 double *pVal) = 0;
58 virtual HRESULT __stdcall get_Filename(
59 BSTR *pVal) = 0;
60 virtual HRESULT __stdcall put_Filename(
61 BSTR newVal) = 0;
62 virtual HRESULT __stdcall GetBitmapBits(
63 double StreamTime,
64 long *pBufferSize,
65 char *pBuffer,
66 long Width,
67 long Height) = 0;
68 virtual HRESULT __stdcall WriteBitmapBits(
69 double StreamTime,
70 long Width,
71 long Height,
72 BSTR Filename) = 0;
73 virtual HRESULT __stdcall get_StreamMediaType(
74 AM_MEDIA_TYPE *pVal) = 0;
75 virtual HRESULT __stdcall GetSampleGrabber(
76 ISampleGrabber **ppVal) = 0;
77 virtual HRESULT __stdcall get_FrameRate(
78 double *pVal) = 0;
79 virtual HRESULT __stdcall EnterBitmapGrabMode(
80 double SeekTime) = 0;
83 extern "C" const IID IID_ISampleGrabberCB;
84 struct
85 #ifndef __MINGW32__
86 __declspec(uuid("0579154A-2B53-4994-B0D0-E773148EFF85")) __declspec(novtable)
87 #endif
88 ISampleGrabberCB : public IUnknown
90 public:
91 virtual HRESULT __stdcall SampleCB(
92 double SampleTime,
93 IMediaSample *pSample) = 0;
94 virtual HRESULT __stdcall BufferCB(
95 double SampleTime,
96 WIN_BYTE *pBuffer,
97 long BufferLen) = 0;
100 extern "C" const IID IID_ISampleGrabber;
101 struct
102 #ifndef __MINGW32__
103 __declspec(uuid("6B652FFF-11FE-4fce-92AD-0266B5D7C78F")) __declspec(novtable)
104 #endif
105 ISampleGrabber : public IUnknown
107 public:
108 virtual HRESULT __stdcall SetOneShot(
109 WIN_BOOL OneShot) = 0;
110 virtual HRESULT __stdcall SetMediaType(
111 const AM_MEDIA_TYPE *pType) = 0;
112 virtual HRESULT __stdcall GetConnectedMediaType(
113 AM_MEDIA_TYPE *pType) = 0;
114 virtual HRESULT __stdcall SetBufferSamples(
115 WIN_BOOL BufferThem) = 0;
116 virtual HRESULT __stdcall GetCurrentBuffer(
117 long *pBufferSize,
118 long *pBuffer) = 0;
119 virtual HRESULT __stdcall GetCurrentSample(
120 IMediaSample **ppSample) = 0;
121 virtual HRESULT __stdcall SetCallback(
122 ISampleGrabberCB *pCallback,
123 long WhichMethodToCallback) = 0;