m_pVideoContext->VideoProcessorSetOutputColorSpace(m_pVideoProcessor, &colorSpace);
- ApplyFilter(D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS, CMediaSettings::GetInstance().GetCurrentVideoSettings().m_Brightness
- , 0, 100, 50);
- ApplyFilter(D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST, CMediaSettings::GetInstance().GetCurrentVideoSettings().m_Contrast
- , 0, 100, 50);
+ ApplyFilter(D3D11_VIDEO_PROCESSOR_FILTER_BRIGHTNESS,
+ CMediaSettings::GetInstance().GetCurrentVideoSettings().m_Brightness, 0, 100, 50);
+ ApplyFilter(D3D11_VIDEO_PROCESSOR_FILTER_CONTRAST,
+ CMediaSettings::GetInstance().GetCurrentVideoSettings().m_Contrast, 0, 100, 50);
+ ApplyFilter(D3D11_VIDEO_PROCESSOR_FILTER_HUE, 50, 0, 100, 50);
+ ApplyFilter(D3D11_VIDEO_PROCESSOR_FILTER_SATURATION, 50, 0, 100, 50);
// Rotation
m_pVideoContext->VideoProcessorSetStreamRotation(m_pVideoProcessor, DEFAULT_STREAM_INDEX, (rotation != 0), (D3D11_VIDEO_PROCESSOR_ROTATION)(rotation / 90));
if (SUCCEEDED(hr))
{
m_pSwapChain1->QueryInterface(__uuidof(IDXGISwapChain), reinterpret_cast<void**>(&m_pSwapChain));
+ // this hackish way to disable stereo in windowed mode:
+ // - restart presenting, 0 in sync interval discards current frame also
+ // - wait until new frame will be drawn
+ // sleep value possible depends on hardware m.b. need a setting in as.xml
+ if (m_useWindowedDX && !bHWStereoEnabled && m_bHWStereoEnabled)
+ {
+ DXGI_PRESENT_PARAMETERS presentParams = {};
+ presentParams.DirtyRectsCount = 0;
+ presentParams.pDirtyRects = NULL;
+ presentParams.pScrollRect = NULL;
+ m_pSwapChain1->Present1(0, DXGI_PRESENT_RESTART, &presentParams);
+
+ Sleep(100);
+ }
m_bHWStereoEnabled = bHWStereoEnabled;
}
dxgiFactory2->Release();
-
- // this hackish way to disable stereo in windowed mode:
- // - restart presenting, 0 in sync interval discards current frame also
- // - wait until new frame will be drawn
- // sleep value possible depends on hardware m.b. need a setting in as.xml
- if (!bHWStereoEnabled && m_useWindowedDX && bNeedRecreate)
- {
- DXGI_PRESENT_PARAMETERS presentParams = {};
- presentParams.DirtyRectsCount = 0;
- presentParams.pDirtyRects = NULL;
- presentParams.pScrollRect = NULL;
- m_pSwapChain1->Present1(0, DXGI_PRESENT_RESTART, &presentParams);
-
- Sleep(100);
- }
}
else
{