I am using the latest release of oiio to make tiled pyramids from a
grayscale bmp to a tif. It all works, except that the mipmaps go smaller
than the tile size all the way down to 1x1 image. When I use irfanview to
inspect the output image, it shows black for all the image pages that are
smaller than 64x64. (I just tried oiio's iv and it shows the images, well at
least the ones I could see; I could not really see anything smaller than
25x25. I could certainly see the first one below 64x64 was not all black as
irfanview shows.) But I do not really want mipmap images smaller than the
tile size 64x64 tile size. And there does not seem to be a way to stop it. 

 

I added a simple if statement to maketexture.cpp so the mipmapping stops
once the dimensions are smaller than the tile size. Is this a generally
useful feature for others? If so, I can submit a pull request. If not, what
about an option to specify the minimum dimensions at which the mipmaps
should stop? Or am I the only one who does not want such small mipmap
images? 

 

Thanks!

Phil

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to