• Home
  • Raw
  • Download

Lines Matching refs:entry

131 	ExifEntry *entry;  in init_tag()  local
133 if (!((entry = exif_content_get_entry (exif->ifd[ifd], tag)))) { in init_tag()
135 entry = exif_entry_new (); in init_tag()
136 assert(entry != NULL); /* catch an out of memory condition */ in init_tag()
137 entry->tag = tag; /* tag must be set before calling in init_tag()
141 exif_content_add_entry (exif->ifd[ifd], entry); in init_tag()
144 exif_entry_initialize (entry, tag); in init_tag()
152 exif_entry_unref(entry); in init_tag()
154 return entry; in init_tag()
165 ExifEntry *entry; in create_tag() local
172 entry = exif_entry_new_mem (mem); in create_tag()
173 assert(entry != NULL); in create_tag()
180 entry->data = buf; in create_tag()
181 entry->size = len; in create_tag()
182 entry->tag = tag; in create_tag()
183 entry->components = len; in create_tag()
184 entry->format = EXIF_FORMAT_UNDEFINED; in create_tag()
187 exif_content_add_entry (exif->ifd[ifd], entry); in create_tag()
191 exif_entry_unref(entry); in create_tag()
193 return entry; in create_tag()
202 ExifEntry *entry; in main() local
219 entry = init_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_PIXEL_X_DIMENSION); in main()
220 exif_set_long(entry->data, FILE_BYTE_ORDER, image_jpg_x); in main()
222 entry = init_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_PIXEL_Y_DIMENSION); in main()
223 exif_set_long(entry->data, FILE_BYTE_ORDER, image_jpg_y); in main()
225 entry = init_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_COLOR_SPACE); in main()
226 exif_set_short(entry->data, FILE_BYTE_ORDER, 1); in main()
233 entry = create_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_USER_COMMENT, in main()
236 memcpy(entry->data, ASCII_COMMENT, sizeof(ASCII_COMMENT)-1); in main()
238 memcpy(entry->data+8, FILE_COMMENT, sizeof(FILE_COMMENT)-1); in main()
243 entry = create_tag(exif, EXIF_IFD_EXIF, EXIF_TAG_SUBJECT_AREA, in main()
245 entry->format = EXIF_FORMAT_SHORT; in main()
246 entry->components = 4; in main()
247 exif_set_short(entry->data, FILE_BYTE_ORDER, image_jpg_x / 2); in main()
248 exif_set_short(entry->data+2, FILE_BYTE_ORDER, image_jpg_y / 2); in main()
249 exif_set_short(entry->data+4, FILE_BYTE_ORDER, image_jpg_x); in main()
250 exif_set_short(entry->data+6, FILE_BYTE_ORDER, image_jpg_y); in main()