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

Re: slow QTKit framegrabbing


  • Subject: Re: slow QTKit framegrabbing
  • From: John Stiles <email@hidden>
  • Date: Tue, 14 Mar 2006 10:35:33 -0800

If you run Shark, where is the time being spent?

On Mar 13, 2006, at 10:56 PM, Evan Harper wrote:

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:
40blizzard.com


This email sent to email@hidden

_______________________________________________ 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: "Evan Harper" <email@hidden>
References: 
 >slow QTKit framegrabbing (From: "Evan Harper" <email@hidden>)

  • Prev by Date: Re: Getting a bullet into a NSString
  • Next by Date: Re: How to create a custom class to use in interface builder
  • Previous by thread: slow QTKit framegrabbing
  • Next by thread: Re: slow QTKit framegrabbing
  • Index(es):
    • Date
    • Thread