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: 1 movie only on my ATI 9800?



At 7:41pm -0600 30/11/2004, chris clepper wrote:
I can pinpoint with some certainty that the performance bottleneck is the conversion of YUV to RGB done by Quicktime. Use one of the QT YUV pixel formats in QTNewGWorldFromPtr() and the matching Apple YCbCr GL formats for texturing. This is easily a 400% speed improvement, and I have had G5s playing 1920x1080 clips textured onto hundreds of quads, spheres, etc with no problem.

I am finding the opposite, decompressing 1920x1080 Photo JPEG QuickTime movies to a 32bit ARGB GWorld/texture is slightly faster than to a '2vuy' GWorld/texture on a single 1.8GHz 1st gen G5 with an FX 6800 GT. I suspect you will find the problem was the 32bit GWorld you were using was allocated by QuickDraw or QuickTime, so did not have a baseAddr aligned to 32 bytes and/or rowBytes that is a multiple of 32 bytes. OpenGL seems to do an extra CPU copy to align things if they aren't aligned to 32 bytes. QuickDraw/QuickTime always seem to add an extra 16 bytes on to rowBytes.


As well as aligning the GWorld/texture, using texture rectangle with glPixelStorei(GL_UNPACK_CLIENT_STORAGE, GL_TRUE) and glTexParameteri(GL_TEXTURE_RECTANGLE_EXT, GL_TEXTURE_STORAGE_HINT_APPLE, GL_STORAGE_CACHED_APPLE) gives the best performance.

Glenn.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >Re: 1 movie only on my ATI 9800? (From: Lorenzo <email@hidden>)
 >Re: 1 movie only on my ATI 9800? (From: chris clepper <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.