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

Issue 3832044: Review: plugin touchups (Closed)

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

Description

While writing some long-overdue documentation, I noticed a lot of small improvements that could be made to some of the format plugins. * Several places incorrectly set "ResolutionUnits" attribute that should have been "ResolutionUnit". * A few places incorrectly set "BitsPerSample" attribute to the bits per pixel. * In icooutput.cpp, use boost::iequals rather than #ifdef and stricmp/strcasecmp. * In some other places, use iequals to do case-insensitive comparisons of attribute names and values (and prefer it over strcmp). * Added additional file extensions to JPEG and Targa. * A few other miscellaneous attribute names or values were regularized to conform to our usual conventions. * Softimage input neglected to set the ImageDescription to the comment field.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -52 lines) Patch
src/bmp.imageio/bmpinput.cpp View 1 chunk +1 line, -2 lines 0 comments Download
src/bmp.imageio/bmpoutput.cpp View 1 chunk +3 lines, -2 lines 1 comment Download
src/cineon.imageio/cineoninput.cpp View 1 chunk +1 line, -1 line 0 comments Download
src/ico.imageio/icoinput.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
src/ico.imageio/icooutput.cpp View 2 chunks +4 lines, -6 lines 0 comments Download
src/jpeg.imageio/jpeginput.cpp View 1 chunk +1 line, -1 line 0 comments Download
src/jpeg.imageio/jpegoutput.cpp View 1 chunk +1 line, -1 line 0 comments Download
src/jpeg2000.imageio/jpeg2000input.cpp View 1 chunk +1 line, -1 line 0 comments Download
src/jpeg2000.imageio/jpeg2000output.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
src/openexr.imageio/exroutput.cpp View 5 chunks +18 lines, -15 lines 0 comments Download
src/png.imageio/png_pvt.h View 3 chunks +7 lines, -7 lines 0 comments Download
src/softimage.imageio/softimageinput.cpp View 1 chunk +5 lines, -0 lines 1 comment Download
src/targa.imageio/targainput.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
src/targa.imageio/targaoutput.cpp View 1 chunk +1 line, -1 line 0 comments Download
src/tiff.imageio/tiffoutput.cpp View 3 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 3
larrygritz
13 years, 4 months ago (2010-12-29 07:51:32 UTC) #1
Chris Foster
Mostly looks good, a few comments below http://codereview.appspot.com/3832044/diff/1/src/bmp.imageio/bmpoutput.cpp File src/bmp.imageio/bmpoutput.cpp (right): http://codereview.appspot.com/3832044/diff/1/src/bmp.imageio/bmpoutput.cpp#newcode161 src/bmp.imageio/bmpoutput.cpp:161: res_units.compare ("m") ...
13 years, 3 months ago (2011-01-08 08:40:12 UTC) #2
larrygritz
13 years, 3 months ago (2011-01-08 16:19:27 UTC) #3
Thanks, Chris.  I think you are correct on both counts, and I will adjust it
before commit.
Sign in to reply to this message.

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