AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

2010.07.13 14:45 "[Tiff] TIFFGetConfiguredCODECs()", by Eberhard Mattes

Why does the second loop of TIFFGetConfiguredCODECs() copy built-in CODECs only if they implement a scheme that has already been handled by the first loop?

I think

                if (!TIFFIsCODECConfigured(c->scheme)) {

would make more sense than:

                if (TIFFIsCODECConfigured(c->scheme)) {

That way, the second loop of TIFFGetConfiguredCODECs() would include built-in CODECs only if they have not been overridden by registered CODECs.

Eberhard