Lines Matching refs:Thumbnail

1980 	thumbnail_data  Thumbnail;  member
2876 if (!ImageInfo->read_thumbnail || !ImageInfo->Thumbnail.offset || !ImageInfo->Thumbnail.size) { in exif_thumbnail_build()
2880 …f(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail: filetype = %d", ImageInfo->Thumbnail.filetype); in exif_thumbnail_build()
2882 switch(ImageInfo->Thumbnail.filetype) { in exif_thumbnail_build()
2903 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size); in exif_thumbnail_build()
2904 ImageInfo->Thumbnail.data = new_data; in exif_thumbnail_build()
2905 …memmove(ImageInfo->Thumbnail.data + new_move, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.size… in exif_thumbnail_build()
2906 ImageInfo->Thumbnail.size += new_size; in exif_thumbnail_build()
2939 memmove(ImageInfo->Thumbnail.data+new_value, value_ptr, byte_count); in exif_thumbnail_build()
2958 if (ImageInfo->Thumbnail.data) { in exif_thumbnail_extract()
2966 if (ImageInfo->Thumbnail.size >= 65536 in exif_thumbnail_extract()
2967 || ImageInfo->Thumbnail.size <= 0 in exif_thumbnail_extract()
2968 || ImageInfo->Thumbnail.offset <= 0 in exif_thumbnail_extract()
2975 info, ImageInfo->Thumbnail.offset, ImageInfo->Thumbnail.size); in exif_thumbnail_extract()
2980 ImageInfo->Thumbnail.data = estrndup(thumbnail, ImageInfo->Thumbnail.size); in exif_thumbnail_extract()
3361 if (!ImageInfo->Thumbnail.data) { in exif_process_IFD_TAG_impl()
3366 …ImageInfo->Thumbnail.width = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigne… in exif_process_IFD_TAG_impl()
3371 …ImageInfo->Thumbnail.height = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsign… in exif_process_IFD_TAG_impl()
3377 …ImageInfo->Thumbnail.offset = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsign… in exif_process_IFD_TAG_impl()
3382 ImageInfo->Thumbnail.filetype = ImageInfo->FileType; in exif_process_IFD_TAG_impl()
3385 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_TIFF_MM; in exif_process_IFD_TAG_impl()
3387 …ImageInfo->Thumbnail.size = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned… in exif_process_IFD_TAG_impl()
3391 if (ImageInfo->Thumbnail.filetype == IMAGE_FILETYPE_UNKNOWN) { in exif_process_IFD_TAG_impl()
3392 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_JPEG; in exif_process_IFD_TAG_impl()
3393 …ImageInfo->Thumbnail.size = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned… in exif_process_IFD_TAG_impl()
3668 …_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail size: 0x%04X", ImageInfo->Thumbnail.size); in exif_process_IFD_in_JPEG()
3670 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_JPEG()
3671 && ImageInfo->Thumbnail.size in exif_process_IFD_in_JPEG()
3672 && ImageInfo->Thumbnail.offset in exif_process_IFD_in_JPEG()
3949 uchar c, *data = (uchar*)ImageInfo->Thumbnail.data; in exif_scan_thumbnail()
3954 if (!data || ImageInfo->Thumbnail.size < 4) { in exif_scan_thumbnail()
3958 if (!ImageInfo->Thumbnail.width && !ImageInfo->Thumbnail.height) { in exif_scan_thumbnail()
3965 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3968 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3975 if (pos+3>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3982 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3985 if (length > ImageInfo->Thumbnail.size || pos >= ImageInfo->Thumbnail.size - length) { in exif_scan_thumbnail()
4006 if (length < 8 || ImageInfo->Thumbnail.size - 8 < pos) { in exif_scan_thumbnail()
4011 ImageInfo->Thumbnail.height = sof_info.height; in exif_scan_thumbnail()
4012 ImageInfo->Thumbnail.width = sof_info.width; in exif_scan_thumbnail()
4193 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_TIFF_impl()
4194 && ImageInfo->Thumbnail.size in exif_process_IFD_in_TIFF_impl()
4195 && ImageInfo->Thumbnail.offset in exif_process_IFD_in_TIFF_impl()
4199 …AIL @0x%04X + 0x%04X", ImageInfo->Thumbnail.data ? "Ignore" : "Read", ImageInfo->Thumbnail.offset,… in exif_process_IFD_in_TIFF_impl()
4201 if (!ImageInfo->Thumbnail.data) { in exif_process_IFD_in_TIFF_impl()
4202 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF_impl()
4203 php_stream_seek(ImageInfo->infile, ImageInfo->Thumbnail.offset, SEEK_SET); in exif_process_IFD_in_TIFF_impl()
4204 …ead_from_stream_file_looped(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.siz… in exif_process_IFD_in_TIFF_impl()
4205 if (fgot != ImageInfo->Thumbnail.size) { in exif_process_IFD_in_TIFF_impl()
4207 efree(ImageInfo->Thumbnail.data); in exif_process_IFD_in_TIFF_impl()
4209 ImageInfo->Thumbnail.data = NULL; in exif_process_IFD_in_TIFF_impl()
4239 …AIL @0x%04X + 0x%04X", ImageInfo->Thumbnail.data ? "Ignore" : "Read", ImageInfo->Thumbnail.offset,… in exif_process_IFD_in_TIFF_impl()
4241 …if (!ImageInfo->Thumbnail.data && ImageInfo->Thumbnail.offset && ImageInfo->Thumbnail.size && Imag… in exif_process_IFD_in_TIFF_impl()
4242 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF_impl()
4243 php_stream_seek(ImageInfo->infile, ImageInfo->Thumbnail.offset, SEEK_SET); in exif_process_IFD_in_TIFF_impl()
4244 …ead_from_stream_file_looped(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.siz… in exif_process_IFD_in_TIFF_impl()
4245 if (fgot != ImageInfo->Thumbnail.size) { in exif_process_IFD_in_TIFF_impl()
4247 efree(ImageInfo->Thumbnail.data); in exif_process_IFD_in_TIFF_impl()
4248 ImageInfo->Thumbnail.data = NULL; in exif_process_IFD_in_TIFF_impl()
4366 EFREE_IF(ImageInfo->Thumbnail.data); in exif_discard_imageinfo()
4430 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_UNKNOWN; in exif_read_from_impl()
4654 if (ImageInfo.Thumbnail.size) { in PHP_FUNCTION()
4657 …NAIL", TAG_NONE, TAG_FMT_UNDEFINED, ImageInfo.Thumbnail.size, ImageInfo.Thumbnail.data, ImageInfo. in PHP_FUNCTION()
4659 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4663 …exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.FileType", ImageInfo.Thumbnail.filetype); in PHP_FUNCTION()
4664 …_COMPUTED, "Thumbnail.MimeType", (char*)php_image_type_to_mime_type(ImageInfo.Thumbnail.filetype)); in PHP_FUNCTION()
4666 if (ImageInfo.Thumbnail.width && ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4667 exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.Height", ImageInfo.Thumbnail.height); in PHP_FUNCTION()
4668 exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.Width", ImageInfo.Thumbnail.width); in PHP_FUNCTION()
4752 …x %d", ImageInfo.Thumbnail.data, ImageInfo.Thumbnail.size, ImageInfo.Thumbnail.filetype, ImageInfo… in PHP_FUNCTION()
4754 if (!ImageInfo.Thumbnail.data || !ImageInfo.Thumbnail.size) { in PHP_FUNCTION()
4760 …docref(NULL EXIFERR_CC, &ImageInfo, E_NOTICE, "Returning thumbnail(%d)", ImageInfo.Thumbnail.size); in PHP_FUNCTION()
4763 ZVAL_STRINGL(return_value, ImageInfo.Thumbnail.data, ImageInfo.Thumbnail.size); in PHP_FUNCTION()
4765 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4767 ImageInfo.Thumbnail.width = ImageInfo.Thumbnail.height = 0; in PHP_FUNCTION()
4770 ZEND_TRY_ASSIGN_REF_LONG(z_width, ImageInfo.Thumbnail.width); in PHP_FUNCTION()
4771 ZEND_TRY_ASSIGN_REF_LONG(z_height, ImageInfo.Thumbnail.height); in PHP_FUNCTION()
4774 ZEND_TRY_ASSIGN_REF_LONG(z_imagetype, ImageInfo.Thumbnail.filetype); in PHP_FUNCTION()