hi,

martin.lavery schrieb:
Just been fixing what seems to be a bug in the MovieData.cpp, file to stop the Plugin from adding extra pixels to the width of a movie which has a width that is not a multiple of 8:

 _textureWidth = ((_movieWidth + 7) >> 3) << 3;

Does anyone know why this is used?
I copied that straight from Apple-sample code, which I can't find anymore. I think this is because some codecs are optimized to widths which are multiple of 8. Without the padding, Quicktime has to fiddle the bytes, so they fit in the gworld, which slows down the decompression.

But: I can't find the documentation for that anymore, the code is also rather old, I added it 2003, or so.

I have tried changing it to just:
_textureWidth = _movieWidth;

and it seems to compile and run on my mac without the added black line.
Has anyone else found this problem with QuickTime movies before?

In my own code I am querying the moviesize and adjust the texture coords and/or use movies whose widths are multiplie of 8.

If you are sitting in front of a mac: Can you try to reproduce the deadlocks I reported two weeks ago? Just resize the window-size in the example osgcameras, so the decoration is visible and try to close a window...

Stephan


_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to