I have no idea what I'm supposed to do now, but I cant give up in the middle
Two days Search on H264 gave me only more confusion. I tried to find a library that would work something like encode(buffer) decode(buffer)
but I guess if it was that easy I wouldn't have to look for it...
I finaly found a reference to this tutorial:
http://dranger.com/ffmpeg/tutorial01.htmlon ffmpeg and I'll try to read it and follow closely to see if this can grab an array of COLORREF dwords (assuming here that the buffer is a big array, if not, I found a snippet by someone, who says his way is faster than the GetPixel macro, here:
http://stackoverflow.com/questions/10515646/get-pixel-color-fastest-wayand build an array myself to pass as data to be encoded).
PS.: Each time I look at something, your words come to my mind: "Know your data types"
I know I should read a DX tutorial or two before going any further...
And, by the way, just for reference, I did find something that streams the buffer, but I have no idea how it works (couldn't dissect it...) and its in C#, here:
https://github.com/fishjord/D3DFrameStreamer/tree/master/AVIStreamCLIIt also uses injection, but I guess this can be stripped somehow, if anyone want to stream his own app...