2013-04-18, 19:27
Hello,
I was thinking of creating a pull request to patch for some nvidia cards(Nvidia GeForce 320M, etc) the problem that exists of a white lines on screen on hardware decoded video. But before that the problem here is that i don't know if there is an object that tells this piece of info. And what will it be the best way of setting this patch for several video cards.
Basically i want to write something like this:
Is it possible?
I was thinking of creating a pull request to patch for some nvidia cards(Nvidia GeForce 320M, etc) the problem that exists of a white lines on screen on hardware decoded video. But before that the problem here is that i don't know if there is an object that tells this piece of info. And what will it be the best way of setting this patch for several video cards.
Basically i want to write something like this:
Code:
CStdString rendervendor = g_Windowing.GetRenderVendor();
rendervendor.MakeLower();
if (rendervendor.find("nvidia") != std::string::npos)
{
// Nvidia gpu's are all powerful and work the way god intended
m_decode_async = true;
if(videocardId == toPathId)
{
m_use_cvBufferRef = false;
}
else
{
m_use_cvBufferRef = true;
}
}
else if (rendervendor.find("intel") != std::string::npos)
{
// Intel gpu are borked when using cvBufferRef
m_decode_async = true;
m_use_cvBufferRef = false;
}
else
{
// ATI gpu's are borked when using async decode
m_decode_async = false;
m_use_cvBufferRef = true;
}
Is it possible?