FROM : douglas a. welton
DATE : Wed Apr 23 19:05:18 2008
Nikolai,
QTMovieView has a delegate method
- (CIImage*) view: (QTMovieView *)Target_View willDisplayImage:
(CIImage *)New_Image
This method gives you a CIImage to play with before it is displayed in
the Target_View. Check the header file for QTMovieView.h (near the
bottom). I think the the MyMovieFilter sample code uses this method.
Note: Depending on what type of analysis you are doing you may need
to convert the CIImage into a pixel-based format. If that is too slow
you may want to get friendly with QTVisualContextIsNewImageAvailable()
and the Display Link... check out the CIVideoDemoGL sample code.
regards,
douglas
On Apr 23, 2008, at 12:19 PM, Nikolai Hellwig wrote:
> Hi,
>
> I've done some image analysing software for QTKit Capture. It works
> fine. Now i need to use this for a quicktime movie.
> I can playback the quicktime movie, but i can't find any delegate
> which tells my application, that a new frame is rendered. If i can
> get this information i could grab this frame in order to analyse it.
>
> can anyone tell me how to do it? I don't want the user to click
> "grabFrame" or something like that.
>
> regards
> Nikolai Hellwig
DATE : Wed Apr 23 19:05:18 2008
Nikolai,
QTMovieView has a delegate method
- (CIImage*) view: (QTMovieView *)Target_View willDisplayImage:
(CIImage *)New_Image
This method gives you a CIImage to play with before it is displayed in
the Target_View. Check the header file for QTMovieView.h (near the
bottom). I think the the MyMovieFilter sample code uses this method.
Note: Depending on what type of analysis you are doing you may need
to convert the CIImage into a pixel-based format. If that is too slow
you may want to get friendly with QTVisualContextIsNewImageAvailable()
and the Display Link... check out the CIVideoDemoGL sample code.
regards,
douglas
On Apr 23, 2008, at 12:19 PM, Nikolai Hellwig wrote:
> Hi,
>
> I've done some image analysing software for QTKit Capture. It works
> fine. Now i need to use this for a quicktime movie.
> I can playback the quicktime movie, but i can't find any delegate
> which tells my application, that a new frame is rendered. If i can
> get this information i could grab this frame in order to analyse it.
>
> can anyone tell me how to do it? I don't want the user to click
> "grabFrame" or something like that.
>
> regards
> Nikolai Hellwig






Cocoa mail archive

