EXIF library (libexif) API: libexif/exif-loader.h Source File

EXIF library (libexif) API 0.6.22

exif-loader.h
Go to the documentation of this file.
1
4 /*
5 * Copyright (c) 2003 Lutz Mueller <lutz@users.sourceforge.net>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301 USA.
21 */
22
23 #ifndef __EXIF_LOADER_H__
24 #define __EXIF_LOADER_H__
25
26 #include <libexif/exif-data.h>
27 #include <libexif/exif-log.h>
28 #include <libexif/exif-mem.h>
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
33
35 typedef struct _ExifLoader ExifLoader;
36
41 ExifLoader *exif_loader_new (void);
42
48 ExifLoader *exif_loader_new_mem (ExifMem *mem);
49
54 void exif_loader_ref (ExifLoader *loader);
55
61 void exif_loader_unref (ExifLoader *loader);
62
69 void exif_loader_write_file (ExifLoader *loader, const char *fname);
70
80 unsigned char exif_loader_write (ExifLoader *loader, unsigned char *buf, unsigned int sz);
81
87 void exif_loader_reset (ExifLoader *loader);
88
103 ExifData *exif_loader_get_data (ExifLoader *loader);
104
115 void exif_loader_get_buf (ExifLoader *loader, const unsigned char **buf,
116 unsigned int *buf_size);
117
122 void exif_loader_log (ExifLoader *loader, ExifLog *log);
123
124 #ifdef __cplusplus
125 }
126 #endif /* __cplusplus */
127
128 #endif /* __EXIF_LOADER_H__ */
exif_loader_get_buf
void exif_loader_get_buf(ExifLoader *loader, const unsigned char **buf, unsigned int *buf_size)
Return the raw data read by the loader.
Definition: exif-loader.c:407
exif-loader.h
Defines the ExifLoader type.
exif_loader_new
ExifLoader * exif_loader_new(void)
Allocate a new ExifLoader.
Definition: exif-loader.c:317
exif_mem_new_default
ExifMem * exif_mem_new_default(void)
Create a new ExifMem with default values for your convenience.
Definition: exif-mem.c:95
ExifLog
struct _ExifLog ExifLog
State maintained by the logging interface.
Definition: exif-log.h:34
exif_loader_new_mem
ExifLoader * exif_loader_new_mem(ExifMem *mem)
Allocate a new ExifLoader using the specified memory allocator.
Definition: exif-loader.c:328
exif_data_new_mem
ExifData * exif_data_new_mem(ExifMem *)
Allocate a new ExifData using the given memory allocator.
Definition: exif-data.c:104
exif_loader_write
unsigned char exif_loader_write(ExifLoader *loader, unsigned char *buf, unsigned int sz)
Load a buffer into the ExifLoader from a memory buffer.
Definition: exif-loader.c:153
exif_data_load_data
void exif_data_load_data(ExifData *data, const unsigned char *d, unsigned int size)
Load the ExifData structure from the raw JPEG or EXIF data in the given memory buffer.
Definition: exif-data.c:837
exif-utils.h
EXIF data manipulation functions and types.
exif_mem_unref
void exif_mem_unref(ExifMem *)
Unrefcount an ExifMem.
Definition: exif-mem.c:61
exif_loader_unref
void exif_loader_unref(ExifLoader *loader)
Decrease the refcount of the ExifLoader.
Definition: exif-loader.c:369
exif_data_log
void exif_data_log(ExifData *data, ExifLog *log)
Set the log message object for all IFDs.
Definition: exif-data.c:1208
exif_loader_ref
void exif_loader_ref(ExifLoader *loader)
Increase the refcount of the ExifLoader.
Definition: exif-loader.c:347
exif_loader_reset
void exif_loader_reset(ExifLoader *loader)
Free any data previously loaded and reset the ExifLoader to its newly-initialized state.
Definition: exif-loader.c:378
exif-log.h
Log message infrastructure.
ExifLoader
struct _ExifLoader ExifLoader
Data used by the loader interface.
Definition: exif-loader.h:35
exif_loader_get_data
ExifData * exif_loader_get_data(ExifLoader *loader)
Create an ExifData from the data in the loader.
Definition: exif-loader.c:391
ExifMem
struct _ExifMem ExifMem
ExifMem define a memory allocator.
Definition: exif-mem.h:57
exif-mem.h
Define the ExifMem data type and the associated functions.
exif-data.h
Defines the ExifData type and the associated functions.
exif_loader_write_file
void exif_loader_write_file(ExifLoader *loader, const char *fname)
Load a file into the given ExifLoader from the filesystem.
Definition: exif-loader.c:107
_ExifData
Represents the entire EXIF data found in an image.
Definition: exif-data.h:47
exif_mem_ref
void exif_mem_ref(ExifMem *)
Refcount an ExifMem.
Definition: exif-mem.c:54
exif_loader_log
void exif_loader_log(ExifLoader *loader, ExifLog *log)
Set the log message object used by this ExifLoader.
Definition: exif-loader.c:430