2017-09-11 00:40:12 +02:00
|
|
|
/*
|
|
|
|
* COM Classes for evr
|
|
|
|
*
|
|
|
|
* Copyright 2017 Fabian Maurer
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
import "unknwn.idl";
|
|
|
|
import "propidl.idl";
|
|
|
|
import "mfidl.idl";
|
|
|
|
import "mftransform.idl";
|
|
|
|
import "mediaobj.idl";
|
|
|
|
import "strmif.idl";
|
|
|
|
|
2019-04-15 07:35:27 +02:00
|
|
|
cpp_quote("#ifndef _MFVideoNormalizedRect_")
|
|
|
|
cpp_quote("#define _MFVideoNormalizedRect_")
|
|
|
|
typedef struct MFVideoNormalizedRect
|
|
|
|
{
|
|
|
|
float left;
|
|
|
|
float top;
|
|
|
|
float right;
|
|
|
|
float bottom;
|
|
|
|
} MFVideoNormalizedRect;
|
|
|
|
cpp_quote("#endif")
|
|
|
|
|
2017-09-11 00:40:12 +02:00
|
|
|
typedef enum _MFVP_MESSAGE_TYPE {
|
|
|
|
MFVP_MESSAGE_FLUSH,
|
|
|
|
MFVP_MESSAGE_INVALIDATEMEDIATYPE,
|
|
|
|
MFVP_MESSAGE_PROCESSINPUTNOTIFY,
|
|
|
|
MFVP_MESSAGE_BEGINSTREAMING,
|
|
|
|
MFVP_MESSAGE_ENDSTREAMING,
|
|
|
|
MFVP_MESSAGE_ENDOFSTREAM,
|
|
|
|
MFVP_MESSAGE_STEP,
|
|
|
|
MFVP_MESSAGE_CANCELSTEP,
|
|
|
|
} MFVP_MESSAGE_TYPE;
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(29aff080-182a-4a5d-af3b-448f3a6346cb),
|
|
|
|
local
|
|
|
|
]
|
|
|
|
interface IMFVideoPresenter : IMFClockStateSink
|
|
|
|
{
|
|
|
|
HRESULT ProcessMessage(
|
|
|
|
[in] MFVP_MESSAGE_TYPE eMessage,
|
|
|
|
[in] ULONG_PTR ulParam
|
|
|
|
);
|
|
|
|
HRESULT GetCurrentMediaType(
|
|
|
|
[out] IMFVideoMediaType **ppMediaType
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(83e91e85-82c1-4ea7-801d-85dc50b75086),
|
|
|
|
local
|
|
|
|
]
|
|
|
|
interface IEVRFilterConfig : IUnknown
|
|
|
|
{
|
|
|
|
HRESULT SetNumberOfStreams(
|
|
|
|
[in] DWORD dwMaxStreams
|
|
|
|
);
|
|
|
|
HRESULT GetNumberOfStreams(
|
|
|
|
[out] DWORD *pdwMaxStreams
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(1f6a9f17-e70b-4e24-8ae4-0b2c3ba7a4ae),
|
|
|
|
local
|
|
|
|
]
|
|
|
|
interface IMFVideoPositionMapper : IUnknown
|
|
|
|
{
|
|
|
|
HRESULT MapOutputCoordinateToInputStream(
|
|
|
|
[in] float xOut,
|
|
|
|
[in] float yOut,
|
|
|
|
[in] DWORD dwOutputStreamIndex,
|
|
|
|
[in] DWORD dwInputStreamIndex,
|
|
|
|
[out] float *pxIn,
|
|
|
|
[out] float *pyIn
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(dfdfd197-a9ca-43d8-b341-6af3503792cd),
|
|
|
|
local
|
|
|
|
]
|
|
|
|
interface IMFVideoRenderer : IUnknown
|
|
|
|
{
|
|
|
|
HRESULT InitializeRenderer(
|
|
|
|
[in] IMFTransform *pVideoMixer,
|
|
|
|
[in] IMFVideoPresenter *pVideoPresenter
|
|
|
|
);
|
|
|
|
}
|
2020-06-17 13:59:32 +02:00
|
|
|
|
|
|
|
typedef enum _MF_SERVICE_LOOKUP_TYPE
|
|
|
|
{
|
|
|
|
MF_SERVICE_LOOKUP_UPSTREAM,
|
|
|
|
MF_SERVICE_LOOKUP_UPSTREAM_DIRECT,
|
|
|
|
MF_SERVICE_LOOKUP_DOWNSTREAM,
|
|
|
|
MF_SERVICE_LOOKUP_DOWNSTREAM_DIRECT,
|
|
|
|
MF_SERVICE_LOOKUP_ALL,
|
|
|
|
MF_SERVICE_LOOKUP_GLOBAL,
|
|
|
|
} MF_SERVICE_LOOKUP_TYPE;
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(fa993889-4383-415a-a930-dd472a8cf6f7),
|
|
|
|
local
|
|
|
|
]
|
|
|
|
interface IMFTopologyServiceLookup : IUnknown
|
|
|
|
{
|
|
|
|
HRESULT LookupService(
|
|
|
|
[in] MF_SERVICE_LOOKUP_TYPE lookup_type,
|
|
|
|
[in] DWORD index,
|
|
|
|
[in] REFGUID service,
|
|
|
|
[in] REFIID riid,
|
|
|
|
[out, iid_is(riid)] void **objects,
|
|
|
|
[in, out] DWORD *num_objects
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(fa99388a-4383-415a-a930-dd472a8cf6f7),
|
|
|
|
local
|
|
|
|
]
|
|
|
|
interface IMFTopologyServiceLookupClient : IUnknown
|
|
|
|
{
|
|
|
|
HRESULT InitServicePointers(
|
|
|
|
[in] IMFTopologyServiceLookup *service_lookup
|
|
|
|
);
|
|
|
|
HRESULT ReleaseServicePointers();
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(a38d9567-5a9c-4f3c-b293-8eb415b279ba),
|
|
|
|
local
|
|
|
|
]
|
|
|
|
interface IMFVideoDeviceID : IUnknown
|
|
|
|
{
|
|
|
|
HRESULT GetDeviceID(
|
|
|
|
[out] IID *device_id
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-06-18 13:43:46 +02:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(a5c6c53f-c202-4aa5-9695-175ba8c508a5)
|
|
|
|
]
|
|
|
|
interface IMFVideoMixerControl : IUnknown
|
|
|
|
{
|
|
|
|
HRESULT SetStreamZOrder(
|
|
|
|
[in] DWORD stream_id,
|
|
|
|
[in] DWORD zorder
|
|
|
|
);
|
|
|
|
HRESULT GetStreamZOrder(
|
|
|
|
[in] DWORD stream_id,
|
|
|
|
[out] DWORD *zorder
|
|
|
|
);
|
|
|
|
HRESULT SetStreamOutputRect(
|
|
|
|
[in] DWORD stream_id,
|
|
|
|
[in] const MFVideoNormalizedRect *rect
|
|
|
|
);
|
|
|
|
HRESULT GetStreamOutputRect(
|
|
|
|
[in] DWORD stream_id,
|
|
|
|
[out] MFVideoNormalizedRect *rect
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(8459616d-966e-4930-b658-54fa7e5a16d3)
|
|
|
|
]
|
|
|
|
interface IMFVideoMixerControl2 : IMFVideoMixerControl
|
|
|
|
{
|
|
|
|
HRESULT SetMixingPrefs(
|
|
|
|
[in] DWORD flags
|
|
|
|
);
|
|
|
|
HRESULT GetMixingPrefs(
|
|
|
|
[out] DWORD *flags
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-06-19 15:36:29 +02:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(56c294d0-753e-4260-8d61-a3d8820b1d54),
|
|
|
|
local
|
|
|
|
]
|
|
|
|
interface IMFDesiredSample : IUnknown
|
|
|
|
{
|
|
|
|
HRESULT GetDesiredSampleTimeAndDuration(
|
|
|
|
[out] LONGLONG *sample_time,
|
|
|
|
[out] LONGLONG *sample_duration
|
|
|
|
);
|
|
|
|
|
|
|
|
void SetDesiredSampleTimeAndDuration(
|
|
|
|
[in] LONGLONG sample_time,
|
|
|
|
[in] LONGLONG sample_duration
|
|
|
|
);
|
|
|
|
|
|
|
|
void Clear();
|
|
|
|
}
|
|
|
|
|
2020-06-17 13:59:32 +02:00
|
|
|
cpp_quote("HRESULT WINAPI MFCreateVideoMixer(IUnknown *owner, REFIID riid_device, REFIID riid, void **obj);")
|
2020-06-19 15:36:29 +02:00
|
|
|
cpp_quote("HRESULT WINAPI MFCreateVideoSampleFromSurface(IUnknown *surface, IMFSample **sample);")
|