Okay, here's the goal. I want to be able to load and playback AVI
files in a simple OCX of my own design, without any dependency on
other non-standard controls or dll servers. So far, this has meant
wrapping my poor brain around various unfamiliar API's. I've achieved
success at drawing AVI frames into a PictureBox using Ray Mercer's
AVIFile and cDIB, with StretchDIBits cobbled into cDIB to provide
scaling/drawing functionality. Now I have a problem of speed - well,
two problems, really:
1. How do I achieve high-resolution timing so that I'm not stuck with
the slow Timer control, but without relying on another OCX or dll?
2. How do I then speed up drawing the frames so that it can handle
the higher timer resolution and play back at the proper speed?
For speeding up drawing, I've seen a solution that I think might work
which uses a memory DC to buffer the video into, but the example I saw
used a dll and was beyond my ability to pick apart for my own use.
That was at
As to the timer issue, the only solutions I've seen so far require the
use of an OCX or dll. I really need this to be in a class or module
that will compile right into my "standalone" OCX.
If anyone is willing to spend some time bringing a graphics
programming newbie up to speed (no pun intended) on these issues, I
would really appreciate the effort!