Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Accessing the QuickTime frame buffer
I'm working on an app that creates animated texture maps from QuickTime movies. Our graphics system is all home-brewed, so using QTVR isn't really an option. I just want to read in the .MOV file, advance through it, and copy the data from each frame into a buffer.
In other words, we're using QuickTime strictly as in import format, and nothing more.
I've spent a couple of days trying to load the movie, create its GWorld, advance through its frames, retrieve its HBITMAP, and copy the DIBits to a memory buffer. So far, I can't advance through the frames (the various "interestingTime" calls recognize only the start of the movie and not subsequent frames). Nor can I retrieve the DIBits successfully--calls to GetPortHBITMAP return a reference to a bitmap with 0 width and 0 height.
I'd appreciate any help on these problems.
0 · ·