Robert Osfield
144e44a749
From Per Fahlberg, "I ran into a problem when using another library that implemented the same functions as the osg jpeg plugin, i guess they both originated from the same example code :) As a solution I added a namespace in ReaderWriterJPEG.cpp around the functions.
...
"
2008-10-21 16:27:22 +00:00
Robert Osfield
02b456bcfa
Converted plugins to use the new supportsExtension()/supportsOptions/supportsProtocl() methods
...
to help enable better querying of supported features
2008-07-13 22:18:59 +00:00
Robert Osfield
e9589ebb49
From Paul Martz, "Another round of plugin enhancements.
...
3DC: Output now uses osg::notify.
JPEG: Now returns correct error code for empty input file.
FreeType: Prevent possible crash if Options is NULL."
2008-05-10 17:23:12 +00:00
Robert Osfield
61e3285ffc
From Paul Martz, "Attached are some minor plugin fixes. PNM, RGB, and JPEG would all crash if attempting to read an empty file, and FLT would go into an infinite loop. All are fixed with this change.
...
I also fixed some return values for a couple of these, changing FILE_NOT_HANDLED to ERROR_IN_READING_FILE where appropriate."
2008-05-09 11:27:03 +00:00
Robert Osfield
adbc15b5a1
From Glenn Waldron, "As you may recall, we discussed adding ReaderWriter::readObject() overrides to all the image plugins in order to facilitate future archive support. Attached are the necessary modifications. I tested JPEG, but not all the others... the code is identical though. Note that the DDS plugin already contained the readObject() implementations."
2008-02-25 13:25:42 +00:00
Robert Osfield
8e7e6529be
From David Callu, warning fixes
2007-09-07 15:03:56 +00:00
Robert Osfield
9e2fe92ef1
From Rudolf Wiedemann, "I need to link OpenSceneGraph statically to my application, so I
...
completed the new registration of the plugin-readerwriters
("REGISTER_OSGPLUGIN") according to your osgstaticviewer-example (see
attachment, based on today's svn)."
2007-07-06 13:54:26 +00:00
Robert Osfield
fe1536ebd6
Fixed compile warnings.
2005-10-24 13:46:31 +00:00
Robert Osfield
7e0781d0c8
From Farshid Lashkari, added istream support to JPEG plugin.
2005-08-25 19:23:58 +00:00
Robert Osfield
d9b9a6f1f8
Made read/write methods in ReaderWriter all const to facilate multi-threading
2004-11-23 15:29:52 +00:00
Robert Osfield
ce07879e2e
Moved plugins across to using ReaderWriter::Options* for search paths in addition
...
to standard osgDB::DataFilePaths
2004-11-22 23:54:45 +00:00
Robert Osfield
1f5b044c71
Made ReaderWriter::className const
2004-10-26 10:26:43 +00:00
Don BURNS
4c5f33d397
Changed internal formatt on jpeg loader to be GL_RGB, GL_RGBA, etc. rather
...
than numComponents.
2004-07-05 16:21:43 +00:00
Robert Osfield
6f34ef29f8
From Joran Jessurun, "I needed to be able to set the quality of the saved jpeg images. I could
...
not find a way to do this in OSG. Therefore I implemented this by adding
an option called: JPEG_QUALITY <quality> to the JPEG reader/writer.
To parse the options string I use the same method as used in the LWO
reader/writer. "
2004-05-09 07:06:32 +00:00
Robert Osfield
eda2d8dfba
From Stephane, added support for writing JPEG images.
2004-01-30 13:52:12 +00:00
Robert Osfield
5ad968b049
Reverted back to non exception based JPEG plugin.
2003-12-09 12:09:36 +00:00
Robert Osfield
83bf813e58
Moved the responsibility for finding file to load on to the ReaderWriter plugins,
...
instead of osgDB::Registry where it original lay. This has been done to allow
fileName strings to be encode data rather than just file names, such as one
requires when using PagedLOD along with plugins for doing dynamic tesselation.
2003-12-08 11:24:43 +00:00
Robert Osfield
33fabed8c8
Changed error message to something more meaningful
2003-11-25 10:52:13 +00:00
Robert Osfield
0b75a59cfe
Added an explicit check for file extension so that only .jpg and .jpeg files
...
are loaded with the JPEG plugin, thus avoid a crash which was occuring when
it was passed non JPEG files.
2003-08-29 22:04:35 +00:00
Robert Osfield
79855cf669
Fixed warning in jpeg loader by replacing longjmp with throw/catch.
2003-07-26 18:57:12 +00:00
Robert Osfield
525cd9292d
Fixed long jump warning.
...
CV: ----------------------------------------------------------------------
2003-07-26 14:15:24 +00:00
Robert Osfield
b32c8c65f3
Added osg::Image::AllocationMode enum and associated set/get methods.
...
osg::Image::setImage has also been modified to require the AllocationMode
mode to be passed to it so that it knows how to delete the data once the
image goes out of scope.
Port the image plugins across to specify the new AllocationMode, and converted
them across to using new/delete in place of malloc/free.
2003-02-25 11:56:18 +00:00
Robert Osfield
0980eeda1e
Updated the plugins so they do the extension checking with a non
...
case sensitive comparison.
2002-11-14 09:03:31 +00:00
Robert Osfield
f0372817b5
Added support for ReadResult and WriteResult to the osgDB::ReaderWriter
...
to allo plugins to pass back more information about the success or failure
of a file load. All plugins have been updated to the new convention.
2001-10-30 14:20:37 +00:00
Robert Osfield
06dafa487e
Added osgDB::ReaderWriter::Options class to the ReaderWriter base class, support
...
for settings options in osgDB::Registry, and added the paramter to all of the
reaader/writer plugins. The Options structure by default has an string attached
for packing basic options, however, it also can be subclassed to encapsulate
any users defined option data. In the later case both the client code *and*
the plugin need to be aware of subclass, the plugin will need to use
dynamic_cast<> to assertain its type.
2001-10-14 17:54:25 +00:00
Don BURNS
e8f256a59d
Added a bunch of files synched with 0.8.42
2001-09-19 21:08:56 +00:00
Don BURNS
70208ebc06
Initial revision
2001-01-10 16:32:10 +00:00