diff options
author | a_afra <a_afra@users.sourceforge.net> | 2010-08-25 22:55:30 +0400 |
---|---|---|
committer | a_afra <a_afra@users.sourceforge.net> | 2010-08-25 22:55:30 +0400 |
commit | 9fc0785130b063034a5dc36196dfb38eace599af (patch) | |
tree | d5df1f81aaee3b909809729507fd67bb41889a58 /src/apps/mplayerc | |
parent | f85d304e744542307140110db7f40a029b65818f (diff) |
- Disable color management, floating point and 10-bit options if not supported
- Fixed temporary texture creation bug in full floating point processing
- Renderer cosmetics
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2346 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc')
-rw-r--r-- | src/apps/mplayerc/MainFrm.cpp | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/apps/mplayerc/MainFrm.cpp b/src/apps/mplayerc/MainFrm.cpp index 7e84da55a..de7318af8 100644 --- a/src/apps/mplayerc/MainFrm.cpp +++ b/src/apps/mplayerc/MainFrm.cpp @@ -5740,9 +5740,11 @@ void CMainFrame::OnUpdateViewColorManagementEnable(CCmdUI* pCmdUI) {
AppSettings& s = AfxGetAppSettings();
CRenderersSettings& r = s.m_RenderersSettings;
+ CRenderersData& rd = AfxGetMyApp()->m_Renderers;
bool supported = ((s.iDSVideoRendererType == VIDRNDT_DS_EVR_CUSTOM ||
s.iDSVideoRendererType == VIDRNDT_DS_VMR9RENDERLESS) &&
- r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D);
+ r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D) &&
+ rd.m_bFP16Support;
pCmdUI->Enable (supported);
pCmdUI->SetCheck(r.m_RenderSettings.iVMR9ColorManagementEnable);
@@ -5752,9 +5754,11 @@ void CMainFrame::OnUpdateViewColorManagementInput(CCmdUI* pCmdUI) {
AppSettings& s = AfxGetAppSettings();
CRenderersSettings& r = s.m_RenderersSettings;
+ CRenderersData& rd = AfxGetMyApp()->m_Renderers;
bool supported = ((s.iDSVideoRendererType == VIDRNDT_DS_EVR_CUSTOM ||
s.iDSVideoRendererType == VIDRNDT_DS_VMR9RENDERLESS) &&
r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D) &&
+ rd.m_bFP16Support &&
r.m_RenderSettings.iVMR9ColorManagementEnable;
pCmdUI->Enable (supported);
@@ -5783,9 +5787,11 @@ void CMainFrame::OnUpdateViewColorManagementGamma(CCmdUI* pCmdUI) {
AppSettings& s = AfxGetAppSettings();
CRenderersSettings& r = s.m_RenderersSettings;
+ CRenderersData& rd = AfxGetMyApp()->m_Renderers;
bool supported = ((s.iDSVideoRendererType == VIDRNDT_DS_EVR_CUSTOM ||
s.iDSVideoRendererType == VIDRNDT_DS_VMR9RENDERLESS) &&
r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D) &&
+ rd.m_bFP16Support &&
r.m_RenderSettings.iVMR9ColorManagementEnable;
pCmdUI->Enable (supported);
@@ -5814,9 +5820,11 @@ void CMainFrame::OnUpdateViewColorManagementIntent(CCmdUI* pCmdUI) {
AppSettings& s = AfxGetAppSettings();
CRenderersSettings& r = s.m_RenderersSettings;
+ CRenderersData& rd = AfxGetMyApp()->m_Renderers;
bool supported = ((s.iDSVideoRendererType == VIDRNDT_DS_EVR_CUSTOM ||
s.iDSVideoRendererType == VIDRNDT_DS_VMR9RENDERLESS) &&
r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D) &&
+ rd.m_bFP16Support &&
r.m_RenderSettings.iVMR9ColorManagementEnable;
pCmdUI->Enable (supported);
@@ -5932,9 +5940,11 @@ void CMainFrame::OnUpdateViewHighColorResolution(CCmdUI* pCmdUI) {
AppSettings& s = AfxGetAppSettings();
CRenderersSettings& r = s.m_RenderersSettings;
+ CRenderersData& rd = AfxGetMyApp()->m_Renderers;
bool supported = ((s.iDSVideoRendererType == VIDRNDT_DS_EVR_CUSTOM ||
s.iDSVideoRendererType == VIDRNDT_DS_SYNC) &&
- r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D);
+ r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D) &&
+ rd.m_b10bitSupport;
pCmdUI->Enable (supported);
pCmdUI->SetCheck(r.m_RenderSettings.iEVRHighColorResolution);
@@ -5944,8 +5954,10 @@ void CMainFrame::OnUpdateViewForceInputHighColorResolution(CCmdUI* pCmdUI) {
AppSettings& s = AfxGetAppSettings();
CRenderersSettings& r = s.m_RenderersSettings;
+ CRenderersData& rd = AfxGetMyApp()->m_Renderers;
bool supported = ((s.iDSVideoRendererType == VIDRNDT_DS_EVR_CUSTOM) &&
- r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D);
+ r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D) &&
+ rd.m_b10bitSupport;
pCmdUI->Enable (supported);
pCmdUI->SetCheck(r.m_RenderSettings.iEVRForceInputHighColorResolution);
@@ -5955,9 +5967,11 @@ void CMainFrame::OnUpdateViewFullFloatingPointProcessing(CCmdUI* pCmdUI) {
AppSettings& s = AfxGetAppSettings();
CRenderersSettings& r = s.m_RenderersSettings;
+ CRenderersData& rd = AfxGetMyApp()->m_Renderers;
bool supported = ((s.iDSVideoRendererType == VIDRNDT_DS_EVR_CUSTOM ||
s.iDSVideoRendererType == VIDRNDT_DS_VMR9RENDERLESS) &&
- r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D);
+ r.iAPSurfaceUsage == VIDRNDT_AP_TEXTURE3D) &&
+ rd.m_bFP16Support;
pCmdUI->Enable (supported);
pCmdUI->SetCheck(r.m_RenderSettings.iVMR9FullFloatingPointProcessing);
|