nautilus r14175 - in branches/gnome-2-22: . libnautilus-private



Author: cneumair
Date: Mon May 19 13:41:00 2008
New Revision: 14175
URL: http://svn.gnome.org/viewvc/nautilus?rev=14175&view=rev

Log:
2008-05-19  Christian Neumair  <cneumair gnome org>

	* libnautilus-private/nautilus-file.c (nautilus_file_get_icon):
	* libnautilus-private/nautilus-icon-info.c
	(nautilus_icon_info_lookup),
	(nautilus_icon_info_get_pixbuf_nodefault_at_size),
	(nautilus_icon_info_get_pixbuf_at_size):
	Use bilinear interpolation instead of hyperbolic. Massively speeds up
	loading of directories with previously generated thumbnails.


Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/libnautilus-private/nautilus-file.c
   branches/gnome-2-22/libnautilus-private/nautilus-icon-info.c

Modified: branches/gnome-2-22/libnautilus-private/nautilus-file.c
==============================================================================
--- branches/gnome-2-22/libnautilus-private/nautilus-file.c	(original)
+++ branches/gnome-2-22/libnautilus-private/nautilus-file.c	Mon May 19 13:41:00 2008
@@ -3373,7 +3373,7 @@
 
 				scaled_pixbuf = gdk_pixbuf_scale_simple (raw_pixbuf,
 									 w * scale, h * scale,
-									 GDK_INTERP_HYPER);
+									 GDK_INTERP_BILINEAR);
 				nautilus_thumbnail_frame_image (&scaled_pixbuf);
 				
 				g_object_unref (raw_pixbuf);

Modified: branches/gnome-2-22/libnautilus-private/nautilus-icon-info.c
==============================================================================
--- branches/gnome-2-22/libnautilus-private/nautilus-icon-info.c	(original)
+++ branches/gnome-2-22/libnautilus-private/nautilus-icon-info.c	Mon May 19 13:41:00 2008
@@ -368,7 +368,7 @@
 				scale = (double)size / s;
 				scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,
 									 w * scale, h * scale,
-									 GDK_INTERP_HYPER);
+									 GDK_INTERP_BILINEAR);
 				g_object_unref (pixbuf);
 				pixbuf = scaled_pixbuf;
 			}
@@ -508,7 +508,7 @@
 	scale = (double)forced_size / s;
 	scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,
 						 w * scale, h * scale,
-						 GDK_INTERP_HYPER);
+						 GDK_INTERP_BILINEAR);
 	g_object_unref (pixbuf);
 	return scaled_pixbuf;
 }
@@ -534,7 +534,7 @@
 	scale = (double)forced_size / s;
 	scaled_pixbuf = gdk_pixbuf_scale_simple (pixbuf,
 						 w * scale, h * scale,
-						 GDK_INTERP_HYPER);
+						 GDK_INTERP_BILINEAR);
 	g_object_unref (pixbuf);
 	return scaled_pixbuf;
 }



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