exif-loader.h File Reference
Defines the ExifLoader type.
More...
#include <libexif/exif-data.h>
#include <libexif/exif-log.h>
#include <libexif/exif-mem.h>
Go to the source code of this file.
Detailed Description
Defines the ExifLoader type.
Function Documentation
void exif_loader_get_buf |
( |
ExifLoader * |
loader, |
|
|
const unsigned char ** |
buf, |
|
|
unsigned int * |
buf_size | |
|
) |
| | |
Return the raw data read by the loader.
The returned pointer is only guaranteed to be valid until the next call to a function modifying this ExifLoader. Either or both of buf and buf_size may be NULL on entry, in which case that value is not returned.
- Parameters:
-
[in] | loader | the loader |
[out] | buf | read-only pointer to the data read by the loader, or NULL in case of error |
[out] | buf_size | size of the data at buf, or 0 in case of error |
Set the log message object used by this ExifLoader.
- Parameters:
-
[in] | loader | the loader |
[in] | log | ExifLog |
Allocate a new ExifLoader.
- Returns:
- allocated ExifLoader
Allocate a new ExifLoader using the specified memory allocator.
- Parameters:
-
- Returns:
- allocated ExifLoader
Increase the refcount of the ExifLoader.
- Parameters:
-
[in] | loader | the ExifLoader to increase the refcount of. |
Free any data previously loaded and reset the ExifLoader to its newly-initialized state.
- Parameters:
-
Decrease the refcount of the ExifLoader.
If the refcount reaches 0, the loader is freed.
- Parameters:
-
[in] | loader | ExifLoader for which to decrease the refcount |
unsigned char exif_loader_write |
( |
ExifLoader * |
loader, |
|
|
unsigned char * |
buf, |
|
|
unsigned int |
sz | |
|
) |
| | |
Load a buffer into the ExifLoader from a memory buffer.
The relevant data is copied in raw form into the ExifLoader.
- Parameters:
-
[in] | loader | loader to write to |
[in] | buf | buffer to read from |
[in] | sz | size of the buffer |
- Returns:
- 1 while EXIF data is read (or while there is still hope that there will be EXIF data later on), 0 otherwise.
void exif_loader_write_file |
( |
ExifLoader * |
loader, |
|
|
const char * |
fname | |
|
) |
| | |
Load a file into the given ExifLoader from the filesystem.
The relevant data is copied in raw form into the ExifLoader.
- Parameters:
-
[in] | loader | loader to write to |
[in] | fname | path to the file to read |