razn
asked on
Efficient way to access off-screen buffer memory
Hi,
I have a graphic application the draw images into off-screen buffer. 1000 times in a second the buffer pixels should be captured to memory. ( I need to pass the off-screen pixels to another application that compress the frame.) I have a code sample that uses CreateDIBSection and pass pBits. This way pBits provides me direct access to the pixels.
What is the most efficient way to do it?
hDesktopCompatibleDC=Creat eCompatibl eDC(hDeskt opDC);
hDesktopCompatibleBitmap=C reateDIBSe ction(hDes ktopDC,&bm pInfo,DIB_ RGB_COLORS ,&pBits,NU LL,0);
if(hDesktopCompatibleDC==N ULL || hDesktopCompatibleBitmap == NULL)
I have a graphic application the draw images into off-screen buffer. 1000 times in a second the buffer pixels should be captured to memory. ( I need to pass the off-screen pixels to another application that compress the frame.) I have a code sample that uses CreateDIBSection and pass pBits. This way pBits provides me direct access to the pixels.
What is the most efficient way to do it?
hDesktopCompatibleDC=Creat
hDesktopCompatibleBitmap=C
if(hDesktopCompatibleDC==N
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.