OpenImageIO/oiio — pull request #350 by lgritz (2012-05-01 07:16:21+00:00)
Title: Review: field3d improvements, texture system subimagename and non-pow2 tile sizes

More field3d work -- implement valid_file for the f3d input, conform metadata to field3d conventions. Of note is that we set "oiio:subimagename" for each field, deriving it from the partition and attribute names.

TextureSystem -- allow requests of texture by subimage name (it previously could be specified only by numeric index). You see where this is going, right?

Also, remove the last bits of code that required texture tile sizes to be powers of 2. This was something we should have done long ago, but the last straw was that I found tons of f3d files that had tile sizes that were not pow2. I did some benchmarks and using those % instead of & to deal with non-pow2 tile sizes doesn't seem to slow anything down (as I'd feared).