Lines Matching refs:info_data
2182 image_info_data *info_data; in exif_iif_add_value() local
2188 info_data = exif_alloc_image_info_data(&image_info->info_list[section_index]); in exif_iif_add_value()
2189 memset(info_data, 0, sizeof(image_info_data)); in exif_iif_add_value()
2190 info_data->tag = tag; in exif_iif_add_value()
2191 info_data->format = format; in exif_iif_add_value()
2192 info_data->length = length; in exif_iif_add_value()
2193 info_data->name = estrdup(name); in exif_iif_add_value()
2194 info_value = &info_data->value; in exif_iif_add_value()
2205 info_data->length = length; in exif_iif_add_value()
2207 info_data->length = 0; in exif_iif_add_value()
2218 info_data->tag = TAG_FMT_UNDEFINED;/* otherwise not freed from memory */ in exif_iif_add_value()
2236 info_data->length = length; in exif_iif_add_value()
2238 info_data->length = 0; in exif_iif_add_value()
2257 info_value = &info_data->value; in exif_iif_add_value()
2266 info_value = &info_data->value.list[idex]; in exif_iif_add_value()
2328 image_info_data *info_data = exif_alloc_image_info_data(&image_info->info_list[section_index]); in exif_iif_add_int() local
2329 info_data->tag = TAG_NONE; in exif_iif_add_int()
2330 info_data->format = TAG_FMT_SLONG; in exif_iif_add_int()
2331 info_data->length = 1; in exif_iif_add_int()
2332 info_data->name = estrdup(name); in exif_iif_add_int()
2333 info_data->value.i = value; in exif_iif_add_int()
2344 image_info_data *info_data = in exif_iif_add_str() local
2346 info_data->tag = TAG_NONE; in exif_iif_add_str()
2347 info_data->format = TAG_FMT_STRING; in exif_iif_add_str()
2348 info_data->length = 1; in exif_iif_add_str()
2349 info_data->name = estrdup(name); in exif_iif_add_str()
2350 info_data->value.s = estrdup(value); in exif_iif_add_str()
2380 image_info_data *info_data = in exif_iif_add_buffer() local
2382 info_data->tag = TAG_NONE; in exif_iif_add_buffer()
2383 info_data->format = TAG_FMT_UNDEFINED; in exif_iif_add_buffer()
2384 info_data->length = length; in exif_iif_add_buffer()
2385 info_data->name = estrdup(name); in exif_iif_add_buffer()
2386 info_data->value.s = safe_emalloc(length, 1, 1); in exif_iif_add_buffer()
2387 memcpy(info_data->value.s, value, length); in exif_iif_add_buffer()
2388 info_data->value.s[length] = 0; in exif_iif_add_buffer()
2458 image_info_data *info_data = &image_info->info_list[section_index].list[i]; in add_assoc_image_info() local
2459 image_info_value *info_value = &info_data->value; in add_assoc_image_info()
2460 const char *name = info_data->name; in add_assoc_image_info()
2466 if (info_data->length == 0) { in add_assoc_image_info()
2469 switch (info_data->format) { in add_assoc_image_info()
2482 add_assoc_stringl(&tmpi, name, info_value->s, info_data->length); in add_assoc_image_info()
2506 int l = info_data->length; in add_assoc_image_info()
2512 info_value = &info_data->value.list[ap]; in add_assoc_image_info()
2514 switch (info_data->format) { in add_assoc_image_info()
2517 info_value = &info_data->value; in add_assoc_image_info()
2543 info_value = &info_data->value; in add_assoc_image_info()
2776 static void* exif_ifd_make_value(image_info_data *info_data, int motorola_intel) { in exif_ifd_make_value() argument
2783 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_ifd_make_value()
2786 if (!info_data->length) { in exif_ifd_make_value()
2789 if (info_data->format == TAG_FMT_UNDEFINED || info_data->format == TAG_FMT_STRING in exif_ifd_make_value()
2790 || (byte_count>1 && (info_data->format == TAG_FMT_BYTE || info_data->format == TAG_FMT_SBYTE)) in exif_ifd_make_value()
2792 memmove(value_ptr, info_data->value.s, byte_count); in exif_ifd_make_value()
2794 } else if (info_data->format == TAG_FMT_BYTE) { in exif_ifd_make_value()
2795 *value_ptr = info_data->value.u; in exif_ifd_make_value()
2797 } else if (info_data->format == TAG_FMT_SBYTE) { in exif_ifd_make_value()
2798 *value_ptr = info_data->value.i; in exif_ifd_make_value()
2802 for(i=0; i<info_data->length; i++) { in exif_ifd_make_value()
2803 if (info_data->length==1) { in exif_ifd_make_value()
2804 info_value = &info_data->value; in exif_ifd_make_value()
2806 info_value = &info_data->value.list[i]; in exif_ifd_make_value()
2808 switch(info_data->format) { in exif_ifd_make_value()
2858 image_info_data *info_data; in exif_thumbnail_build() local
2880 info_data = &info_list->list[i]; in exif_thumbnail_build()
2881 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2901 info_data = &info_list->list[i]; in exif_thumbnail_build()
2902 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2904 …info_data->tag, exif_get_tagname_debug(info_data->tag, tag_table_IFD), (info_data->length>1)&&info… in exif_thumbnail_build()
2906 if (info_data->tag==TAG_STRIP_OFFSETS || info_data->tag==TAG_JPEG_INTERCHANGE_FORMAT) { in exif_thumbnail_build()
2907 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2912 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2913 php_ifd_set16u(new_data + 2, info_data->format, ImageInfo->motorola_intel); in exif_thumbnail_build()
2914 php_ifd_set32u(new_data + 4, info_data->length, ImageInfo->motorola_intel); in exif_thumbnail_build()
2915 value_ptr = exif_ifd_make_value(info_data, ImageInfo->motorola_intel); in exif_thumbnail_build()