~ubuntu-branches/ubuntu/vivid/rawstudio/vivid

« back to all changes in this revision

Viewing changes to src/rs-metadata.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2011-07-28 17:36:32 UTC
  • mfrom: (2.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20110728173632-5czluz9ye3c83zc5
Tags: 2.0-1
* [3750b2cf] Merge commit 'upstream/2.0'
* [63637468] Removing Patch, not necessary anymore.
* [2fb580dc] Add new build-dependencies.
* [c57d953b] Run dh_autoreconf due to patches in configure.in
* [13febe39] Add patch to remove the libssl requirement.
* [5ae773fe] Replace libjpeg62-dev by libjpeg8-dev :)
* [1969d755] Don't build static libraries.
* [7cfe0a2e] Add a patch to fix the plugin directory path.
  As plugins are shared libraries, they need to go into /usr/lib,
  not into /usr/share.
  Thanks to Andrew McMillan
* [c1d0d9dd] Don't install .la files for all plugins and libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2006-2009 Anders Brander <anders@brander.dk> and 
3
 
 * Anders Kvist <akv@lnxbx.dk>
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or
6
 
 * modify it under the terms of the GNU General Public License
7
 
 * as published by the Free Software Foundation; either version 2
8
 
 * of the License, or (at your option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18
 
 */
19
 
 
20
 
#ifndef RS_METADATA_H
21
 
#define RS_METADATA_H
22
 
 
23
 
#include <glib-object.h>
24
 
#include "rawstudio.h" /* FIXME: This is so broken! */
25
 
 
26
 
G_BEGIN_DECLS
27
 
 
28
 
#define RS_TYPE_METADATA rs_metadata_get_type()
29
 
#define RS_METADATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RS_TYPE_METADATA, RSMetadata))
30
 
#define RS_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RS_TYPE_METADATA, RSMetadataClass))
31
 
#define RS_IS_METADATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RS_TYPE_METADATA))
32
 
#define RS_IS_METADATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RS_TYPE_METADATA))
33
 
#define RS_METADATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RS_TYPE_METADATA, RSMetadataClass))
34
 
 
35
 
typedef enum {
36
 
        MAKE_UNKNOWN = 0,
37
 
        MAKE_CANON,
38
 
        MAKE_EPSON,
39
 
        MAKE_FUJIFILM,
40
 
        MAKE_KODAK,
41
 
        MAKE_LEICA,
42
 
        MAKE_MINOLTA,
43
 
        MAKE_NIKON,
44
 
        MAKE_OLYMPUS,
45
 
        MAKE_PANASONIC,
46
 
        MAKE_PENTAX,
47
 
        MAKE_PHASEONE,
48
 
        MAKE_SAMSUNG,
49
 
        MAKE_SIGMA,
50
 
        MAKE_SONY,
51
 
} RS_MAKE;
52
 
 
53
 
struct _RSMetadata {
54
 
        GObject parent;
55
 
        gboolean dispose_has_run;
56
 
        RS_MAKE make;
57
 
        gchar *make_ascii;
58
 
        gchar *model_ascii;
59
 
        gchar *time_ascii;
60
 
        GTime timestamp;
61
 
        gushort orientation;
62
 
        gfloat aperture;
63
 
        gushort iso;
64
 
        gfloat shutterspeed;
65
 
        guint thumbnail_start;
66
 
        guint thumbnail_length;
67
 
        guint preview_start;
68
 
        guint preview_length;
69
 
        guint16 preview_planar_config;
70
 
        guint preview_width;
71
 
        guint preview_height;
72
 
        guint16 preview_bits [3];
73
 
        gdouble cam_mul[4];
74
 
        gdouble contrast;
75
 
        gdouble saturation;
76
 
        gdouble color_tone;
77
 
        gshort focallength;
78
 
        RS_MATRIX4 adobe_coeff;
79
 
        GdkPixbuf *thumbnail;
80
 
};
81
 
 
82
 
typedef struct {
83
 
  GObjectClass parent_class;
84
 
} RSMetadataClass;
85
 
 
86
 
GType rs_metadata_get_type (void);
87
 
 
88
 
extern RSMetadata *rs_metadata_new (void);
89
 
extern RSMetadata *rs_metadata_new_from_file(const gchar *filename);
90
 
extern gboolean rs_metadata_load_from_file(RSMetadata *metadata, const gchar *filename);
91
 
extern void rs_metadata_normalize_wb(RSMetadata *metadata);
92
 
extern gchar *rs_metadata_get_short_description(RSMetadata *metadata);
93
 
extern GdkPixbuf *rs_metadata_get_thumbnail(RSMetadata *metadata);
94
 
 
95
 
/**
96
 
 * Deletes the on-disk cache (if any) for a photo
97
 
 * @param filename The filename of the PHOTO - not the cache itself
98
 
 */
99
 
extern void rs_metadata_delete_cache(const gchar *filename);
100
 
 
101
 
G_END_DECLS
102
 
 
103
 
#endif /* RS_METADATA_H */
104