代码改变世界

Mipmaps 级别

2012-12-05 12:01  三戒1993  阅读(196)  评论(0编辑  收藏  举报


For each mipmap level of an image, we divide the output mipmap into fixed size bricks (Fig. 1), and save all the bricks of one mipmap level to one file.
Fig. 1
For each output mipmap, we put all the pixels of one brick together and save those bricks one by one continuously (Fig. 2). The output mipmaps are not human readable. However, if the TIFF format is used, one can view bricks by TIFF’s sub-image.
Fig. 2
The filenames for the mipmaps will follow the format:
filename_of_the_input_image.mipmap_level.filename_extension