[patch] gqview 2.1 and FUJI raw files (.raf)
Lars Ellenberg <l.g.e-S0/[email protected]> Thu, 28 Apr 2005 17:23:07 +0200
| Newsgroups | gmane.comp.gnome.apps.gqview.devel |
|---|---|
| Message-ID | <[email protected]> |
resent to gqview-devel ML,
since there was no reaction to a private mail before...
in short:
... so I patched it in. maybe somewhen this should be in gdk->pixbuf,
but for now I just want it in gqview. works for me, happily browses the
files created by
Fuji Finepix S2 Pro (typical "preview" size is 1440x960)
or Finepix E550 (1600x1200), and probably all other Fuji .raf files.
details:
see, I like gqview.
but now I have these dscf####.raf files,
and they were just not displayed.
(not even the thumbnails, even though gimp has created them in the
standard location. wrong order of "fail check", I guess.)
quickfix for this particular problem:
--- gqview-2.1.0/src/thumb_standard.c 2005-03-03 05:09:25.000000000 +0100
+++ gqview-2.1.0.lge/src/thumb_standard.c 2005-04-26 09:59:05.970224344 +0200
@@ -709,14 +709,14 @@
{
gint found;
- if (thumb_loader_std_fail_check(tl)) return FALSE;
-
tl->thumb_path = thumb_loader_std_cache_path(tl, FALSE, NULL, FALSE);
tl->thumb_path_local = FALSE;
found = isfile(tl->thumb_path);
if (found && thumb_loader_std_setup(tl, tl->thumb_path)) return TRUE;
+ if (thumb_loader_std_fail_check(tl)) return FALSE;
+
return thumb_loader_std_next_source(tl, found);
}
ok, of course I know about dcraw and dcparse and gimp plugins and ...
but.
thats not what I want here. all my .raf have a reasonably sized JPEG
and EXIF data embeded. I just want gqview to show those, so I can
easily browse them.
of course I don't want to just do a quick hack, there are many more
"raw" file formats out there, and eventually gqview should be able to
browse all of them (if they have embeded JPEG previews).
so I created two additional files as framework, src/raw_format_offsets.h
and src/raw_format_offsets.c, the later containing some stubs and the
implementation for the fuji .raf format.
feel free to integrate in gqview, an fill in the stubs for nikon an
canon and so on.
diffs attached are against
rpm/packages/Multimedia/gqview/src/gqview-2.1.0-1.guru.suse92.src.rpm
cheers,
Lars Ellenberg
gqview-2.1.0-FUJI-RAF.diff.gz
(application/x-gunzip, 3.6 KB) - not displayed
gqview.spec.diff
(text/plain, 940 B)
--- /usr/src/packages/SPECS/gqview.spec.orig 2005-04-26 09:47:51.000000000 +0200
+++ /usr/src/packages/SPECS/gqview.spec 2005-04-26 10:50:11.000000000 +0200
@@ -1,6 +1,6 @@
%define _name gqview
%define _version 2.1.0
-%define _rel 1
+%define _rel 3
%define category Graphics
%define req_gtk 2.4.0
@@ -48,6 +48,8 @@
Distribution: %{_distribution}
%endif
+Patch1: gqview-2.1.0-FUJI-RAF.diff
+
%description
GQview is a browser for graphics files.
Offering single click viewing of your graphics files.
@@ -69,6 +71,7 @@
%prep
%setup -q
+%patch1 -p1
CFLAGS="$RPM_OPT_FLAGS" \
CXXFLAGS="$RPM_OPT_FLAGS" \
./configure \
@@ -109,6 +112,9 @@
%{_datadir}/pixmaps/gqview.png
%changelog
+* Tue Apr 26 2005 Lars Ellenberg <l.g.e-S0/[email protected]> 2.1.0-3
+- added fuji .raf embeded jpeg and exif support
+
* Sun Mar 6 2005 Pascal Bleser <[email protected]> 2.1.0-1
- version 2.1.0