diag(windows-nui): log NuiImageFrameGetDepthImagePixelFrameTexture + LockRect to find pixel-access path
This commit is contained in:
1 parent
7314effff6
commit
df737fbe80
2 files changed
+15
No files matched your search
@@ -1,5 +1,7 @@
|
||||
#include "frame_texture.h"
|
||||
|
||||
#include "shim_log.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
namespace nui_shim {
|
||||
@@ -71,6 +73,12 @@ HRESULT STDMETHODCALLTYPE NuiFrameTexture::LockRect(UINT Level,
|
||||
pLockedRect->Pitch = static_cast<INT>(width_ * bytes_per_pixel_);
|
||||
pLockedRect->size = static_cast<INT>(bits_.size());
|
||||
pLockedRect->pBits = bits_.data();
|
||||
static unsigned lr = 0;
|
||||
if (lr < 8) {
|
||||
ShimLog("LockRect#%u %ux%u bpp=%u pitch=%d size=%d", lr, width_, height_,
|
||||
bytes_per_pixel_, pLockedRect->Pitch, pLockedRect->size);
|
||||
}
|
||||
++lr;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "sensor_com.h"
|
||||
|
||||
#include "coordmap.h"
|
||||
#include "shim_log.h"
|
||||
|
||||
namespace nui_shim {
|
||||
|
||||
@@ -207,6 +208,12 @@ NuiSensorCom::NuiImageFrameGetDepthImagePixelFrameTexture(
|
||||
if (ppFrameTexture == nullptr || pImageFrame == nullptr) {
|
||||
return E_POINTER;
|
||||
}
|
||||
static unsigned dpx = 0;
|
||||
if (dpx < 6) {
|
||||
ShimLog("NuiImageFrameGetDepthImagePixelFrameTexture call#%u (game wants extended depth)",
|
||||
dpx);
|
||||
}
|
||||
++dpx;
|
||||
if (pNearMode != nullptr) {
|
||||
*pNearMode = FALSE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user