• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: QTMovie->PICT->NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTMovie->PICT->NSImage


  • Subject: Re: QTMovie->PICT->NSImage
  • From: Vince DeMarco <email@hidden>
  • Date: Sat, 22 Jun 2002 18:27:27 -0700

On Saturday, June 22, 2002, at 03:10 PM, Tristan Harris wrote:

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.


There is code in the system that does this already.

look at

/Developer/Examples/InterfaceBuilder/bMoviePalette/MyMovie.m

vince

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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: QTMovie->PICT->NSImage
      • From: Tristan Harris <email@hidden>
References: 
 >Re: QTMovie->PICT->NSImage (From: Tristan Harris <email@hidden>)

  • Prev by Date: Clicking through windows
  • Next by Date: Re: Escaping spaces in paths
  • Previous by thread: Re: QTMovie->PICT->NSImage
  • Next by thread: Re: QTMovie->PICT->NSImage
  • Index(es):
    • Date
    • Thread