Revision 818034
Go back to digest for 8th June 2008Other in Graphics
Marcel Wiesweg committed changes in /trunk/extragear/graphics/digikam/libs/database/haar/haariface.cpp:
Do not use writeRawBytes, but QDataStream's methods to serialize the integer data of the Haar signature. Only this ensures that the signature can be used cross-platform!
(think about accessing the database over a network from a little and a big endian machine)
Set the QDataStream binary version explicitly (following tip from <a href="http://www.purinchu.net/wp/2008/06/03/programming-tips/">http://www.purinchu.net/wp/2008/06/03/programming-tips/</a>)
Note: This changes the binary format of the Haar matrix; you need to rebuild the fingerprints.
It seems there is a crash if you dont rebuild, so you will notice it ;-)
File Changes
Modified 1 files
- /trunk/extragear/graphics/digikam/libs/database/haar/haariface.cpp
1 files changed in total