fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / avmedia / source / win / interface.hxx
blobf954872ffa867c48de642c0039eb2d023bb48cc7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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;
27 struct
28 #ifndef __MINGW32__
29 __declspec(uuid("65BD0710-24D2-4ff7-9324-ED2E5D3ABAFA")) __declspec(novtable)
30 #endif
31 IMediaDet : public IUnknown
33 public:
34 virtual HRESULT __stdcall get_Filter(
35 IUnknown **pVal) = 0;
36 virtual HRESULT __stdcall put_Filter(
37 IUnknown *newVal) = 0;
38 virtual HRESULT __stdcall get_OutputStreams(
39 long *pVal) = 0;
40 virtual HRESULT __stdcall get_CurrentStream(
41 long *pVal) = 0;
42 virtual HRESULT __stdcall put_CurrentStream(
43 long newVal) = 0;
44 virtual HRESULT __stdcall get_StreamType(
45 GUID *pVal) = 0;
46 virtual HRESULT __stdcall get_StreamTypeB(
47 BSTR *pVal) = 0;
48 virtual HRESULT __stdcall get_StreamLength(
49 double *pVal) = 0;
50 virtual HRESULT __stdcall get_Filename(
51 BSTR *pVal) = 0;
52 virtual HRESULT __stdcall put_Filename(
53 BSTR newVal) = 0;
54 virtual HRESULT __stdcall GetBitmapBits(
55 double StreamTime,
56 long *pBufferSize,
57 char *pBuffer,
58 long Width,
59 long Height) = 0;
60 virtual HRESULT __stdcall WriteBitmapBits(
61 double StreamTime,
62 long Width,
63 long Height,
64 BSTR Filename) = 0;
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(
70 double *pVal) = 0;
71 virtual HRESULT __stdcall EnterBitmapGrabMode(
72 double SeekTime) = 0;
75 extern "C" const IID IID_ISampleGrabberCB;
76 struct
77 #ifndef __MINGW32__
78 __declspec(uuid("0579154A-2B53-4994-B0D0-E773148EFF85")) __declspec(novtable)
79 #endif
80 ISampleGrabberCB : public IUnknown
82 public:
83 virtual HRESULT __stdcall SampleCB(
84 double SampleTime,
85 IMediaSample *pSample) = 0;
86 virtual HRESULT __stdcall BufferCB(
87 double SampleTime,
88 BYTE *pBuffer,
89 long BufferLen) = 0;
92 extern "C" const IID IID_ISampleGrabber;
93 struct
94 #ifndef __MINGW32__
95 __declspec(uuid("6B652FFF-11FE-4fce-92AD-0266B5D7C78F")) __declspec(novtable)
96 #endif
97 ISampleGrabber : public IUnknown
99 public:
100 virtual HRESULT __stdcall SetOneShot(
101 BOOL OneShot) = 0;
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(
109 long *pBufferSize,
110 long *pBuffer) = 0;
111 virtual HRESULT __stdcall GetCurrentSample(
112 IMediaSample **ppSample) = 0;
113 virtual HRESULT __stdcall SetCallback(
114 ISampleGrabberCB *pCallback,
115 long WhichMethodToCallback) = 0;
119 #endif
121 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */