Lines Matching refs:info_data

2193 	image_info_data  *info_data;  in exif_iif_add_value()  local
2199 info_data = exif_alloc_image_info_data(&image_info->info_list[section_index]); in exif_iif_add_value()
2200 memset(info_data, 0, sizeof(image_info_data)); in exif_iif_add_value()
2201 info_data->tag = tag; in exif_iif_add_value()
2202 info_data->format = format; in exif_iif_add_value()
2203 info_data->length = length; in exif_iif_add_value()
2204 info_data->name = estrdup(name); in exif_iif_add_value()
2205 info_value = &info_data->value; in exif_iif_add_value()
2216 info_data->length = length; in exif_iif_add_value()
2218 info_data->length = 0; in exif_iif_add_value()
2229 info_data->tag = TAG_FMT_UNDEFINED;/* otherwise not freed from memory */ in exif_iif_add_value()
2250 info_data->length = length; in exif_iif_add_value()
2252 info_data->length = 0; in exif_iif_add_value()
2271 info_value = &info_data->value; in exif_iif_add_value()
2280 info_value = &info_data->value.list[idex]; in exif_iif_add_value()
2342 image_info_data *info_data = exif_alloc_image_info_data(&image_info->info_list[section_index]); in exif_iif_add_int() local
2343 info_data->tag = TAG_NONE; in exif_iif_add_int()
2344 info_data->format = TAG_FMT_SLONG; in exif_iif_add_int()
2345 info_data->length = 1; in exif_iif_add_int()
2346 info_data->name = estrdup(name); in exif_iif_add_int()
2347 info_data->value.i = value; in exif_iif_add_int()
2358 image_info_data *info_data = in exif_iif_add_str() local
2360 info_data->tag = TAG_NONE; in exif_iif_add_str()
2361 info_data->format = TAG_FMT_STRING; in exif_iif_add_str()
2362 info_data->length = 1; in exif_iif_add_str()
2363 info_data->name = estrdup(name); in exif_iif_add_str()
2364 info_data->value.s = estrdup(value); in exif_iif_add_str()
2394 image_info_data *info_data = in exif_iif_add_buffer() local
2396 info_data->tag = TAG_NONE; in exif_iif_add_buffer()
2397 info_data->format = TAG_FMT_UNDEFINED; in exif_iif_add_buffer()
2398 info_data->length = length; in exif_iif_add_buffer()
2399 info_data->name = estrdup(name); in exif_iif_add_buffer()
2400 info_data->value.s = safe_emalloc(length, 1, 1); in exif_iif_add_buffer()
2401 memcpy(info_data->value.s, value, length); in exif_iif_add_buffer()
2402 info_data->value.s[length] = 0; in exif_iif_add_buffer()
2472 image_info_data *info_data = &image_info->info_list[section_index].list[i]; in add_assoc_image_info() local
2473 image_info_value *info_value = &info_data->value; in add_assoc_image_info()
2474 const char *name = info_data->name; in add_assoc_image_info()
2480 if (info_data->length == 0) { in add_assoc_image_info()
2483 switch (info_data->format) { in add_assoc_image_info()
2496 add_assoc_stringl(&tmpi, name, info_value->s, info_data->length); in add_assoc_image_info()
2520 int l = info_data->length; in add_assoc_image_info()
2526 info_value = &info_data->value.list[ap]; in add_assoc_image_info()
2528 switch (info_data->format) { in add_assoc_image_info()
2531 info_value = &info_data->value; in add_assoc_image_info()
2558 info_value = &info_data->value; in add_assoc_image_info()
2792 static void* exif_ifd_make_value(image_info_data *info_data, int motorola_intel) { in exif_ifd_make_value() argument
2799 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_ifd_make_value()
2802 if (!info_data->length) { in exif_ifd_make_value()
2805 if (info_data->format == TAG_FMT_UNDEFINED || info_data->format == TAG_FMT_STRING in exif_ifd_make_value()
2806 || (byte_count>1 && (info_data->format == TAG_FMT_BYTE || info_data->format == TAG_FMT_SBYTE)) in exif_ifd_make_value()
2808 memmove(value_ptr, info_data->value.s, byte_count); in exif_ifd_make_value()
2810 } else if (info_data->format == TAG_FMT_BYTE) { in exif_ifd_make_value()
2811 *value_ptr = info_data->value.u; in exif_ifd_make_value()
2813 } else if (info_data->format == TAG_FMT_SBYTE) { in exif_ifd_make_value()
2814 *value_ptr = info_data->value.i; in exif_ifd_make_value()
2818 for(i=0; i<info_data->length; i++) { in exif_ifd_make_value()
2819 if (info_data->length==1) { in exif_ifd_make_value()
2820 info_value = &info_data->value; in exif_ifd_make_value()
2822 info_value = &info_data->value.list[i]; in exif_ifd_make_value()
2824 switch(info_data->format) { in exif_ifd_make_value()
2874 image_info_data *info_data; in exif_thumbnail_build() local
2896 info_data = &info_list->list[i]; in exif_thumbnail_build()
2897 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2917 info_data = &info_list->list[i]; in exif_thumbnail_build()
2918 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2920info_data->tag, exif_get_tagname_debug(info_data->tag, tag_table_IFD), (info_data->length>1)&&info… in exif_thumbnail_build()
2922 if (info_data->tag==TAG_STRIP_OFFSETS || info_data->tag==TAG_JPEG_INTERCHANGE_FORMAT) { in exif_thumbnail_build()
2923 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2928 php_ifd_set16u(new_data + 0, info_data->tag, ImageInfo->motorola_intel); in exif_thumbnail_build()
2929 php_ifd_set16u(new_data + 2, info_data->format, ImageInfo->motorola_intel); in exif_thumbnail_build()
2930 php_ifd_set32u(new_data + 4, info_data->length, ImageInfo->motorola_intel); in exif_thumbnail_build()
2931 value_ptr = exif_ifd_make_value(info_data, ImageInfo->motorola_intel); in exif_thumbnail_build()