gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r3053 - Extractor/src/plugins


From: durner
Subject: [GNUnet-SVN] r3053 - Extractor/src/plugins
Date: Sun, 25 Jun 2006 01:51:37 -0700 (PDT)

Author: durner
Date: 2006-06-25 01:51:33 -0700 (Sun, 25 Jun 2006)
New Revision: 3053

Modified:
   Extractor/src/plugins/thumbnailextractorqt.cc
Log:
add comment

Modified: Extractor/src/plugins/thumbnailextractorqt.cc
===================================================================
--- Extractor/src/plugins/thumbnailextractorqt.cc       2006-06-25 07:28:25 UTC 
(rev 3052)
+++ Extractor/src/plugins/thumbnailextractorqt.cc       2006-06-25 08:51:33 UTC 
(rev 3053)
@@ -53,7 +53,7 @@
   app = new QApplication(argc, &argv);
 }
 
-void __attribute__ ((destructor)) my_fini(void)
+void __attribute__ ((destructor)) thumnailextractorqt_done(void)
 {
   delete app;
   free(argv);
@@ -192,11 +192,16 @@
     height = 1;
   if (width == 0)
     width = 1;
- 
-  /* Resize image */
+
+  /* Change color depth */ 
   QImage thumb = img->convertToFormat(colors);
   delete img;
 
+  /* Resize image
+   *
+   * Qt's scaled() produces poor quality if the image is resized to less than
+   * half the size. Therefore, we resize the image in multiple steps.
+   * http://lists.trolltech.com/qt-interest/2006-04/msg00376.html */
   while(true)
   {
     width /= 2;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]