Actually, now that I think about it, GetBytes() returns a handle, not a pointer. Maybe the intent is to simply call GetBytes() to get that handle and copy the frame buffer address into the handle...or something to that effect?
I don't have it working yet though. I tried this (which looks syntactically unlikely. I doubt this is the intended approach):
- Code: Select all
void *frameBytesNew = NULL;
frame->GetBytes(&frameBytesNew);
*(char**)frameBytesNew = (char*)frameBytes;
Where frameBytes obviously holds the pixel data I'm trying to insert into the frame. I'm not sure how to do this. Any thoughts?