Lines Matching defs:exif
2 * write-exif.c
11 * libjpeg (included with the exif command-line tool source code) would
17 #include <libexif/exif-data.h>
20 #define FILE_NAME "write-exif.jpg"
120 static ExifEntry *init_tag(ExifData *exif, ExifIfd ifd, ExifTag tag)
123 if (!((entry = exif_content_get_entry (exif->ifd[ifd], tag)))) {
126 exif_content_add_entry (exif->ifd[ifd], entry);
139 ExifData *exif = exif_data_new();
140 if (!exif) {
146 exif_data_set_option(exif, EXIF_DATA_OPTION_FOLLOW_SPECIFICATION);
147 exif_data_set_data_type(exif, EXIF_DATA_TYPE_COMPRESSED);
148 exif_data_set_byte_order(exif, BYTE_ORDER);
151 exif_data_fix(exif);
155 entry = init_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_PIXEL_X_DIMENSION);
158 entry = init_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_PIXEL_Y_DIMENSION);
161 entry = init_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_COLOR_SPACE);
171 exif_data_save_data(exif, &exif_data, &exif_data_len);
176 exif_data_unref(exif);
211 exif_data_unref(exif);