Hi

what pixel format and type you have passed to 
osg::Image::computeRowWidthInBytes(...) call?

Cheers,
Sergey.

26.12.2012, 21:48, "Claus Steuer" <[email protected]>:
> Hi,
>
> i try to understand the packing parameter of osg::Image::allocateImage.
> My current understanding is that packing specifies the alignment of each 
> pixel row in memory like the GL_PACK_ALIGNMENT parameter in OpenGL does.
>
> That means if i have a packing of 2 and an image width of 3 with 3 bytes per 
> pixel, one row would take 10 bytes of memory, whereas it would take 9 bytes 
> of memory if a packing of 1 would be used.
>
> However when i use the calculation made in osg::Image::computeRowWidthInBytes 
> for the same example i get 6 bytes for each row.
>
> Since i dont expect osg to be wrong at this there must be some error in my 
> understanding of the packing parameter.
>
> I hope someone can enlighten me,
> Claus
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=51654#51654
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to