Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15200)

Issue 2405043: Review: MIPmap vs subimage, take 2 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by larrygritz
Modified:
13 years, 6 months ago
Reviewers:
Chris Foster, oiio-dev
Base URL:
http://svn.openimageio.org/oiio/trunk/
Visibility:
Public.

Description

More fleshing out of the API changes that will tease apart subimages versus MIPmap levels. This more or less implements the API changes (including those necessary to ImageCache, TextureSystem, and ImageBuf), the required changes to the format plugins, some of the utility programs. Tests almost all pass, there are a few things left to mop up. It's not done yet, but I thought it was becoming big enough to review in stages. That's also why I'm doing it via codereview.appspot.com -- so that I can upload subsequent takes and you can just diff against earlier patches without having to wonder what has changed. Still to do: ImageCache/TextureSystem has lots of FIXME notes, especially regarding how to figure out and report lack of tiling or mipmapping (example: what do you do with a multi-image texture that has some faces mipmapped but not others?); docs; iv is still confused about subimages versus mip levels; I don't think idiff and iconvert are as robust as we want quite yet. But I think I'm 80% of the way there. Note that this will be a non-back-compatible change, so please think about what this will mean for your apps and get your feedback in before anything is committed. In any case, this will be a 0.9 feature and will never change 0.8 or other release branches. Note that this is a key enabling change for eventually supporting ptex and certain other proposed multi-face/multi-view formats. The support for those particular formats will come later, at this stage I just want the APIs to be in good shape to accommodate them.

Patch Set 1 #

Patch Set 2 : Next round -- I think everything works now #

Patch Set 3 : OK, ptex files read, get meta, display in iv! #

Patch Set 4 : OK, ptex files read, get meta, display in iv! #

Total comments: 6

