I’m a Java guy , my C++ is very rusty, but this is on my plate.
How can I “transcode” the contents of a Pixel Buffer Object (PBO) to a Windows bitmap? The kind that has an HBITMAP handle?
We are working with Nvidia’s CUDA, and we have inherited some existing code. In it, the GPU has worked its parallel magic on a PBO. The existing code uses GLUT to show the PBO on a window on the display. We need to get rid of the display and the window, and recode the PBO into a Windows bitmap. In case you are wondering, the windows bitmap will be converted into a PNG, but the plan right now is that will be done inside a Java application server via BufferedImage.
What I’m looking for right now is a library function, or technique that will take a PBO, and creates a bitmap. Extra good would be if the function created anything that’s easy to convert into a PNG or a java.awt.image.BufferedImage
Can anyone help?