<br><br><div><span class="gmail_quote">2007/12/14, Loïc Brarda <<a href="mailto:loic.brarda21@fnac.net">loic.brarda21@fnac.net</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2007/12/13, Gilles Caulier <<a href="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>>:<br>> digKam already use KMetadata (and Exiv2 but only for photo). If i rememeber,<br>> KMatadata can parse few video formats to handle metadata entries. We just
<br>> need to take a look into KMetadata code to learn how to use API. KMetadata<br>> use kfile-plugins to supports video format (and images format)<br>><br>> <a href="http://websvn.kde.org/branches/KDE/3.5/kdemultimedia/kfile-plugins/">
http://websvn.kde.org/branches/KDE/3.5/kdemultimedia/kfile-plugins/</a><br>><br>>  In digikam, we have a class to get metadata: DMetadata. This one is used to<br>> load informations from files to database :<br>>
<br>> <a href="http://websvn.kde.org/branches/extragear/kde3/graphics/digikam/libs/dmetadata/">http://websvn.kde.org/branches/extragear/kde3/graphics/digikam/libs/dmetadata/</a><br>><br><br>I don't see any kfile-plugin there. For me, it first tries to load
<br>metadata through Exiv2 then if it fails, it tries to use DCraw. Adding<br>kfile-plugin when DCraw fails could be a non invasive and extensible<br>way to do it (On supported files, Exiv2 will probably always be more<br>
complete than kfile-plugins).<br><br>bool DMetadata::load(const QString& filePath)<br>{<br>    // In first, we trying to get metadata using Exiv2,<br>    // else we will use dcraw to extract minimal information.<br><br>
    if (!KExiv2::load(filePath))<br>    {<br>        if (!loadUsingDcraw(filePath))<br>->     {<br>->          if (!loadUsingKfilePlugins(filePath))<br>                return false;<br>->       }<br>    }<br><br>
    return true;<br>}<br><br>'->' lines beeing lines inserted in the load method. And of course,<br>loadUsingKfilePlugins function has to be implemented.</blockquote><div><br>There is no KMetadata in DMetadata class, but in image properties panel :
<br><br><a href="http://websvn.kde.org/branches/extragear/kde3/graphics/digikam/libs/imageproperties/imagepropertiestab.cpp?revision=670778&view=markup">http://websvn.kde.org/branches/extragear/kde3/graphics/digikam/libs/imageproperties/imagepropertiestab.cpp?revision=670778&view=markup
</a><br><br>... where KFileMetaInfo is called ...<br><br>Gilles<br><br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Cheers,
<br>  Loïc<br>_______________________________________________<br>Digikam-devel mailing list<br><a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/digikam-devel">
https://mail.kde.org/mailman/listinfo/digikam-devel</a><br></blockquote></div><br>