coderInfoList not up to date
Olivier Bertini <[email protected]> Wed, 14 Apr 2004 21:22:39 +0200
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <6.0.1.1.2.20040414210431.01badb50@localhost> |
Hello,
Sorry if this is not the right mailing list to post.
Here is what I think is a bug of coderInfoList. When I execute this code
list<CoderInfo> coderList;
coderInfoList( &coderList, // Reference to output list
CoderInfo::AnyMatch, // Match readable formats
CoderInfo::AnyMatch, // Don't care about writable formats
CoderInfo::AnyMatch); // Don't care about multi-frame support
list<CoderInfo>::iterator entry = coderList.begin();
cout << coderList.size() << endl;
while( entry != coderList.end() )
{
cout << entry->name() << ": (" << entry->description() << ") : ";
cout << "Readable = ";
if ( entry->isReadable() )
cout << "true";
else
cout << "false";
cout << ", ";
cout << "Writable = ";
if ( entry->isWritable() )
cout << "true";
else
cout << "false";
cout << endl;
entry++;
}
I get a list of 152 different formats but most of them are said not to be
readable nor writable. For example the output for the "JPEG" format is:
JPEG: <Joint Photographic Experts Group JFIF format> : Readable = false,
Writable = false
If I ask only for Readable formats I get 18 results.
I'm using the 1.1 Windows binary distribution for the c API. I have
compiled the C++ API with Borland C++Builder 6.
By the way, the "entry++;" line code is missing in the sample at
http://www.graphicsmagick.org/www/Magick++/STL.html#coderInfoList
The result is an endless loop :-)
Regards,
Olivier Bertini
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click