Lines Matching refs:Thumbnail
1992 thumbnail_data Thumbnail; member
2888 if (!ImageInfo->read_thumbnail || !ImageInfo->Thumbnail.offset || !ImageInfo->Thumbnail.size) { in exif_thumbnail_build()
2892 …f(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail: filetype = %d", ImageInfo->Thumbnail.filetype); in exif_thumbnail_build()
2894 switch(ImageInfo->Thumbnail.filetype) { in exif_thumbnail_build()
2915 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size); in exif_thumbnail_build()
2916 ImageInfo->Thumbnail.data = new_data; in exif_thumbnail_build()
2917 …memmove(ImageInfo->Thumbnail.data + new_move, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.size… in exif_thumbnail_build()
2918 ImageInfo->Thumbnail.size += new_size; in exif_thumbnail_build()
2951 memmove(ImageInfo->Thumbnail.data+new_value, value_ptr, byte_count); in exif_thumbnail_build()
2970 if (ImageInfo->Thumbnail.data) { in exif_thumbnail_extract()
2978 if (ImageInfo->Thumbnail.size >= 65536 in exif_thumbnail_extract()
2979 || ImageInfo->Thumbnail.size <= 0 in exif_thumbnail_extract()
2980 || ImageInfo->Thumbnail.offset <= 0 in exif_thumbnail_extract()
2987 info, ImageInfo->Thumbnail.offset, ImageInfo->Thumbnail.size); in exif_thumbnail_extract()
2992 ImageInfo->Thumbnail.data = estrndup(thumbnail, ImageInfo->Thumbnail.size); in exif_thumbnail_extract()
3373 if (!ImageInfo->Thumbnail.data) { in exif_process_IFD_TAG_impl()
3378 …ImageInfo->Thumbnail.width = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigne… in exif_process_IFD_TAG_impl()
3383 …ImageInfo->Thumbnail.height = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsign… in exif_process_IFD_TAG_impl()
3389 …ImageInfo->Thumbnail.offset = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsign… in exif_process_IFD_TAG_impl()
3394 ImageInfo->Thumbnail.filetype = ImageInfo->FileType; in exif_process_IFD_TAG_impl()
3397 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_TIFF_MM; in exif_process_IFD_TAG_impl()
3399 …ImageInfo->Thumbnail.size = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned… in exif_process_IFD_TAG_impl()
3403 if (ImageInfo->Thumbnail.filetype == IMAGE_FILETYPE_UNKNOWN) { in exif_process_IFD_TAG_impl()
3404 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_JPEG; in exif_process_IFD_TAG_impl()
3405 …ImageInfo->Thumbnail.size = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned… in exif_process_IFD_TAG_impl()
3680 …_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail size: 0x%04X", ImageInfo->Thumbnail.size); in exif_process_IFD_in_JPEG()
3682 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_JPEG()
3683 && ImageInfo->Thumbnail.size in exif_process_IFD_in_JPEG()
3684 && ImageInfo->Thumbnail.offset in exif_process_IFD_in_JPEG()
3969 uchar c, *data = (uchar*)ImageInfo->Thumbnail.data; in exif_scan_thumbnail()
3974 if (!data || ImageInfo->Thumbnail.size < 4) { in exif_scan_thumbnail()
3978 if (!ImageInfo->Thumbnail.width && !ImageInfo->Thumbnail.height) { in exif_scan_thumbnail()
3985 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3988 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3995 if (pos+3>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
4002 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
4005 if (length > ImageInfo->Thumbnail.size || pos >= ImageInfo->Thumbnail.size - length) { in exif_scan_thumbnail()
4026 if (length < 8 || ImageInfo->Thumbnail.size - 8 < pos) { in exif_scan_thumbnail()
4031 ImageInfo->Thumbnail.height = sof_info.height; in exif_scan_thumbnail()
4032 ImageInfo->Thumbnail.width = sof_info.width; in exif_scan_thumbnail()
4213 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_TIFF_impl()
4214 && ImageInfo->Thumbnail.size in exif_process_IFD_in_TIFF_impl()
4215 && ImageInfo->Thumbnail.offset in exif_process_IFD_in_TIFF_impl()
4219 …AIL @0x%04X + 0x%04X", ImageInfo->Thumbnail.data ? "Ignore" : "Read", ImageInfo->Thumbnail.offset,… in exif_process_IFD_in_TIFF_impl()
4221 if (!ImageInfo->Thumbnail.data) { in exif_process_IFD_in_TIFF_impl()
4222 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF_impl()
4223 php_stream_seek(ImageInfo->infile, ImageInfo->Thumbnail.offset, SEEK_SET); in exif_process_IFD_in_TIFF_impl()
4224 …ead_from_stream_file_looped(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.siz… in exif_process_IFD_in_TIFF_impl()
4225 if (fgot != ImageInfo->Thumbnail.size) { in exif_process_IFD_in_TIFF_impl()
4227 efree(ImageInfo->Thumbnail.data); in exif_process_IFD_in_TIFF_impl()
4229 ImageInfo->Thumbnail.data = NULL; in exif_process_IFD_in_TIFF_impl()
4259 …AIL @0x%04X + 0x%04X", ImageInfo->Thumbnail.data ? "Ignore" : "Read", ImageInfo->Thumbnail.offset,… in exif_process_IFD_in_TIFF_impl()
4261 …if (!ImageInfo->Thumbnail.data && ImageInfo->Thumbnail.offset && ImageInfo->Thumbnail.size && Imag… in exif_process_IFD_in_TIFF_impl()
4262 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF_impl()
4263 php_stream_seek(ImageInfo->infile, ImageInfo->Thumbnail.offset, SEEK_SET); in exif_process_IFD_in_TIFF_impl()
4264 …ead_from_stream_file_looped(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.siz… in exif_process_IFD_in_TIFF_impl()
4265 if (fgot != ImageInfo->Thumbnail.size) { in exif_process_IFD_in_TIFF_impl()
4267 efree(ImageInfo->Thumbnail.data); in exif_process_IFD_in_TIFF_impl()
4268 ImageInfo->Thumbnail.data = NULL; in exif_process_IFD_in_TIFF_impl()
4386 EFREE_IF(ImageInfo->Thumbnail.data); in exif_discard_imageinfo()
4450 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_UNKNOWN; in exif_read_from_impl()
4674 if (ImageInfo.Thumbnail.size) { in PHP_FUNCTION()
4677 …NAIL", TAG_NONE, TAG_FMT_UNDEFINED, ImageInfo.Thumbnail.size, ImageInfo.Thumbnail.data, ImageInfo.… in PHP_FUNCTION()
4679 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4683 …exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.FileType", ImageInfo.Thumbnail.filetype); in PHP_FUNCTION()
4684 …_COMPUTED, "Thumbnail.MimeType", (char*)php_image_type_to_mime_type(ImageInfo.Thumbnail.filetype)); in PHP_FUNCTION()
4686 if (ImageInfo.Thumbnail.width && ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4687 exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.Height", ImageInfo.Thumbnail.height); in PHP_FUNCTION()
4688 exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.Width", ImageInfo.Thumbnail.width); in PHP_FUNCTION()
4772 …x %d", ImageInfo.Thumbnail.data, ImageInfo.Thumbnail.size, ImageInfo.Thumbnail.filetype, ImageInfo… in PHP_FUNCTION()
4774 if (!ImageInfo.Thumbnail.data || !ImageInfo.Thumbnail.size) { in PHP_FUNCTION()
4780 …docref(NULL EXIFERR_CC, &ImageInfo, E_NOTICE, "Returning thumbnail(%d)", ImageInfo.Thumbnail.size); in PHP_FUNCTION()
4783 ZVAL_STRINGL(return_value, ImageInfo.Thumbnail.data, ImageInfo.Thumbnail.size); in PHP_FUNCTION()
4785 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4787 ImageInfo.Thumbnail.width = ImageInfo.Thumbnail.height = 0; in PHP_FUNCTION()
4790 ZEND_TRY_ASSIGN_REF_LONG(z_width, ImageInfo.Thumbnail.width); in PHP_FUNCTION()
4791 ZEND_TRY_ASSIGN_REF_LONG(z_height, ImageInfo.Thumbnail.height); in PHP_FUNCTION()
4794 ZEND_TRY_ASSIGN_REF_LONG(z_imagetype, ImageInfo.Thumbnail.filetype); in PHP_FUNCTION()