Rotating a QTMovie doesn't work the way it used to
Rotating a QTMovie doesn't work the way it used to
- Subject: Rotating a QTMovie doesn't work the way it used to
- From: Peter Maurer <email@hidden>
- Date: Wed, 22 Oct 2008 12:01:06 +0200
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@hidden)
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:
This email sent to email@hidden