1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_AVMEDIA_SOURCE_WIN_INTERFACE_HXX
21 #define INCLUDED_AVMEDIA_SOURCE_WIN_INTERFACE_HXX
23 extern "C" const CLSID CLSID_MediaDet
;
24 extern "C" const IID IID_IMediaDet
;
25 struct ISampleGrabber
;
29 __declspec(uuid("65BD0710-24D2-4ff7-9324-ED2E5D3ABAFA")) __declspec(novtable
)
31 IMediaDet
: public IUnknown
34 virtual HRESULT __stdcall
get_Filter(
36 virtual HRESULT __stdcall
put_Filter(
37 IUnknown
*newVal
) = 0;
38 virtual HRESULT __stdcall
get_OutputStreams(
40 virtual HRESULT __stdcall
get_CurrentStream(
42 virtual HRESULT __stdcall
put_CurrentStream(
44 virtual HRESULT __stdcall
get_StreamType(
46 virtual HRESULT __stdcall
get_StreamTypeB(
48 virtual HRESULT __stdcall
get_StreamLength(
50 virtual HRESULT __stdcall
get_Filename(
52 virtual HRESULT __stdcall
put_Filename(
54 virtual HRESULT __stdcall
GetBitmapBits(
60 virtual HRESULT __stdcall
WriteBitmapBits(
65 virtual HRESULT __stdcall
get_StreamMediaType(
66 AM_MEDIA_TYPE
*pVal
) = 0;
67 virtual HRESULT __stdcall
GetSampleGrabber(
68 ISampleGrabber
**ppVal
) = 0;
69 virtual HRESULT __stdcall
get_FrameRate(
71 virtual HRESULT __stdcall
EnterBitmapGrabMode(
75 extern "C" const IID IID_ISampleGrabberCB
;
78 __declspec(uuid("0579154A-2B53-4994-B0D0-E773148EFF85")) __declspec(novtable
)
80 ISampleGrabberCB
: public IUnknown
83 virtual HRESULT __stdcall
SampleCB(
85 IMediaSample
*pSample
) = 0;
86 virtual HRESULT __stdcall
BufferCB(
92 extern "C" const IID IID_ISampleGrabber
;
95 __declspec(uuid("6B652FFF-11FE-4fce-92AD-0266B5D7C78F")) __declspec(novtable
)
97 ISampleGrabber
: public IUnknown
100 virtual HRESULT __stdcall
SetOneShot(
102 virtual HRESULT __stdcall
SetMediaType(
103 const AM_MEDIA_TYPE
*pType
) = 0;
104 virtual HRESULT __stdcall
GetConnectedMediaType(
105 AM_MEDIA_TYPE
*pType
) = 0;
106 virtual HRESULT __stdcall
SetBufferSamples(
107 BOOL BufferThem
) = 0;
108 virtual HRESULT __stdcall
GetCurrentBuffer(
111 virtual HRESULT __stdcall
GetCurrentSample(
112 IMediaSample
**ppSample
) = 0;
113 virtual HRESULT __stdcall
SetCallback(
114 ISampleGrabberCB
*pCallback
,
115 long WhichMethodToCallback
) = 0;
121 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */