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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user