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