Lines Matching refs:info_data

2055 	image_info_data  *info_data;  in exif_iif_add_value()  local
2065info_data = &image_info->info_list[section_index].list[image_info->info_list[section_index].count… in exif_iif_add_value()
2066 memset(info_data, 0, sizeof(image_info_data)); in exif_iif_add_value()
2067 info_data->tag = tag; in exif_iif_add_value()
2068 info_data->format = format; in exif_iif_add_value()
2069 info_data->length = length; in exif_iif_add_value()
2070 info_data->name = estrdup(name); in exif_iif_add_value()
2071 info_value = &info_data->value; in exif_iif_add_value()
2082 info_data->length = length; in exif_iif_add_value()
2084 info_data->length = 0; in exif_iif_add_value()
2095 info_data->tag = TAG_FMT_UNDEFINED;/* otherwise not freed from memory */ in exif_iif_add_value()
2113 info_data->length = length; in exif_iif_add_value()
2115 info_data->length = 0; in exif_iif_add_value()
2134 info_value = &info_data->value; in exif_iif_add_value()
2143 info_value = &info_data->value.list[idex]; in exif_iif_add_value()
2206 image_info_data *info_data; in exif_iif_add_int() local
2212info_data = &image_info->info_list[section_index].list[image_info->info_list[section_index].count… in exif_iif_add_int()
2213 info_data->tag = TAG_NONE; in exif_iif_add_int()
2214 info_data->format = TAG_FMT_SLONG; in exif_iif_add_int()
2215 info_data->length = 1; in exif_iif_add_int()
2216 info_data->name = estrdup(name); in exif_iif_add_int()
2217 info_data->value.i = value; in exif_iif_add_int()
2228 image_info_data *info_data; in exif_iif_add_str() local
2234info_data = &image_info->info_list[section_index].list[image_info->info_list[section_index].count… in exif_iif_add_str()
2235 info_data->tag = TAG_NONE; in exif_iif_add_str()
2236 info_data->format = TAG_FMT_STRING; in exif_iif_add_str()
2237 info_data->length = 1; in exif_iif_add_str()
2238 info_data->name = estrdup(name); in exif_iif_add_str()
2239 info_data->value.s = estrdup(value); in exif_iif_add_str()
2269 image_info_data *info_data; in exif_iif_add_buffer() local
2275info_data = &image_info->info_list[section_index].list[image_info->info_list[section_index].count… in exif_iif_add_buffer()
2276 info_data->tag = TAG_NONE; in exif_iif_add_buffer()
2277 info_data->format = TAG_FMT_UNDEFINED; in exif_iif_add_buffer()
2278 info_data->length = length; in exif_iif_add_buffer()
2279 info_data->name = estrdup(name); in exif_iif_add_buffer()
2280 info_data->value.s = safe_emalloc(length, 1, 1); in exif_iif_add_buffer()
2281 memcpy(info_data->value.s, value, length); in exif_iif_add_buffer()
2282 info_data->value.s[length] = 0; in exif_iif_add_buffer()
2344 image_info_data *info_data; in add_assoc_image_info() local
2358 info_data = &image_info->info_list[section_index].list[i]; in add_assoc_image_info()
2360 info_tag = info_data->tag; /* conversion */ in add_assoc_image_info()
2362 info_value = &info_data->value; in add_assoc_image_info()
2363 if (!(name = info_data->name)) { in add_assoc_image_info()
2370 if (info_data->length==0) { in add_assoc_image_info()
2373 switch (info_data->format) { in add_assoc_image_info()
2386 add_assoc_stringl(&tmpi, name, info_value->s, info_data->length); in add_assoc_image_info()
2412 if ((l = info_data->length) > 1) { in add_assoc_image_info()
2417 info_value = &info_data->value.list[ap]; in add_assoc_image_info()
2419 switch (info_data->format) { in add_assoc_image_info()
2422 info_value = &info_data->value; in add_assoc_image_info()
2448 info_value = &info_data->value; in add_assoc_image_info()
2488 info_value = &info_data->value.list[ap]; in add_assoc_image_info()
2758 static void* exif_ifd_make_value(image_info_data *info_data, int motorola_intel) { in exif_ifd_make_value() argument
2765 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_ifd_make_value()
2768 if (!info_data->length) { in exif_ifd_make_value()
2771 if (info_data->format == TAG_FMT_UNDEFINED || info_data->format == TAG_FMT_STRING in exif_ifd_make_value()
2772 || (byte_count>1 && (info_data->format == TAG_FMT_BYTE || info_data->format == TAG_FMT_SBYTE)) in exif_ifd_make_value()
2774 memmove(value_ptr, info_data->value.s, byte_count); in exif_ifd_make_value()
2776 } else if (info_data->format == TAG_FMT_BYTE) { in exif_ifd_make_value()
2777 *value_ptr = info_data->value.u; in exif_ifd_make_value()
2779 } else if (info_data->format == TAG_FMT_SBYTE) { in exif_ifd_make_value()
2780 *value_ptr = info_data->value.i; in exif_ifd_make_value()
2784 for(i=0; i<info_data->length; i++) { in exif_ifd_make_value()
2785 if (info_data->length==1) { in exif_ifd_make_value()
2786 info_value = &info_data->value; in exif_ifd_make_value()
2788 info_value = &info_data->value.list[i]; in exif_ifd_make_value()
2790 switch(info_data->format) { in exif_ifd_make_value()
2840 image_info_data *info_data; in exif_thumbnail_build() local
2865 info_data = &info_list->list[i]; in exif_thumbnail_build()
2866 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2886 info_data = &info_list->list[i]; in exif_thumbnail_build()
2887 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2889info_data->tag, exif_get_tagname(info_data->tag, tagname, -12, tag_table_IFD), (info_data->length>… in exif_thumbnail_build()
2891 if (info_data->tag==TAG_STRIP_OFFSETS || info_data->tag==TAG_JPEG_INTERCHANGE_FORMAT) { in exif_thumbnail_build()
2892 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2897 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2898 php_ifd_set16u(new_data + 2, info_data->format, ImageInfo->motorola_intel); in exif_thumbnail_build()
2899 php_ifd_set32u(new_data + 4, info_data->length, ImageInfo->motorola_intel); in exif_thumbnail_build()
2900 value_ptr = exif_ifd_make_value(info_data, ImageInfo->motorola_intel); in exif_thumbnail_build()