• 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: Tristan Harris <email@hidden>
  • Date: Sat, 22 Jun 2002 20:08:12 -0700

I realize this, but without getting into what my real application DOES, is this a bug with QuickTime or CoreGraphics?? This is merely a small sample that just plays the movies... my application makes uses of this code and further does an operation on each NSImage. And I assure you, what I'm doing with the NSImage is not covered in the QuickTime API or bMoviePalette.


On Saturday, June 22, 2002, at 06:27 PM, Vince DeMarco wrote:


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.

References: 
 >Re: QTMovie->PICT->NSImage (From: Vince DeMarco <email@hidden>)

  • Prev by Date: How do I get serial numbers appearing in new window titles?
  • Next by Date: Re: makeFirstResponder doesn't
  • Previous by thread: Re: QTMovie->PICT->NSImage
  • Next by thread: How do I get serial numbers appearing in new window titles?
  • Index(es):
    • Date
    • Thread