What is the best way to iterate through all the frames of a QTMovie
"Best"? Don't know. But you can definitely do it this way:
QTTime endOfMovie = [movie duration];
... grab frame ...
} while (QTTimeCompare([movie currentTime], endOfMovie) ==
... grab last frame ...
I've been fiddling, and this method is actually reeeeally slow if
you're using frameImageAtTime:withAttributes:error:. Even by
specifying the image type as a pixel buffer or a GL texture, it's
still really slow.
What I did find is that if you create and use a QTVisualContext for
the movie, you can do the stepping above, but use the ImageAvailable
callback to call QTVisualContextCopyImageForTime, and get a copy of
the frame. I haven't actually *used* this used this yet, but it seems
to work fine and it's much much faster.
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden