Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CSequence and getSimilarity function



On Monday, Feb 24, 2003, at 21:41 Australia/Melbourne, Esteban Luengo wrote:

MoviePlayer myPlayer = new MoviePlayer (m);
MoviePlayer mp = (MoviePlayer)myPlayer;
myQTCanvas.setClient (myPlayer, true);

I need to write a process in
background mode. It is possible to compare 2 frames in a QTCanvas that is
invisble in the screen?. Thanks a lot.

so first - the problem - if you grab the canvas pixels for a movie, you DO NOT grab the hardware drawing overlay.

The hardware overlay (usually) gets used when ever the video is compressed with a codec that works best in a YUV colour space - eg: mpeg, dv, h263 etc etc.

So, you need to set the gworld of the movie to the offscreen QDGraphics and NOT add it to the QTCanvas. (ie: you must make your own movie controller etc - adding it to the canvas will CHANGE the gworld of the movie);

Putting the movie offscreen makes it render using all software... be aware - this is lower performance than using the hardware drawing (if you are trying to do this real time etc).

you could then use one of the compositor classes to draw this offscreen image to a onscreen one for monitoring...


cheers,

dean perry
abstract plane pty. ltd.
_______________________________________________
quicktime-java mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-java
Do not post admin requests to the list. They will be ignored.

References: 
 >CSequence and getSimilarity function (From: "Esteban Luengo" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.