File: mftransform.idl

package info (click to toggle)
wine 4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 209,096 kB
  • sloc: ansic: 2,906,412; perl: 18,817; yacc: 15,629; makefile: 9,134; objc: 6,543; lex: 4,315; python: 1,786; cpp: 1,042; sh: 771; java: 742; xml: 557; awk: 69; cs: 17
file content (113 lines) | stat: -rw-r--r-- 4,093 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
 * Copyright 2017 Alistair Leslie-Hughes
 *
 * 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 "mfobjects.idl";

typedef struct _MFT_INPUT_STREAM_INFO
{
    LONGLONG hnsMaxLatency;
    DWORD    dwFlags;
    DWORD    cbSize;
    DWORD    cbMaxLookahead;
    DWORD    cbAlignment;
} MFT_INPUT_STREAM_INFO;

typedef struct _MFT_OUTPUT_STREAM_INFO
{
    DWORD dwFlags;
    DWORD cbSize;
    DWORD cbAlignment;
} MFT_OUTPUT_STREAM_INFO;

typedef struct _MFT_OUTPUT_DATA_BUFFER
{
    DWORD         dwStreamID;
    IMFSample     *pSample;
    DWORD         dwStatus;
    IMFCollection *pEvents;
} MFT_OUTPUT_DATA_BUFFER, *PMFT_OUTPUT_DATA_BUFFER;

typedef enum _MFT_MESSAGE_TYPE
{
    MFT_MESSAGE_COMMAND_FLUSH          = 0x00000000,
    MFT_MESSAGE_COMMAND_DRAIN          = 0x00000001,
    MFT_MESSAGE_SET_D3D_MANAGER        = 0x00000002,
    MFT_MESSAGE_DROP_SAMPLES           = 0x00000003,
    MFT_MESSAGE_COMMAND_TICK           = 0x00000004,
    MFT_MESSAGE_NOTIFY_BEGIN_STREAMING = 0x10000000,
    MFT_MESSAGE_NOTIFY_END_STREAMING   = 0x10000001,
    MFT_MESSAGE_NOTIFY_END_OF_STREAM   = 0x10000002,
    MFT_MESSAGE_NOTIFY_START_OF_STREAM = 0x10000003,
    MFT_MESSAGE_COMMAND_MARKER         = 0x20000000
} MFT_MESSAGE_TYPE;

[
    object,
    uuid(bf94c121-5b05-4e6f-8000-ba598961414d)
]
interface IMFTransform : IUnknown
{
    HRESULT GetStreamLimits([out] DWORD *input_minimum, [out] DWORD *input_maximum, [out] DWORD *output_minimum,
                            [out] DWORD *output_maximum);

    HRESULT GetStreamCount([out] DWORD *inputs,  [out] DWORD *outputs);

    HRESULT GetStreamIDs([in] DWORD input_size, [out,size_is(input_size)] DWORD *inputs,
                         [in] DWORD output_size, [out,size_is(output_size)] DWORD *outputs);

    HRESULT GetInputStreamInfo([in] DWORD id, [out] MFT_INPUT_STREAM_INFO *info);

    HRESULT GetOutputStreamInfo([in] DWORD id, [out] MFT_OUTPUT_STREAM_INFO *info);

    HRESULT GetAttributes([out] IMFAttributes **attributes);

    HRESULT GetInputStreamAttributes([in] DWORD id, [out] IMFAttributes **attributes);

    HRESULT GetOutputStreamAttributes([in] DWORD id, [out] IMFAttributes **attributes);

    HRESULT DeleteInputStream([in] DWORD id);

    HRESULT AddInputStreams([in] DWORD streams, [in] DWORD *ids);

    HRESULT GetInputAvailableType([in] DWORD id, [in] DWORD index, [out] IMFMediaType **type);

    HRESULT GetOutputAvailableType([in] DWORD id, [in] DWORD index, [out] IMFMediaType **type);

    HRESULT SetInputType(DWORD id, [in] IMFMediaType *type, [in] DWORD flags);

    HRESULT SetOutputType(DWORD id, [in] IMFMediaType *type, [in] DWORD flags);

    HRESULT GetInputCurrentType([in] DWORD id, [out] IMFMediaType **type);

    HRESULT GetOutputCurrentType([in] DWORD id, [out] IMFMediaType **type);

    HRESULT GetInputStatus([in] DWORD id, [out] DWORD *flags);

    HRESULT GetOutputStatus([out] DWORD *flags);

    HRESULT SetOutputBounds([in] LONGLONG lower, [in] LONGLONG upper);

    HRESULT ProcessEvent([in] DWORD id, [in] IMFMediaEvent *event);

    HRESULT ProcessMessage([in] MFT_MESSAGE_TYPE message, [in] ULONG_PTR param);

    [local] HRESULT ProcessInput([in] DWORD id, [in] IMFSample *sample, [in] DWORD flags);

    [local] HRESULT ProcessOutput([in] DWORD flags, [in] DWORD count, [in,out,size_is(count)] MFT_OUTPUT_DATA_BUFFER *samples,
                                  [out] DWORD *status);
}