[Qt-interest] New image metadata parser based on the Qt

Miroslav Rajcic rajcic at sokrates.hr
Thu Mar 31 09:10:22 CEST 2011


Classes seem to work fine after several fixes:

- compiler (Visual Studio 2008) complains (warning) that the following operator
is recursive and it will generate stack overflow:

  QImageMetaData::operator=

If you remove the first line in the operator code, it will work fine.

- the same compiler generates an error for the following method:

  QImageMetaData::readIFD

You are using large number of nested "if/else" loops and compiler generates this
error: C1061: compiler limit : blocks nested too deeply

If you convert the "if" loops starting on the line 2765 in the "readIFD"
function to "switch/case" statements, the problem will be solved

- third problem I noticed is that reading exif info blocks forever on the jpg
images that do not contain exif data at all
This is solved by patching the method "QImageMetaData::identify" by adding the
check "if(length < 1)  break;" after the line "*input >> length;"

I will send you my patched version by mail.
Thank you for your work




More information about the Qt-interest-old mailing list