|
41 | 41 | #define OPT_VPEnableP01x L"VPEnableP01x" |
42 | 42 | #define OPT_VPEnableYUY2 L"VPEnableYUY2" |
43 | 43 | #define OPT_VPEnableOther L"VPEnableOther" |
| 44 | +#define OPT_VPDinterlacing L"VPDinterlacing" |
44 | 45 | #define OPT_DoubleFrateDeint L"DoubleFramerateDeinterlace" |
45 | 46 | #define OPT_VPScaling L"VPScaling" |
46 | 47 | #define OPT_VPSuperResolution L"VPSuperResolution" |
@@ -190,6 +191,9 @@ CMpcVideoRenderer::CMpcVideoRenderer(LPUNKNOWN pUnk, HRESULT* phr) |
190 | 191 | if (ERROR_SUCCESS == key.QueryDWORDValue(OPT_VPEnableOther, dw)) { |
191 | 192 | m_Sets.VPFmts.bOther = !!dw; |
192 | 193 | } |
| 194 | + if (ERROR_SUCCESS == key.QueryDWORDValue(OPT_VPDinterlacing, dw)) { |
| 195 | + m_Sets.iVPDinterlacing = discard<int>(dw, DEINT_Enable, DEINT_Disable, DEINT_HackFutureFrames); |
| 196 | + } |
193 | 197 | if (ERROR_SUCCESS == key.QueryDWORDValue(OPT_DoubleFrateDeint, dw)) { |
194 | 198 | m_Sets.bDeintDouble = !!dw; |
195 | 199 | } |
@@ -1225,6 +1229,8 @@ STDMETHODIMP CMpcVideoRenderer::SaveSettings() |
1225 | 1229 | key.SetDWORDValue(OPT_VPEnableP01x, m_Sets.VPFmts.bP01x); |
1226 | 1230 | key.SetDWORDValue(OPT_VPEnableYUY2, m_Sets.VPFmts.bYUY2); |
1227 | 1231 | key.SetDWORDValue(OPT_VPEnableOther, m_Sets.VPFmts.bOther); |
| 1232 | + // TODO |
| 1233 | + //key.SetDWORDValue(OPT_VPDinterlacing, m_Sets.iVPDinterlacing); |
1228 | 1234 | key.SetDWORDValue(OPT_DoubleFrateDeint, m_Sets.bDeintDouble); |
1229 | 1235 | key.SetDWORDValue(OPT_VPScaling, m_Sets.bVPScaling); |
1230 | 1236 | key.SetDWORDValue(OPT_VPSuperResolution, m_Sets.iVPSuperRes); |
|
0 commit comments