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
114
115
116
|
/*
* Copyright (C) 2010-2014 Hendrik Leppkes
* http://www.1f0.de
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
* This program 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, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
#include "LAVVideoSettings.h"
#include "BaseDSPropPage.h"
#include "Media.h"
// {278407C2-558C-4BED-83A0-B6FA454200BD}
DEFINE_GUID(CLSID_LAVVideoSettingsProp,
0x278407c2, 0x558c, 0x4bed, 0x83, 0xa0, 0xb6, 0xfa, 0x45, 0x42, 0x0, 0xbd);
// {2D4D6F88-8B41-40A2-B297-3D722816648B}
DEFINE_GUID(CLSID_LAVVideoFormatsProp,
0x2d4d6f88, 0x8b41, 0x40a2, 0xb2, 0x97, 0x3d, 0x72, 0x28, 0x16, 0x64, 0x8b);
class CLAVVideoSettingsProp : public CBaseDSPropPage
{
public:
CLAVVideoSettingsProp(LPUNKNOWN pUnk, HRESULT* phr);
~CLAVVideoSettingsProp();
HRESULT OnActivate();
HRESULT OnConnect(IUnknown *pUnk);
HRESULT OnDisconnect();
HRESULT OnApplyChanges();
INT_PTR OnReceiveMessage(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
private:
HRESULT LoadData();
HRESULT UpdateHWOptions();
HRESULT UpdateYADIFOptions();
void SetDirty()
{
m_bDirty = TRUE;
if (m_pPageSite)
{
m_pPageSite->OnStatusChange(PROPPAGESTATUS_DIRTY);
}
}
private:
ILAVVideoSettings *m_pVideoSettings = nullptr;
ILAVVideoStatus *m_pVideoStatus = nullptr;
DWORD m_dwNumThreads;
DWORD m_StreamAR;
DWORD m_DeintFieldOrder;
LAVDeintMode m_DeintMode;
DWORD m_dwRGBOutput;
BOOL m_bPixFmts[LAVOutPixFmt_NB];
DWORD m_HWAccel;
BOOL m_HWAccelCodecs[HWCodec_NB];
DWORD m_HWRes;
DWORD m_HWDeintAlgo;
DWORD m_HWDeintOutMode;
BOOL m_HWDeintHQ;
BOOL m_SWDeint;
DWORD m_SWDeintOutMode;
DWORD m_DitherMode;
BOOL m_TrayIcon;
};
class CLAVVideoFormatsProp : public CBaseDSPropPage
{
public:
CLAVVideoFormatsProp(LPUNKNOWN pUnk, HRESULT* phr);
~CLAVVideoFormatsProp();
HRESULT OnActivate();
HRESULT OnConnect(IUnknown *pUnk);
HRESULT OnDisconnect();
HRESULT OnApplyChanges();
INT_PTR OnReceiveMessage(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
private:
HRESULT LoadData();
void SetDirty()
{
m_bDirty = TRUE;
if (m_pPageSite)
{
m_pPageSite->OnStatusChange(PROPPAGESTATUS_DIRTY);
}
}
private:
ILAVVideoSettings *m_pVideoSettings = nullptr;
BOOL m_bFormats[Codec_VideoNB];
BOOL m_bWMVDMO;
BOOL m_bDVD;
};
|