Patch Set 5 : Added docs mods, and a couple small changes I realized were needed when writing the docs #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11909 lines, -2451 lines) Patch
src/CMakeLists.txt View 1 chunk +1 line, -0 lines 0 comments Download
src/bmp.imageio/bmp_pvt.h View 1 chunk +1 line, -1 line 0 comments Download
src/bmp.imageio/bmpoutput.cpp View 1 chunk +6 lines, -1 line 0 comments Download
src/cineon.imageio/cineoninput.cpp View 2 chunks +0 lines, -11 lines 0 comments Download
src/cineon.imageio/cineonoutput.cpp View 3 chunks +6 lines, -5 lines 0 comments Download
src/dds.imageio/ddsinput.cpp View 10 chunks +23 lines, -15 lines 0 comments Download
src/dds.imageio/ddsoutput.cpp View 2 chunks +8 lines, -2 lines 0 comments Download
src/doc/imagecache.tex View 8 chunks +17 lines, -10 lines 0 comments Download
src/doc/imageinput.tex View 5 chunks +47 lines, -36 lines 0 comments Download
src/doc/imageoutput.tex View 8 chunks +49 lines, -29 lines 0 comments Download
src/doc/oiiointro.tex View 2 chunks +8 lines, -5 lines 0 comments Download
src/doc/openimageio.tex View 6 chunks +11 lines, -7 lines 0 comments Download
src/doc/texturesys.tex View 7 chunks +24 lines, -4 lines 0 comments Download
src/dpx.imageio/dpxinput.cpp View 1 2 10 chunks +32 lines, -30 lines 0 comments Download
src/dpx.imageio/dpxoutput.cpp View 2 chunks +9 lines, -2 lines 0 comments Download
src/fits.imageio/fits_pvt.h View 2 chunks +3 lines, -2 lines 0 comments Download
src/fits.imageio/fitsinput.cpp View 1 chunk +6 lines, -4 lines 0 comments Download
src/fits.imageio/fitsoutput.cpp View 1 chunk +7 lines, -2 lines 0 comments Download
src/hdr.imageio/hdrinput.cpp View 4 chunks +11 lines, -9 lines 0 comments Download
src/hdr.imageio/hdroutput.cpp View 2 chunks +5 lines, -4 lines 0 comments Download
src/ico.imageio/icoinput.cpp View 4 chunks +9 lines, -6 lines 0 comments Download
src/ico.imageio/icooutput.cpp View 3 chunks +10 lines, -4 lines 0 comments Download
src/iconvert/iconvert.cpp View 1 2 chunks +59 lines, -29 lines 0 comments Download
src/idiff/idiff.cpp View 1 2 4 chunks +122 lines, -98 lines 0 comments Download
src/igrep/igrep.cpp View 3 chunks +22 lines, -14 lines 0 comments Download
src/iinfo/iinfo.cpp View 1 2 8 chunks +55 lines, -13 lines 0 comments Download
src/include/imagebuf.h View 1 7 chunks +19 lines, -5 lines 0 comments Download
src/include/imagecache.h View 1 2 3 4 3 chunks +36 lines, -28 lines 0 comments Download
src/include/imageio.h View 1 2 3 4 6 chunks +42 lines, -19 lines 0 comments Download
src/include/texture.h View 1 2 3 4 5 chunks +7 lines, -5 lines 0 comments Download
src/iprocess/iprocess.cpp View 1 chunk +5 lines, -3 lines 0 comments Download
src/iv/imageviewer.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
src/iv/imageviewer.cpp View 1 8 chunks +31 lines, -31 lines 0 comments Download
src/iv/ivimage.cpp View 1 2 chunks +6 lines, -5 lines 0 comments Download
src/jpeg.imageio/jpegoutput.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
src/jpeg2000.imageio/jpeg2000_pvt.h View 1 chunk +1 line, -1 line 0 comments Download
src/jpeg2000.imageio/jpeg2000output.cpp View 2 chunks +6 lines, -5 lines 0 comments Download
src/libOpenImageIO/CMakeLists.txt View 1 chunk +8 lines, -0 lines 0 comments Download
src/libOpenImageIO/formatspec.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
src/libOpenImageIO/imagebuf.cpp View 1 2 3 4 10 chunks +33 lines, -20 lines 0 comments Download
src/libOpenImageIO/imageioplugin.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
src/libtexture/imagecache.cpp View 1 2 3 4 43 chunks +240 lines, -195 lines 0 comments Download
src/libtexture/imagecache_pvt.h View 1 2 3 4 14 chunks +65 lines, -29 lines 0 comments Download
src/libtexture/texoptions.cpp View 1 chunk +1 line, -1 line 0 comments Download
src/libtexture/texture_pvt.h View 1 2 3 4 1 chunk +6 lines, -11 lines 0 comments Download
src/libtexture/texturesys.cpp View 1 2 3 4 20 chunks +48 lines, -34 lines 0 comments Download
src/maketx/maketx.cpp View 1 3 chunks +8 lines, -3 lines 0 comments Download
src/openexr.imageio/exrinput.cpp View 6 chunks +21 lines, -11 lines 0 comments Download
src/openexr.imageio/exroutput.cpp View 3 chunks +10 lines, -4 lines 0 comments Download
src/png.imageio/pngoutput.cpp View 2 chunks +8 lines, -2 lines 0 comments Download
src/pnm.imageio/pnmoutput.cpp View 2 chunks +9 lines, -4 lines 0 comments Download
src/ptex.imageio/CMakeLists.txt View 1 chunk +13 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexCache.h View 1 chunk +300 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexCache.cpp View 1 chunk +419 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexDict.h View 1 chunk +596 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexFilters.cpp View 1 chunk +455 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexHalf.h View 1 chunk +120 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexHalf.cpp View 1 chunk +105 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexHashMap.h View 1 chunk +353 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexIO.h View 1 chunk +119 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexInt.h View 1 chunk +57 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexMutex.h View 1 chunk +79 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexPlatform.h View 1 chunk +160 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexReader.h View 1 chunk +613 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexReader.cpp View 1 chunk +1357 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexSeparableFilter.h View 1 chunk +80 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexSeparableFilter.cpp View 1 chunk +389 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexSeparableKernel.h View 1 chunk +473 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexSeparableKernel.cpp View 1 chunk +149 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexTriangleFilter.h View 1 chunk +78 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexTriangleFilter.cpp View 1 chunk +261 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexTriangleKernel.h View 1 chunk +227 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexTriangleKernel.cpp View 1 chunk +179 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexUtils.h View 1 chunk +199 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexUtils.cpp View 1 chunk +677 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexWriter.h View 1 chunk +193 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/PtexWriter.cpp View 1 chunk +1400 lines, -0 lines 0 comments Download
src/ptex.imageio/ptex/Ptexture.h View 1 chunk +988 lines, -0 lines 0 comments Download
src/ptex.imageio/ptexinput.cpp View 3 4 1 chunk +298 lines, -0 lines 1 comment Download
src/ptex.imageio/ptexoutput.cpp View 1 chunk +138 lines, -0 lines 0 comments Download
src/python/py_imagebuf.cpp View 1 1 chunk +4 lines, -2 lines 0 comments Download
src/python/py_imagecache.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
src/python/py_imageinput.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
src/python/py_imageoutput.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
src/python/py_oiio.h View 1 4 chunks +5 lines, -5 lines 0 comments Download
src/sgi.imageio/sgi_pvt.h View 1 chunk +2 lines, -2 lines 0 comments Download
src/sgi.imageio/sgioutput.cpp View 1 chunk +8 lines, -1 line 0 comments Download
src/socket.imageio/socket_pvt.h View 1 chunk +1 line, -1 line 0 comments Download
src/socket.imageio/socketoutput.cpp View 1 chunk +1 line, -1 line 0 comments Download
src/targa.imageio/targaoutput.cpp View 2 chunks +8 lines, -2 lines 0 comments Download
src/testtex/testtex.cpp View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
src/tiff.imageio/tiffinput.cpp View 8 chunks +55 lines, -11 lines 0 comments Download
src/tiff.imageio/tiffoutput.cpp View 3 chunks +9 lines, -3 lines 0 comments Download
src/zfile.imageio/zfile.cpp View 2 chunks +8 lines, -2 lines 0 comments Download
testsuite/openexr-multires/ref/out.txt View 24 chunks +141 lines, -1637 lines 0 comments Download

