QTMovie->PICT->NSImage Performance
QTMovie->PICT->NSImage Performance
- Subject: QTMovie->PICT->NSImage Performance
- From: Tristan Harris <email@hidden>
- Date: Wed, 19 Jun 2002 23:54:33 -0700
Hi,
Don't ask why, but I need to manually go through a movie and display
each frame in an NSWindow. The way I'm currently doing this is by
loading the movie into an NSMovie, getting a PicHandle from the movie -
GetMoviePict(), making an NSPICTImageRep, drawing the imagerep into an
NSImage, doing an operation on the NSImage, then drawing it to the
window. This of course works, but is *VERY* CPU intensive. I tried
minimizing my alloc/dealloc's but it still goes pretty slow, especially
with higher resolution movies ( over 160 x 240 ). Hehe.
Keeping in mind that I need to do an operation on the NSImage when I'm
done and that I need to display each frame of the movie, what is the
most efficient way to go about this? Does anyone have any suggestions?
All help is appreciated.
I need to concentrate my efforts on performance..
-Tristan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.