Hi,

I have a QTMovie in a QTMovieView that I'm trying to rotate (during display) via the following code:

--

Movie theMovie = [myQTMovie quickTimeMovie];
long theAngle = 90; // using 90 degrees as an example -- rotating by 180 degrees doesn't work either

MatrixRecord theMovieMatrix;
GetMovieMatrix(theMovie, &theMovieMatrix);
NSLog(@"get matrix error: %d", (int)GetMoviesError());        // returns noErr

Rect theMovieBox;
GetMovieBox(theMovie, &theMovieBox);
NSLog(@"get box error: %d", (int)GetMoviesError());   // returns noErr

RotateMatrix(&theMovieMatrix, Long2Fix(theAngle), Long2Fix((long) (theMovieBox.right - theMovieBox.left)) / 2, Long2Fix((long) (theMovieBox.bottom - theMovieBox.top)) / 2);
NSLog(@"rotate error: %d", (int)GetMoviesError());    // returns noErr

SetMovieMatrix(theMovie, &theMovieMatrix);
NSLog(@"set matrix error: %d", (int)GetMoviesError());        // returns noErr

--

Here's my problem: This used to work just fine with earlier QuickTime versions, but I have recently noticed that it doesn't work with QuickTime 7.5.5, at least when targeting Mac OS X 10.5. The movie just keeps its same old original orientation.

(I'm afraid I'm not sure at which QuickTime version exactly it stopped working. I hadn't checked in a while.)

As you can see from my code snippet, I don't get any error when rotating. In addition to that, this doesn't seem to be a system-wide QuickTime bug, as I can rotate the very same movie with QuickTime Pro just fine.

So does anyone know whether this is a problem that's specific for dealing with QuickTime movies from a cocoa app? Or is there a more elegant way of rotating movies?

Thanks!

Peter.
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to