DirectDraw, and Creating AVIs
I've a pretty interesting question for you guys. I have a program that uses DirectShow, and I need a to figure out a way to take the data from the DirectShow window and write it into an AVI. The code that I have right now, is takes a Bitmap Screenshot in memory, and writes it directly to the AVI File, then loops until I tell it to stop. I should mention, that I haven't yet been able to put the bitmap that I store in memory into the AVI File, I'm not sure why, either, but I'm more concerned with the following problem atm.
But, in the process of the screencapture, I have to tell it to lock the window, actually, freeze the program, so it can take an accurate screenshot. It makes the program extremely jittery, as it's looping and writing to the AVI file.
I don't know what to do. Are there any DirectX functions that will allow faster screenshots, or even direct writing to avis?
Thanks in advance.