Lines Matching refs:info_data

2205 	image_info_data  *info_data;  in exif_iif_add_value()  local
2211 info_data = exif_alloc_image_info_data(&image_info->info_list[section_index]); in exif_iif_add_value()
2212 memset(info_data, 0, sizeof(image_info_data)); in exif_iif_add_value()
2213 info_data->tag = tag; in exif_iif_add_value()
2214 info_data->format = format; in exif_iif_add_value()
2215 info_data->length = length; in exif_iif_add_value()
2216 info_data->name = estrdup(name); in exif_iif_add_value()
2217 info_value = &info_data->value; in exif_iif_add_value()
2228 info_data->length = length; in exif_iif_add_value()
2230 info_data->length = 0; in exif_iif_add_value()
2241 info_data->tag = TAG_FMT_UNDEFINED;/* otherwise not freed from memory */ in exif_iif_add_value()
2262 info_data->length = length; in exif_iif_add_value()
2264 info_data->length = 0; in exif_iif_add_value()
2283 info_value = &info_data->value; in exif_iif_add_value()
2292 info_value = &info_data->value.list[idex]; in exif_iif_add_value()
2354 image_info_data *info_data = exif_alloc_image_info_data(&image_info->info_list[section_index]); in exif_iif_add_int() local
2355 info_data->tag = TAG_NONE; in exif_iif_add_int()
2356 info_data->format = TAG_FMT_SLONG; in exif_iif_add_int()
2357 info_data->length = 1; in exif_iif_add_int()
2358 info_data->name = estrdup(name); in exif_iif_add_int()
2359 info_data->value.i = value; in exif_iif_add_int()
2370 image_info_data *info_data = in exif_iif_add_str() local
2372 info_data->tag = TAG_NONE; in exif_iif_add_str()
2373 info_data->format = TAG_FMT_STRING; in exif_iif_add_str()
2374 info_data->length = 1; in exif_iif_add_str()
2375 info_data->name = estrdup(name); in exif_iif_add_str()
2376 info_data->value.s = estrdup(value); in exif_iif_add_str()
2406 image_info_data *info_data = in exif_iif_add_buffer() local
2408 info_data->tag = TAG_NONE; in exif_iif_add_buffer()
2409 info_data->format = TAG_FMT_UNDEFINED; in exif_iif_add_buffer()
2410 info_data->length = length; in exif_iif_add_buffer()
2411 info_data->name = estrdup(name); in exif_iif_add_buffer()
2412 info_data->value.s = safe_emalloc(length, 1, 1); in exif_iif_add_buffer()
2413 memcpy(info_data->value.s, value, length); in exif_iif_add_buffer()
2414 info_data->value.s[length] = 0; in exif_iif_add_buffer()
2484 image_info_data *info_data = &image_info->info_list[section_index].list[i]; in add_assoc_image_info() local
2485 image_info_value *info_value = &info_data->value; in add_assoc_image_info()
2486 const char *name = info_data->name; in add_assoc_image_info()
2492 if (info_data->length == 0) { in add_assoc_image_info()
2495 switch (info_data->format) { in add_assoc_image_info()
2508 add_assoc_stringl(&tmpi, name, info_value->s, info_data->length); in add_assoc_image_info()
2532 int l = info_data->length; in add_assoc_image_info()
2538 info_value = &info_data->value.list[ap]; in add_assoc_image_info()
2540 switch (info_data->format) { in add_assoc_image_info()
2543 info_value = &info_data->value; in add_assoc_image_info()
2570 info_value = &info_data->value; in add_assoc_image_info()
2804 static void* exif_ifd_make_value(image_info_data *info_data, int motorola_intel) { in exif_ifd_make_value() argument
2811 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_ifd_make_value()
2814 if (!info_data->length) { in exif_ifd_make_value()
2817 if (info_data->format == TAG_FMT_UNDEFINED || info_data->format == TAG_FMT_STRING in exif_ifd_make_value()
2818 || (byte_count>1 && (info_data->format == TAG_FMT_BYTE || info_data->format == TAG_FMT_SBYTE)) in exif_ifd_make_value()
2820 memmove(value_ptr, info_data->value.s, byte_count); in exif_ifd_make_value()
2822 } else if (info_data->format == TAG_FMT_BYTE) { in exif_ifd_make_value()
2823 *value_ptr = info_data->value.u; in exif_ifd_make_value()
2825 } else if (info_data->format == TAG_FMT_SBYTE) { in exif_ifd_make_value()
2826 *value_ptr = info_data->value.i; in exif_ifd_make_value()
2830 for(i=0; i<info_data->length; i++) { in exif_ifd_make_value()
2831 if (info_data->length==1) { in exif_ifd_make_value()
2832 info_value = &info_data->value; in exif_ifd_make_value()
2834 info_value = &info_data->value.list[i]; in exif_ifd_make_value()
2836 switch(info_data->format) { in exif_ifd_make_value()
2886 image_info_data *info_data; in exif_thumbnail_build() local
2908 info_data = &info_list->list[i]; in exif_thumbnail_build()
2909 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2929 info_data = &info_list->list[i]; in exif_thumbnail_build()
2930 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2932info_data->tag, exif_get_tagname_debug(info_data->tag, tag_table_IFD), (info_data->length>1)&&info… in exif_thumbnail_build()
2934 if (info_data->tag==TAG_STRIP_OFFSETS || info_data->tag==TAG_JPEG_INTERCHANGE_FORMAT) { in exif_thumbnail_build()
2935 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2940 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2941 php_ifd_set16u(new_data + 2, info_data->format, ImageInfo->motorola_intel); in exif_thumbnail_build()
2942 php_ifd_set32u(new_data + 4, info_data->length, ImageInfo->motorola_intel); in exif_thumbnail_build()
2943 value_ptr = exif_ifd_make_value(info_data, ImageInfo->motorola_intel); in exif_thumbnail_build()