When TypeDesc is set to INT8 plugin should save 8-bit data to the file, not 
16-bit (read_scanlin<T> write_scanline<T> should be typed to uint8_t).

Run the testsuite and this patch don't broke anything.

You can merge this Pull Request by running:

  git pull https://github.com/matekm/oiio jpeg_save_image_fix

Or you can view, comment on it, or merge it online at:

  https://github.com/OpenImageIO/oiio/pull/213

-- Commit Summary --

* read_scanline/write_scanline in jpeg2000 plugin should use 8 bit type when 
TypeDesc is (U)INT8

-- File Changes --

M src/jpeg2000.imageio/jpeg2000input.cpp (2)
M src/jpeg2000.imageio/jpeg2000output.cpp (2)

-- Patch Links --

  https://github.com/OpenImageIO/oiio/pull/213.patch
  https://github.com/OpenImageIO/oiio/pull/213.diff

--- 
Reply to this email directly or view it on GitHub:
https://github.com/OpenImageIO/oiio/pull/213
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to