include/mfreadwrite.idl: Add interface IMFSinkWriter.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3b9e49b4d8
commit
3f01ab4c39
|
@ -31,6 +31,26 @@ enum
|
|||
MF_SOURCE_READER_CURRENT_TYPE_INDEX = 0xffffffff
|
||||
};
|
||||
|
||||
typedef struct _MF_SINK_WRITER_STATISTICS
|
||||
{
|
||||
DWORD cb;
|
||||
LONGLONG llLastTimestampReceived;
|
||||
LONGLONG llLastTimestampEncoded;
|
||||
LONGLONG llLastTimestampProcessed;
|
||||
LONGLONG llLastStreamTickReceived;
|
||||
LONGLONG llLastSinkSampleRequest;
|
||||
QWORD qwNumSamplesReceived;
|
||||
QWORD qwNumSamplesEncoded;
|
||||
QWORD qwNumSamplesProcessed;
|
||||
QWORD qwNumStreamTicksReceived;
|
||||
DWORD dwByteCountQueued;
|
||||
QWORD qwByteCountProcessed;
|
||||
DWORD dwNumOutstandingSinkSampleRequests;
|
||||
DWORD dwAverageSampleRateReceived;
|
||||
DWORD dwAverageSampleRateEncoded;
|
||||
DWORD dwAverageSampleRateProcessed;
|
||||
} MF_SINK_WRITER_STATISTICS;
|
||||
|
||||
interface IMFMediaSource;
|
||||
|
||||
[
|
||||
|
@ -53,5 +73,25 @@ interface IMFSourceReader : IUnknown
|
|||
HRESULT GetPresentationAttribute([in] DWORD index, [in] REFGUID guid, [out] PROPVARIANT *attr);
|
||||
};
|
||||
|
||||
[
|
||||
object,
|
||||
uuid(3137f1cd-fe5e-4805-a5d8-fb477448cb3d),
|
||||
local
|
||||
]
|
||||
interface IMFSinkWriter : IUnknown
|
||||
{
|
||||
HRESULT AddStream([in] IMFMediaType *type, [out] DWORD *index);
|
||||
HRESULT SetInputMediaType([in] DWORD index, [in] IMFMediaType *type, [in] IMFAttributes *parameters);
|
||||
HRESULT BeginWriting(void);
|
||||
HRESULT WriteSample([in] DWORD index, [in] IMFSample *sample);
|
||||
HRESULT SendStreamTick([in] DWORD index, [in] LONGLONG timestamp);
|
||||
HRESULT PlaceMarker([in] DWORD index, [in] void *context);
|
||||
HRESULT NotifyEndOfSegment([in] DWORD index);
|
||||
HRESULT Flush([in] DWORD index);
|
||||
HRESULT Finalize(void);
|
||||
HRESULT GetServiceForStream([in] DWORD index, [in] REFGUID service, [in] REFIID riid, [out] void **object);
|
||||
HRESULT GetStatistics([in] DWORD index, [out] MF_SINK_WRITER_STATISTICS *stats);
|
||||
};
|
||||
|
||||
cpp_quote( "HRESULT WINAPI MFCreateSourceReaderFromMediaSource(IMFMediaSource *source, IMFAttributes *attributes," )
|
||||
cpp_quote( " IMFSourceReader **reader);" )
|
||||
|
|
Loading…
Reference in New Issue