Hi Laurens,
On Fri, Jan 8, 2010 at 12:57 PM, Laurens Voerman <[email protected]> wrote:
> the current ReaderWriterJP2 has all the code for writing jp2 files (jpeg
> 2000), but the writing fails on my windows machine (jasper-1.900.1) because
> the ID for the "jp2" extention is requested before the jas_init() call. (bug
> introduced in svn 7645 - 10 dec 2007)
I've now merged and submitted to svn/trunk this submission.
> I think the repeated jas_init(); {....} jas_image_clearfmts(); should be
> removed entirely, just initialise the jasper librairy once.
I agree that the repeated jas_init() is probably inappropriately. I'm
not clear yet whether the jas_image_clearfmts() should be
removed/moved. I can't just spot the intended usage from the jasper
headers. It does look to me that we should certainly have an
jas_cleanup() in a ReaderWriterJP2.cpp destructor.
Is the correct Jasper usage any clearer to you?
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org