1 |
radhermit 11/10/04 18:19:58 |
2 |
|
3 |
Added: shotwell-0.11.2-libraw-0.14.patch |
4 |
Log: |
5 |
Fix build with libraw-0.14.0 (bug #384165, patch by Alexandre Rostovtsev). |
6 |
|
7 |
(Portage version: 2.2.0_alpha60/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-gfx/shotwell/files/shotwell-0.11.2-libraw-0.14.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/shotwell/files/shotwell-0.11.2-libraw-0.14.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/shotwell/files/shotwell-0.11.2-libraw-0.14.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: shotwell-0.11.2-libraw-0.14.patch |
16 |
=================================================================== |
17 |
From 06ce5a48a3dcc6416ac81995bc9d2f7001d624f9 Mon Sep 17 00:00:00 2001 |
18 |
From: Alexandre Rostovtsev <tetromino@×××××.com> |
19 |
Date: Sun, 2 Oct 2011 05:22:07 -0400 |
20 |
Subject: [PATCH] Do not use libraw API that was dropped in libraw-0.14 |
21 |
|
22 |
add_masked_borders_to_bitmap() and rotate_fuji_raw() were removed from |
23 |
0.14 API. We can safely drop their vala wrappers since they weren't |
24 |
being used anywhere. And drop CANNOT_ADDMASK error code, since it was |
25 |
dropped from the libraw API, and could only result from the removed |
26 |
add_masked_borders_to_bitmap(). |
27 |
|
28 |
The LIBRAW_FILTERING_* constans were removed from the public API. |
29 |
Fortunately, the only one of them that shotwell code was using was |
30 |
LIBRAW_FILTERING_AUTOMATIC - which is now the default libraw behavior. |
31 |
Therefore, we can safely drop the LibRaw.Filtering enum. |
32 |
--- |
33 |
src/photos/GRaw.vala | 12 ------------ |
34 |
vapi/libraw.vapi | 14 -------------- |
35 |
2 files changed, 0 insertions(+), 26 deletions(-) |
36 |
|
37 |
--- a/src/photos/GRaw.vala |
38 |
+++ b/src/photos/GRaw.vala |
39 |
@@ -163,10 +163,6 @@ public class Processor { |
40 |
proc = new LibRaw.Processor(options); |
41 |
} |
42 |
|
43 |
- public void add_masked_borders_to_bitmap() { |
44 |
- proc.add_masked_borders_to_bitmap(); |
45 |
- } |
46 |
- |
47 |
public void adjust_sizes_info_only() throws Exception { |
48 |
throw_exception("adjust_sizes_info_only", proc.adjust_sizes_info_only()); |
49 |
} |
50 |
@@ -215,10 +211,6 @@ public class Processor { |
51 |
throw_exception("ppm_tiff_writer", proc.ppm_tiff_writer(filename)); |
52 |
} |
53 |
|
54 |
- public void rotate_fuji_raw() throws Exception { |
55 |
- throw_exception("rotate_fuji_raw", proc.rotate_fuji_raw()); |
56 |
- } |
57 |
- |
58 |
public void thumb_writer(string filename) throws Exception { |
59 |
throw_exception("thumb_writer", proc.thumb_writer(filename)); |
60 |
} |
61 |
@@ -262,7 +254,6 @@ public class Processor { |
62 |
// camera_profile |
63 |
// bad_pixels |
64 |
// dark_frame |
65 |
- output_params->filtering_mode = LibRaw.Filtering.AUTOMATIC; |
66 |
output_params->output_bps = 8; |
67 |
// output_tiff |
68 |
output_params->user_flip = GRaw.Flip.FROM_SOURCE; |
69 |
@@ -303,9 +294,6 @@ private void throw_exception(string caller, LibRaw.Result result) throws Excepti |
70 |
case LibRaw.Result.UNSUPPORTED_THUMBNAIL: |
71 |
throw new Exception.UNSUPPORTED_THUMBNAIL(msg); |
72 |
|
73 |
- case LibRaw.Result.CANNOT_ADDMASK: |
74 |
- throw new Exception.CANNOT_ADDMASK(msg); |
75 |
- |
76 |
case LibRaw.Result.UNSUFFICIENT_MEMORY: |
77 |
throw new Exception.OUT_OF_MEMORY(msg); |
78 |
|
79 |
--- a/vapi/libraw.vapi |
80 |
+++ b/vapi/libraw.vapi |
81 |
@@ -14,17 +14,6 @@ public unowned string version(); |
82 |
|
83 |
public unowned string versionNumber(); |
84 |
|
85 |
-[CCode (cname="enum libraw_Filtering", cprefix="LIBRAW_FILTERING_")] |
86 |
-public enum Filtering { |
87 |
- DEFAULT, |
88 |
- NOZEROES, |
89 |
- NOBLACK, |
90 |
- NORAWCURVE, |
91 |
- NONE, |
92 |
- LIBRAWOWN, |
93 |
- AUTOMATIC |
94 |
-} |
95 |
- |
96 |
[SimpleType] |
97 |
[CCode (cname="libraw_imgother_t")] |
98 |
public struct ImageOther { |
99 |
@@ -121,7 +110,6 @@ public struct OutputParams { |
100 |
public bool use_camera_wb; |
101 |
public bool use_camera_matrix; |
102 |
public int output_color; |
103 |
- public Filtering filtering_mode; |
104 |
public int output_bps; |
105 |
public bool output_tiff; |
106 |
public int user_flip; |
107 |
@@ -171,7 +159,6 @@ public class Processor { |
108 |
[CCode (cname="libraw_init")] |
109 |
public Processor(Options flags = Options.NONE); |
110 |
|
111 |
- public void add_masked_borders_to_bitmap(); |
112 |
public Result adjust_sizes_info_only(); |
113 |
[CCode (cname="libraw_dcraw_document_mode_processing")] |
114 |
public Result document_mode_processing(); |
115 |
@@ -192,7 +179,6 @@ public class Processor { |
116 |
[CCode (cname="libraw_dcraw_ppm_tiff_writer")] |
117 |
public Result ppm_tiff_writer(string outfile); |
118 |
public void recycle(); |
119 |
- public Result rotate_fuji_raw(); |
120 |
[CCode (cname="libraw_dcraw_thumb_writer")] |
121 |
public Result thumb_writer(string outfile); |
122 |
public Result unpack(); |
123 |
-- |
124 |
1.7.7 |