[Digikam-devel] extragear/graphics/digikam/libs/dimg/filters

Francisco J. Cruz fj.cruz at supercable.es
Fri Jan 20 23:06:28 GMT 2006


SVN commit 500693 by fjcruz:

New method for set out and proof profile has been added.

CCMAIL:digikam-devel at kde.org

 M  +10 -0     icctransform.cpp  
 M  +1 -1      icctransform.h  


--- trunk/extragear/graphics/digikam/libs/dimg/filters/icctransform.cpp #500692:500693
@@ -113,6 +113,15 @@
     d->output_profile = output_profile;
 }
 
+void IccTransform::setProfiles( QString output_profile, QString proof_profile, bool forProof )
+{
+    if (forProof)
+    {
+        d->output_profile = output_profile;
+        d->proof_profile  = proof_profile;
+    }
+}
+
 QString IccTransform::getEmbeddedProfileDescriptor()
 {
 kdDebug() << "First open embedded profile" << endl;
@@ -282,6 +291,7 @@
     {
         inprofile = cmsOpenProfileFromMem(profile.data(),
                                           (DWORD)profile.size());
+        kdDebug() << "Embedded desc: " << cmsTakeProductDesc(inprofile) << endl;
     }
     else if (useBuiltin)
     {
--- trunk/extragear/graphics/digikam/libs/dimg/filters/icctransform.h #500692:500693
@@ -52,7 +52,7 @@
     
     //Embedded input profile
     void setProfiles(QString output_profile);
-    //void setProfiles(QString * output_profile, QString * proof_profile);
+    void setProfiles(QString output_profile, QString proof_profile, bool forProof);
 
     //Profile info
     QString getProfileDescription(QString profile);



More information about the Digikam-devel mailing list