Re: slow QTKit framegrabbing
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