• 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
slow QTKit framegrabbing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

slow QTKit framegrabbing


  • Subject: slow QTKit framegrabbing
  • From: "Evan Harper" <email@hidden>
  • Date: Tue, 14 Mar 2006 01:56:45 -0500

I'm looping through a QTMovie, using these calls:

while(i=0;i<100;i++)
   {
        theImage = [theMovie frameImageAtTime:currentTime];

        [theImage drawInRect: NSMakeRect(x,0,1,240) fromRect: srcRect
operation:NSCompositeSourceOver fraction: 1.0];

        x++;
        [theMovie stepForward];
        currentTime = [theMovie currentTime];
    }

All I'm doing is grabbing some pixels from each frame and drawing them to an
NSView. It's taking an inordinate amount of time (1/2 hour for 2 minutes at
320x240). I'd rather not resort to the c api (I glaze over every time I see
the word 'pascal')- is QTKit incapable of this kind of performance?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: slow QTKit framegrabbing
      • From: John Stiles <email@hidden>
  • Prev by Date: Releasing Object belonging to Core Data transient attribute
  • Next by Date: Re: Releasing Object belonging to Core Data transient attribute
  • Previous by thread: Re: Releasing Object belonging to Core Data transient attribute
  • Next by thread: Re: slow QTKit framegrabbing
  • Index(es):
    • Date
    • Thread