Re: QTMovie->PICT->NSImage
Re: QTMovie->PICT->NSImage
- Subject: Re: QTMovie->PICT->NSImage
- From: Tristan Harris <email@hidden>
- Date: Sat, 22 Jun 2002 15:10:29 -0700
Related to this same issue, my application was supposedly generating a
memory leak using this technique of QTMovie->PICT->NSImage translation
and drawing. I've spent the last two days trying to track down this
leak, but have been unsuccessful. I think that this leak may possibly
be caused by an Apple OS bug. To test this theory, I wrote a simple
MoviePlayer application no longer than 120 lines that uses this
translation from QTMovie to eventually an NSImage to draw each frame.
The leak still exists.. without the baggage of the rest of my
application. I've posted the project at:
http://www.stanford.edu/~tristanh/downloads/MoviePlayer.sit
Could someone please download it and verify this issue... it includes a
very small amount of source code.
Thanks,
Tristan
On Thursday, June 20, 2002, at 01:51 AM, Cameron Hayne wrote:
Tristan Harris <email@hidden> wrote:
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.
Maybe you could avoid the step where you draw the ImageRep into the
NSImage
- just do your operation on the ImageRep and then ask it to draw itself
in the window.
No need for an NSImage.
... Cameron
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
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.
_______________________________________________
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.