Semi-OT QuickTime/OpenGL Textures
Semi-OT QuickTime/OpenGL Textures
- Subject: Semi-OT QuickTime/OpenGL Textures
- From: Scott Harper <email@hidden>
- Date: Mon, 12 Sep 2005 22:46:28 -0600
I realize this may be off the topic, but I'm already subscribed to SO
many mailing lists, I decided that I'll try my luck here first, and
see if I can avoid getting flamed. ~_^ Also, my question has to do
with SO many different things, OpenGL, QuickTime, AGP buss speed...
Why no ask in the general Cocoa list?
What I want to do is to take a quicktime video file, and upload the
frames to be used as textures on an OpenGL quad (or collection, since
most standard video formats are at least 720x480). Basically, I was
figuring on making a movie, setting the time of the movie, grabbing
the GWorld, and pulling the pixels into an array (or four, to break
up the texture size and avoid overstuffing the video card with too
much useless data), upload that as the texture(s), then draw the quad.
First off, are there better ways to go about doing this using the
QuickTime APIs? Or perhaps some way of improving my speed of
transfer, etc... because it SEEMS like it could well be pretty slow,
especially for QT to decode, then to grab all that data, and upload
to a new OGL texture -- I've heard transferring data across the AGP
bus isn't ALL that fast anyway.
Second, has there ever been an attempt at doing this before by anyone
here, who could maybe share their experiences (does it work, will it
be fast enough for "real-time"? -- ie: display the right frames at
the right time with no lag).
Third, is there a better way to get the movie data from quicktime
than setting the time each loop and grabbing the pixels? Can I pull
the time-base out of QT and check that on my own, and then pull the
frame, draw it, step forward one frame, wait for the next frame's
time to come, pull it, draw it, wait, ad nausium?
Fourth, I would like to pull the decoded (?) audio out and send it to
OpenAL (for 3D panning, etc...) if at all possible, and was looking
maybe for any hints about if this is possible, and in what directions
I should be looking. ^_^
Thanks for anything you can give me for help/direction!
--Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden