Lines Matching refs:byte_count

2793 	size_t  byte_count;  in exif_ifd_make_value()  local
2799 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_ifd_make_value()
2800 value_ptr = safe_emalloc(max(byte_count, 4), 1, 0); 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()
2872 int i, byte_count; in exif_thumbnail_build() local
2897 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2898 if (byte_count > 4) { in exif_thumbnail_build()
2899 new_size += byte_count; in exif_thumbnail_build()
2918 byte_count = php_tiff_bytes_per_format[info_data->format] * info_data->length; in exif_thumbnail_build()
2920 …fo_data->format!=TAG_FMT_STRING?"ARRAY OF ":"", exif_get_tagformat(info_data->format), byte_count); in exif_thumbnail_build()
2932 if (byte_count <= 4) { in exif_thumbnail_build()
2937 …ageInfo, E_NOTICE, "Thumbnail: writing with value offset: 0x%04X + 0x%02X", new_value, byte_count); in exif_thumbnail_build()
2939 memmove(ImageInfo->Thumbnail.data+new_value, value_ptr, byte_count); in exif_thumbnail_build()
2940 new_value += byte_count; in exif_thumbnail_build()
2987 static int exif_process_undefined(char **result, char *value, size_t byte_count) { in exif_process_undefined() argument
2993 if (byte_count) { in exif_process_undefined()
2994 (*result) = estrndup(value, byte_count); /* NULL @ byte_count!!! */ in exif_process_undefined()
2995 return byte_count+1; in exif_process_undefined()
3003 static int exif_process_string_raw(char **result, char *value, size_t byte_count) { in exif_process_string_raw() argument
3008 if (byte_count) { in exif_process_string_raw()
3009 (*result) = safe_emalloc(byte_count, 1, 1); in exif_process_string_raw()
3010 memcpy(*result, value, byte_count); in exif_process_string_raw()
3011 (*result)[byte_count] = '\0'; in exif_process_string_raw()
3012 return byte_count+1; in exif_process_string_raw()
3021 static int exif_process_string(char **result, char *value, size_t byte_count) { in exif_process_string() argument
3029 if ((byte_count=zend_strnlen(value, byte_count)) > 0) { in exif_process_string()
3030 return exif_process_undefined(result, value, byte_count); in exif_process_string()
3033 return byte_count+1; in exif_process_string()
3255 if (byte_count == 0) { \
3269 size_t byte_count, offset_val, fpos, fgot; in exif_process_IFD_TAG_impl() local
3294 byte_count = (size_t)byte_count_signed; in exif_process_IFD_TAG_impl()
3296 if (byte_count > 4) { in exif_process_IFD_TAG_impl()
3299 value_ptr = exif_offset_info_try_get(info, offset_val, byte_count); in exif_process_IFD_TAG_impl()
3305 …if (byte_count > ImageInfo->FileSize || offset_val>ImageInfo->FileSize-byte_count || (ImageInfo->F… in exif_process_IFD_TAG_impl()
3306 …", tag, exif_get_tagname_debug(tag, tag_table), offset_val, byte_count, offset_val+byte_count, Ima… in exif_process_IFD_TAG_impl()
3309 if (byte_count>sizeof(cbuf)) { in exif_process_IFD_TAG_impl()
3311 value_ptr = safe_emalloc(byte_count, 1, 0); in exif_process_IFD_TAG_impl()
3331 fgot = exif_read_from_stream_file_looped(ImageInfo->infile, value_ptr, byte_count); in exif_process_IFD_TAG_impl()
3333 if (fgot != byte_count) { in exif_process_IFD_TAG_impl()
3351 …tag, exif_get_tagname_debug(tag, tag_table), offset_val+displacement, byte_count, byte_count, (com… in exif_process_IFD_TAG_impl()
3403 if (byte_count>1 && (length=zend_strnlen(value_ptr, byte_count)) > 0) { in exif_process_IFD_TAG_impl()
3404 if (length<byte_count-1) { in exif_process_IFD_TAG_impl()
3410 ImageInfo->CopyrightEditor = estrndup(value_ptr+length+1, byte_count-length-1); in exif_process_IFD_TAG_impl()
3417 ImageInfo->Copyright = estrndup(value_ptr, byte_count); in exif_process_IFD_TAG_impl()
3427 …nt(ImageInfo, &(ImageInfo->UserComment), &(ImageInfo->UserCommentEncoding), value_ptr, byte_count); in exif_process_IFD_TAG_impl()
3439 …ImageInfo, &(ImageInfo->xp_fields.list[ImageInfo->xp_fields.count-1]), tag, value_ptr, byte_count); in exif_process_IFD_TAG_impl()
3520 ImageInfo->make = estrndup(value_ptr, byte_count); in exif_process_IFD_TAG_impl()
3524 ImageInfo->model = estrndup(value_ptr, byte_count); in exif_process_IFD_TAG_impl()
3528 if (!exif_process_IFD_in_MAKERNOTE(ImageInfo, value_ptr, byte_count, info, displacement)) { in exif_process_IFD_TAG_impl()
3581 …ame_key(tag, tagname, sizeof(tagname), tag_table), tag, format, components, value_ptr, byte_count); in exif_process_IFD_TAG_impl()