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