35 unsigned char *eb,
size[2];
40 printf (
"Creating EXIF data...\n");
43 fprintf(stderr,
"Out of memory\n");
49 printf (
"Fill EXIF data with all necessary entries to follow specs...\n");
56 fprintf(stderr,
"Out of memory\n");
63 printf (
"Saving EXIF data to memory...\n");
67 printf (
"Writing %i byte(s) EXIF data to loader...\n", ebs);
70 fprintf(stderr,
"Out of memory\n");
74 size[0] = (
unsigned char) ebs;
75 size[1] = (
unsigned char) (ebs >> 8);
78 printf (
"Wrote %i byte(s).\n", i);
82 fprintf(stderr,
"Out of memory\n");
@ EXIF_DATA_TYPE_UNCOMPRESSED_CHUNKY
ExifData * exif_data_new(void)
Allocate a new ExifData.
void exif_data_unref(ExifData *data)
void exif_data_fix(ExifData *d)
Fix the EXIF data to bring it into specification.
void exif_data_dump(ExifData *data)
Dump all EXIF data to stdout.
void exif_data_set_data_type(ExifData *d, ExifDataType dt)
Set the data type for the given ExifData.
void exif_data_save_data(ExifData *data, unsigned char **d, unsigned int *ds)
Store raw EXIF data representing the ExifData structure into a memory buffer.
Defines the ExifData type and the associated functions.
ExifLoader * exif_loader_new(void)
Allocate a new ExifLoader.
void exif_loader_unref(ExifLoader *loader)
Decrease the refcount of the ExifLoader.
ExifData * exif_loader_get_data(ExifLoader *loader)
Create an ExifData from the data in the loader.
unsigned char exif_loader_write(ExifLoader *eld, unsigned char *buf, unsigned int len)
Load a buffer into the ExifLoader from a memory buffer.
Defines the ExifLoader type.
Represents the entire EXIF data found in an image.
unsigned char * data
Pointer to thumbnail image, or NULL if not available.
unsigned int size
Number of bytes in thumbnail image at data.