[f-spot/rubenv-gsoc-2009: 37/86] Load all RAW files using LibrawLoader.



commit 63ca8f69123f41497a92ceddee9f7f1add61664f
Author: Ruben Vermeersch <ruben savanne be>
Date:   Wed Jul 29 19:22:06 2009 +0200

    Load all RAW files using LibrawLoader.

 src/Imaging/X3fFile.cs     |    3 ++-
 src/Loaders/ImageLoader.cs |   20 ++++++++++----------
 2 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/src/Imaging/X3fFile.cs b/src/Imaging/X3fFile.cs
index e152543..372c27d 100644
--- a/src/Imaging/X3fFile.cs
+++ b/src/Imaging/X3fFile.cs
@@ -2,6 +2,7 @@ using System;
 using System.IO;
 using FSpot;
 using FSpot.Utils;
+using FSpot.Imaging;
 using SemWeb;
 
 namespace FSpot.X3f {
@@ -72,7 +73,7 @@ namespace FSpot.X3f {
 
 	}
 
-	public class X3fFile : DCRawFile, SemWeb.StatementSource {
+	public class X3fFile : DCRawFile, IRawFile, SemWeb.StatementSource {
 		Info info;
 
                 // false seems a safe default
diff --git a/src/Loaders/ImageLoader.cs b/src/Loaders/ImageLoader.cs
index 0e1f135..1d524fc 100644
--- a/src/Loaders/ImageLoader.cs
+++ b/src/Loaders/ImageLoader.cs
@@ -30,20 +30,20 @@ namespace FSpot.Loaders {
 			name_table [".png"] = typeof (GdkImageLoader);
 			name_table [".cr2"] = typeof (LibrawImageLoader);
 			name_table [".nef"] = typeof (LibrawImageLoader);
-			name_table [".pef"] = typeof (GdkImageLoader);
-			name_table [".raw"] = typeof (GdkImageLoader);
-			name_table [".kdc"] = typeof (GdkImageLoader);
-			name_table [".arw"] = typeof (GdkImageLoader);
+			name_table [".pef"] = typeof (LibrawImageLoader);
+			name_table [".raw"] = typeof (LibrawImageLoader);
+			name_table [".kdc"] = typeof (LibrawImageLoader);
+			name_table [".arw"] = typeof (LibrawImageLoader);
 			name_table [".tiff"] = typeof (GdkImageLoader);
 			name_table [".tif"] = typeof (GdkImageLoader);
-			name_table [".orf"] =  typeof (GdkImageLoader);
-			name_table [".srf"] = typeof (GdkImageLoader);
+			name_table [".orf"] =  typeof (LibrawImageLoader);
+			name_table [".srf"] = typeof (LibrawImageLoader);
 			name_table [".dng"] = typeof (LibrawImageLoader);
-			name_table [".crw"] = typeof (GdkImageLoader);
+			name_table [".crw"] = typeof (LibrawImageLoader);
 			name_table [".ppm"] = typeof (GdkImageLoader);
-			name_table [".mrw"] = typeof (GdkImageLoader);
-			name_table [".raf"] = typeof (GdkImageLoader);
-			name_table [".x3f"] = typeof (GdkImageLoader);
+			name_table [".mrw"] = typeof (LibrawImageLoader);
+			name_table [".raf"] = typeof (LibrawImageLoader);
+			name_table [".x3f"] = typeof (LibrawImageLoader);
 
 			// add mimetypes for fallback
 			name_table ["image/bmp"]     = name_table ["image/x-bmp"] = name_table [".bmp"];



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