Messages

Total messages: 12
larrygritz
13 years, 6 months ago (2010-10-12 21:35:25 UTC) #1
larrygritz
PS. If reviewing, start with imageio.h, then the contents of src/libtexture. It bugs me that ...
13 years, 6 months ago (2010-10-12 21:38:40 UTC) #2
larrygritz
Next round -- I think everything works now
13 years, 6 months ago (2010-10-14 06:51:53 UTC) #3
larrygritz
On 2010/10/14 06:51:53, larrygritz wrote: > Next round -- I think everything works now If ...
13 years, 6 months ago (2010-10-14 06:54:30 UTC) #4
larrygritz
OK, ptex files read, get meta, display in iv!
13 years, 6 months ago (2010-10-16 23:11:35 UTC) #5
larrygritz
OK, ptex files read, get meta, display in iv!
13 years, 6 months ago (2010-10-16 23:11:49 UTC) #6
larrygritz
On 2010/10/16 23:11:49, larrygritz wrote: > OK, ptex files read, get meta, display in iv! ...
13 years, 6 months ago (2010-10-16 23:17:30 UTC) #7
larrygritz
Any takers? Pros or cons? Anybody want to argue for checking into the trunk, or ...
13 years, 6 months ago (2010-10-21 04:22:23 UTC) #8
Chris Foster
This pretty much LGTM Larry, with a few minor comments. I didn't read all the ...
13 years, 6 months ago (2010-10-21 13:33:46 UTC) #9
larrygritz
On 2010/10/21 13:33:46, Chris Foster wrote: > This pretty much LGTM Larry, with a few ...
13 years, 6 months ago (2010-10-21 15:56:39 UTC) #10
larrygritz
Added docs mods, and a couple small changes I realized were needed when writing the ...
13 years, 6 months ago (2010-10-21 23:14:30 UTC) #11
Chris Foster
13 years, 6 months ago (2010-10-21 23:32:25 UTC) #12
LGTM.  I noticed a FIXME you can remove.

http://codereview.appspot.com/2405043/diff/83001/src/ptex.imageio/ptexinput.cpp
File src/ptex.imageio/ptexinput.cpp (right):

http://codereview.appspot.com/2405043/diff/83001/src/ptex.imageio/ptexinput.c...
src/ptex.imageio/ptexinput.cpp:181: std::string wrapmode;
I guess that means you can remove this FIXME comment?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b