bump product version to 6.3.0.0.beta1
[LibreOffice.git] / avmedia / source / win / interface.hxx
blob08584777c7e6ff117b178d245031882036d3c126
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 __declspec(uuid("65BD0710-24D2-4ff7-9324-ED2E5D3ABAFA")) __declspec(novtable)
29 IMediaDet : public IUnknown
31 public:
32 virtual HRESULT __stdcall get_Filter(
33 IUnknown **pVal) = 0;
34 virtual HRESULT __stdcall put_Filter(
35 IUnknown *newVal) = 0;
36 virtual HRESULT __stdcall get_OutputStreams(
37 long *pVal) = 0;
38 virtual HRESULT __stdcall get_CurrentStream(
39 long *pVal) = 0;
40 virtual HRESULT __stdcall put_CurrentStream(
41 long newVal) = 0;
42 virtual HRESULT __stdcall get_StreamType(
43 GUID *pVal) = 0;
44 virtual HRESULT __stdcall get_StreamTypeB(
45 BSTR *pVal) = 0;
46 virtual HRESULT __stdcall get_StreamLength(
47 double *pVal) = 0;
48 virtual HRESULT __stdcall get_Filename(
49 BSTR *pVal) = 0;
50 virtual HRESULT __stdcall put_Filename(
51 BSTR newVal) = 0;
52 virtual HRESULT __stdcall GetBitmapBits(
53 double StreamTime,
54 long *pBufferSize,
55 char *pBuffer,
56 long Width,
57 long Height) = 0;
58 virtual HRESULT __stdcall WriteBitmapBits(
59 double StreamTime,
60 long Width,
61 long Height,
62 BSTR Filename) = 0;
63 virtual HRESULT __stdcall get_StreamMediaType(
64 AM_MEDIA_TYPE *pVal) = 0;
65 virtual HRESULT __stdcall GetSampleGrabber(
66 ISampleGrabber **ppVal) = 0;
67 virtual HRESULT __stdcall get_FrameRate(
68 double *pVal) = 0;
69 virtual HRESULT __stdcall EnterBitmapGrabMode(
70 double SeekTime) = 0;
72 protected:
73 ~IMediaDet() {}
76 extern "C" const IID IID_ISampleGrabberCB;
77 struct
78 __declspec(uuid("0579154A-2B53-4994-B0D0-E773148EFF85")) __declspec(novtable)
79 ISampleGrabberCB : public IUnknown
81 public:
82 virtual HRESULT __stdcall SampleCB(
83 double SampleTime,
84 IMediaSample *pSample) = 0;
85 virtual HRESULT __stdcall BufferCB(
86 double SampleTime,
87 BYTE *pBuffer,
88 long BufferLen) = 0;
90 protected:
91 ~ISampleGrabberCB() {}
94 extern "C" const IID IID_ISampleGrabber;
95 struct
96 __declspec(uuid("6B652FFF-11FE-4fce-92AD-0266B5D7C78F")) __declspec(novtable)
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;
117 protected:
118 ~ISampleGrabber() {}
121 #endif
123 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */