コード例 #1
0
ファイル: RenderBufferManager.cpp プロジェクト: HofiOne/xbmc
bool CRenderBufferManager::HasScalingMethod(ESCALINGMETHOD scalingMethod) const
{
  CRenderVideoSettings videoSettings;
  videoSettings.SetScalingMethod(scalingMethod);

  for (const auto &pools : m_pools)
  {
    for (const auto &pool : pools.pools)
      if (pool->IsCompatible(videoSettings))
        return true;
  }

  return false;
}
コード例 #2
0
ファイル: RPWinRenderer.cpp プロジェクト: FernetMenta/xbmc
bool CWinRenderBufferPool::IsCompatible(const CRenderVideoSettings &renderSettings) const
{
  if (!CRPWinRenderer::SupportsScalingMethod(renderSettings.GetScalingMethod()))
    return false;

  return true;
}
コード例 #3
0
bool CRenderBufferPoolOpenGL::IsCompatible(const CRenderVideoSettings &renderSettings) const
{
  return CRPRendererOpenGL::SupportsScalingMethod(renderSettings.GetScalingMethod());
}
コード例 #4
0
ファイル: RPWinRenderer.cpp プロジェクト: AlwinEsch/kodi
bool CWinRenderBufferPool::IsCompatible(const CRenderVideoSettings &renderSettings) const
{
  return GetShader(renderSettings.GetScalingMethod()) != nullptr;
}