• 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
displaying an image sequence at high framerates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

displaying an image sequence at high framerates


  • Subject: displaying an image sequence at high framerates
  • From: Andrew Garber <email@hidden>
  • Date: Mon, 26 May 2003 00:39:07 -0700

I want to write an app which displays a sequence of images (eg. 001.jpg
- 200.jpg) in a custom view (subclass of NSView) around 30 frames per
second. What's the best way to do this?

- I have no other programming experience other than writing Cocoa apps,
and a few simple C++ command-line programs (I don't know Carbon)

- The documentation for the QuickTime API scares me! (It looks much
harder to learn than Cocoa)

- I tried using Quartz 2D, with calls like CGContextDrawImage(), but it
runs WAY slower than playing an image sequence in QuickTime Player. I
didn't create buffer of CGImageRefs (I just read each image in when it
needed to be displayed using CGDataProviderCreateWithURL and
CGImageCreateWithJPEGDataProvider). Should I have? Would that help
much? If so, how would I create such a buffer?

- What about Quartz Compositor or OpenGL? Could I use those
technologies? (I know next to nothing about them currently)

- If QuickTime is the only way to go, is there an EASY way to use it in
a cocoa app? Does anyone have any simple, well comented sample code to
get me started? (I've spent hours reading through Apple's sample code
and I still can't make head or tails of it)


ANY suggestion would be highly appreciated :)

Thanks,

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

  • Prev by Date: Re: NSOutlineView crashes
  • Next by Date: how do I unsubscribe?
  • Previous by thread: Re: NSOutlineView crashes
  • Next by thread: how do I unsubscribe?
  • Index(es):
    • Date
    • Thread