1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: interface.hxx,v $
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
;
37 __declspec(uuid("65BD0710-24D2-4ff7-9324-ED2E5D3ABAFA")) __declspec(novtable
)
39 IMediaDet
: public IUnknown
42 virtual HRESULT __stdcall
get_Filter(
44 virtual HRESULT __stdcall
put_Filter(
45 IUnknown
*newVal
) = 0;
46 virtual HRESULT __stdcall
get_OutputStreams(
48 virtual HRESULT __stdcall
get_CurrentStream(
50 virtual HRESULT __stdcall
put_CurrentStream(
52 virtual HRESULT __stdcall
get_StreamType(
54 virtual HRESULT __stdcall
get_StreamTypeB(
56 virtual HRESULT __stdcall
get_StreamLength(
58 virtual HRESULT __stdcall
get_Filename(
60 virtual HRESULT __stdcall
put_Filename(
62 virtual HRESULT __stdcall
GetBitmapBits(
68 virtual HRESULT __stdcall
WriteBitmapBits(
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(
79 virtual HRESULT __stdcall
EnterBitmapGrabMode(
83 extern "C" const IID IID_ISampleGrabberCB
;
86 __declspec(uuid("0579154A-2B53-4994-B0D0-E773148EFF85")) __declspec(novtable
)
88 ISampleGrabberCB
: public IUnknown
91 virtual HRESULT __stdcall
SampleCB(
93 IMediaSample
*pSample
) = 0;
94 virtual HRESULT __stdcall
BufferCB(
100 extern "C" const IID IID_ISampleGrabber
;
103 __declspec(uuid("6B652FFF-11FE-4fce-92AD-0266B5D7C78F")) __declspec(novtable
)
105 ISampleGrabber
: public IUnknown
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(
119 virtual HRESULT __stdcall
GetCurrentSample(
120 IMediaSample
**ppSample
) = 0;
121 virtual HRESULT __stdcall
SetCallback(
122 ISampleGrabberCB
*pCallback
,
123 long WhichMethodToCallback
) = 0;