Bug 744063 - Pass Y' texture size rather than picture size to Nv3DV. r=bas

--HG--
extra : rebase_source : 3a8744b67a9cd8b3f149d0c20fa5e0619b34fe9a
This commit is contained in:
Matthew Gregan 2012-05-24 11:00:26 +12:00
Родитель 7321d1a414
Коммит cf2ef733a6
2 изменённых файлов: 7 добавлений и 8 удалений

Просмотреть файл

@ -261,8 +261,8 @@ ImageLayerD3D10::RenderLayer()
if (yuvImage->mData.mStereoMode != STEREO_MODE_MONO) {
// Dst resource is optional
GetNv3DVUtils()->SendNv3DVMetaData((unsigned int)yuvImage->mSize.width,
(unsigned int)yuvImage->mSize.height, (HANDLE)(data->mYTexture), (HANDLE)(NULL));
GetNv3DVUtils()->SendNv3DVMetaData((unsigned int)yuvImage->mData.mYSize.width,
(unsigned int)yuvImage->mData.mYSize.height, (HANDLE)(data->mYTexture), (HANDLE)(NULL));
}
}

Просмотреть файл

@ -94,15 +94,14 @@ Nv3DVUtils::SetDeviceInfo(IUnknown *devUnknown)
return;
}
bool rv = false;
rv = m3DVStreaming->Nv3DVSetDevice(devUnknown);
if (rv) {
bool rv = m3DVStreaming->Nv3DVSetDevice(devUnknown);
if (!rv) {
NS_WARNING("Nv3DVStreaming Nv3DVControl failed!");
return;
}
rv = m3DVStreaming->Nv3DVControl(NV_STEREO_MODE_RIGHT_LEFT, true, FIREFOX_3DV_APP_HANDLE);
NS_WARN_IF_FALSE(!rv, "Nv3DVStreaming Nv3DVControl failed!");
NS_WARN_IF_FALSE(rv, "Nv3DVStreaming Nv3DVControl failed!");
}
/*
@ -116,7 +115,7 @@ Nv3DVUtils::SendNv3DVControl(Nv_Stereo_Mode eStereoMode, bool bEnableStereo, DWO
return;
DebugOnly<bool> rv = m3DVStreaming->Nv3DVControl(eStereoMode, bEnableStereo, dw3DVAppHandle);
NS_WARN_IF_FALSE(!rv, "Nv3DVStreaming Nv3DVControl failed!");
NS_WARN_IF_FALSE(rv, "Nv3DVStreaming Nv3DVControl failed!");
}
/*
@ -130,7 +129,7 @@ Nv3DVUtils::SendNv3DVMetaData(unsigned int dwWidth, unsigned int dwHeight, HANDL
return;
DebugOnly<bool> rv = m3DVStreaming->Nv3DVMetaData((DWORD)dwWidth, (DWORD)dwHeight, hSrcLuma, hDst);
NS_WARN_IF_FALSE(!rv, "Nv3DVStreaming Nv3DVMetaData failed!");
NS_WARN_IF_FALSE(rv, "Nv3DVStreaming Nv3DVMetaData failed!");
}
} /* namespace layers */