Mailing Lists: Apple Mailing Lists

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

1 movie only on my ATI 9800?



Hi,
I map 2 QUADs with 2 movies 480 x 360 Sorenson Video 3, 25 FPS,
and the animation, on my G5 2GHz with ATI 9800 Pro 256MB VRAM, runs very
slowly. So, where is all the power of this machine? Can I run only one movie
per time? How can I work with video this way?
I tried firstly to use GL_TEXTURE_2D, then GL_TEXTURE_RECTANGLE_EXT which
seems to be even slower. Am I using a wrong method to write the movie to the
video card? Any suggestion will be greatly appreciated. Thanks.


- (void)updateTexture
{
    glEnable(GL_TEXTURE_RECTANGLE_EXT);
    glDisable(GL_TEXTURE_2D);
    
    um_boxsize = gMovieBox.bottom * gMovieBox.right;
    um_readPos = (uint32_t*) gworldPixBase;
    um_changePos = (uint32_t*) textureBuf;
    
    MoviesTask(qtMovie, 0);
    
    for( um_index = 0; um_index < um_boxsize; um_index++, um_changePos++,
         um_readPos++ ){
             *(um_changePos) = ( ( *um_readPos & 0xFFFFFF ) << 8 ) |
            ((*um_readPos >> 24 ) & 0xFF);
    }
    glTexSubImage2D(GL_TEXTURE_RECTANGLE_EXT, 0, 0, 0,
            gMovieBox.right,
            gMovieBox.bottom, GL_RGBA, GL_UNSIGNED_BYTE, textureBuf);
}


Best Regards
-- 
Lorenzo
email: email@hidden

 _______________________________________________
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



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.