forked from clsid2/mpc-hc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFilterInterfaces.h
More file actions
64 lines (60 loc) · 2.95 KB
/
Copy pathFilterInterfaces.h
File metadata and controls
64 lines (60 loc) · 2.95 KB
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
/*
* (C) 2019 see Authors.txt
*
* This file is part of MPC-HC.
*
* MPC-HC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* MPC-HC 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
interface __declspec(uuid("3F56FEBC-633C-4C76-8455-0787FC62C8F8")) IExFilterInfo : public IUnknown
{
// The memory for strings and binary data is allocated by the callee
// by using LocalAlloc. It is the caller's responsibility to release the
// memory by calling LocalFree.
STDMETHOD(GetPropertyInt )(LPCSTR field, int *value) PURE;
STDMETHOD(GetPropertyString)(LPCSTR field, LPWSTR *value, unsigned *chars) PURE;
STDMETHOD(GetPropertyBin )(LPCSTR field, LPVOID *value, unsigned *size ) PURE;
};
// return values:
// E_NOTIMPL - method not implemented, any parameters will be ignored.
// E_POINTER - invalid pointer
// E_INVALIDARG - wrong name or type of field
// E_ABORT - field is correct, but the value is undefined
// S_OK - operation successful
interface __declspec(uuid("37CBDF10-D65E-4E5A-8F37-40E0C8EA1695")) IExFilterConfig : public IUnknown
{
// The memory for strings and binary data is allocated by the callee
// by using LocalAlloc. It is the caller's responsibility to release the
// memory by calling LocalFree.
STDMETHOD(Flt_GetBool)(LPCSTR field, bool* value) PURE;
STDMETHOD(Flt_GetInt)(LPCSTR field, int* value) PURE;
STDMETHOD(Flt_GetInt64)(LPCSTR field, __int64* value) PURE;
STDMETHOD(Flt_GetDouble)(LPCSTR field, double* value) PURE;
STDMETHOD(Flt_GetString)(LPCSTR field, LPWSTR* value, unsigned* chars) PURE;
STDMETHOD(Flt_GetBin)(LPCSTR field, LPVOID* value, unsigned* size) PURE;
STDMETHOD(Flt_SetBool)(LPCSTR field, bool value) PURE;
STDMETHOD(Flt_SetInt)(LPCSTR field, int value) PURE;
STDMETHOD(Flt_SetInt64)(LPCSTR field, __int64 value) PURE;
STDMETHOD(Flt_SetDouble)(LPCSTR field, double value) PURE;
STDMETHOD(Flt_SetString)(LPCSTR field, LPWSTR value, int chars) PURE;
STDMETHOD(Flt_SetBin)(LPCSTR field, LPVOID value, int size) PURE;
};
// available settings:
// name type filter mode valid values
// version int64 MpcVideoRenderer get 0.3.3.886 or newer
// statsEnable bool MpcVideoRenderer set/get true/false
// cmd_redraw bool MpcVideoRenderer set true
// playbackState int MpcVideoRenderer get 0-State_Stopped, 1-State_Paused, 2-State_Running
// rotation int MpcVideoRenderer get 0, 90, 180, 270 (reserved)