Original Post
Hi, I'm developing the Direct3D video driver for MPlayer and I have a simple question. I want to implement MPlayer's brightness/contrast/etc. controls in my driver, but I'm not sure how I should proceed. I was naive enough to believe that there is an API, which can manipulate the contents of a offscreen plain surface, which I use to copy each frame into or the RGB backbuffer I StretRect onto, but there's no such thing. What's your advice? I want to do the conversion on the GPU. There is already a software filter working on the CPU, but this is not the point. I'm pretty new to Direct3D programming and DirectX as a whole. Should I write a pixel shader to do the work or there is an easier way? Thank you in advance!