Lines Matching refs:Thumbnail

1980 	thumbnail_data  Thumbnail;  member
2872 if (!ImageInfo->read_thumbnail || !ImageInfo->Thumbnail.offset || !ImageInfo->Thumbnail.size) { in exif_thumbnail_build()
2876 …f(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail: filetype = %d", ImageInfo->Thumbnail.filetype); in exif_thumbnail_build()
2878 switch(ImageInfo->Thumbnail.filetype) { in exif_thumbnail_build()
2899 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size); in exif_thumbnail_build()
2900 ImageInfo->Thumbnail.data = new_data; in exif_thumbnail_build()
2901 …memmove(ImageInfo->Thumbnail.data + new_move, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.size… in exif_thumbnail_build()
2902 ImageInfo->Thumbnail.size += new_size; in exif_thumbnail_build()
2935 memmove(ImageInfo->Thumbnail.data+new_value, value_ptr, byte_count); in exif_thumbnail_build()
2954 if (ImageInfo->Thumbnail.data) { in exif_thumbnail_extract()
2962 if (ImageInfo->Thumbnail.size >= 65536 in exif_thumbnail_extract()
2963 || ImageInfo->Thumbnail.size <= 0 in exif_thumbnail_extract()
2964 || ImageInfo->Thumbnail.offset <= 0 in exif_thumbnail_extract()
2971 info, ImageInfo->Thumbnail.offset, ImageInfo->Thumbnail.size); in exif_thumbnail_extract()
2976 ImageInfo->Thumbnail.data = estrndup(thumbnail, ImageInfo->Thumbnail.size); in exif_thumbnail_extract()
3357 if (!ImageInfo->Thumbnail.data) { in exif_process_IFD_TAG_impl()
3362 …ImageInfo->Thumbnail.width = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigne… in exif_process_IFD_TAG_impl()
3367 …ImageInfo->Thumbnail.height = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsign… in exif_process_IFD_TAG_impl()
3373 …ImageInfo->Thumbnail.offset = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsign… in exif_process_IFD_TAG_impl()
3378 ImageInfo->Thumbnail.filetype = ImageInfo->FileType; in exif_process_IFD_TAG_impl()
3381 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_TIFF_MM; in exif_process_IFD_TAG_impl()
3383 …ImageInfo->Thumbnail.size = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned… in exif_process_IFD_TAG_impl()
3387 if (ImageInfo->Thumbnail.filetype == IMAGE_FILETYPE_UNKNOWN) { in exif_process_IFD_TAG_impl()
3388 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_JPEG; in exif_process_IFD_TAG_impl()
3389 …ImageInfo->Thumbnail.size = exif_convert_any_to_int(value_ptr, exif_rewrite_tag_format_to_unsigned… in exif_process_IFD_TAG_impl()
3664 …_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail size: 0x%04X", ImageInfo->Thumbnail.size); in exif_process_IFD_in_JPEG()
3666 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_JPEG()
3667 && ImageInfo->Thumbnail.size in exif_process_IFD_in_JPEG()
3668 && ImageInfo->Thumbnail.offset in exif_process_IFD_in_JPEG()
3945 uchar c, *data = (uchar*)ImageInfo->Thumbnail.data; in exif_scan_thumbnail()
3950 if (!data || ImageInfo->Thumbnail.size < 4) { in exif_scan_thumbnail()
3954 if (!ImageInfo->Thumbnail.width && !ImageInfo->Thumbnail.height) { in exif_scan_thumbnail()
3961 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3964 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3971 if (pos+3>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3978 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3981 if (length > ImageInfo->Thumbnail.size || pos >= ImageInfo->Thumbnail.size - length) { in exif_scan_thumbnail()
4002 if (length < 8 || ImageInfo->Thumbnail.size - 8 < pos) { in exif_scan_thumbnail()
4007 ImageInfo->Thumbnail.height = sof_info.height; in exif_scan_thumbnail()
4008 ImageInfo->Thumbnail.width = sof_info.width; in exif_scan_thumbnail()
4189 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_TIFF_impl()
4190 && ImageInfo->Thumbnail.size in exif_process_IFD_in_TIFF_impl()
4191 && ImageInfo->Thumbnail.offset in exif_process_IFD_in_TIFF_impl()
4195 …AIL @0x%04X + 0x%04X", ImageInfo->Thumbnail.data ? "Ignore" : "Read", ImageInfo->Thumbnail.offset,… in exif_process_IFD_in_TIFF_impl()
4197 if (!ImageInfo->Thumbnail.data) { in exif_process_IFD_in_TIFF_impl()
4198 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF_impl()
4199 php_stream_seek(ImageInfo->infile, ImageInfo->Thumbnail.offset, SEEK_SET); in exif_process_IFD_in_TIFF_impl()
4200 …ead_from_stream_file_looped(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.siz… in exif_process_IFD_in_TIFF_impl()
4201 if (fgot != ImageInfo->Thumbnail.size) { in exif_process_IFD_in_TIFF_impl()
4203 efree(ImageInfo->Thumbnail.data); in exif_process_IFD_in_TIFF_impl()
4205 ImageInfo->Thumbnail.data = NULL; in exif_process_IFD_in_TIFF_impl()
4235 …AIL @0x%04X + 0x%04X", ImageInfo->Thumbnail.data ? "Ignore" : "Read", ImageInfo->Thumbnail.offset,… in exif_process_IFD_in_TIFF_impl()
4237 …if (!ImageInfo->Thumbnail.data && ImageInfo->Thumbnail.offset && ImageInfo->Thumbnail.size && Imag… in exif_process_IFD_in_TIFF_impl()
4238 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF_impl()
4239 php_stream_seek(ImageInfo->infile, ImageInfo->Thumbnail.offset, SEEK_SET); in exif_process_IFD_in_TIFF_impl()
4240 …ead_from_stream_file_looped(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.siz… in exif_process_IFD_in_TIFF_impl()
4241 if (fgot != ImageInfo->Thumbnail.size) { in exif_process_IFD_in_TIFF_impl()
4243 efree(ImageInfo->Thumbnail.data); in exif_process_IFD_in_TIFF_impl()
4244 ImageInfo->Thumbnail.data = NULL; in exif_process_IFD_in_TIFF_impl()
4362 EFREE_IF(ImageInfo->Thumbnail.data); in exif_discard_imageinfo()
4426 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_UNKNOWN; in exif_read_from_impl()
4650 if (ImageInfo.Thumbnail.size) { in PHP_FUNCTION()
4653 …NAIL", TAG_NONE, TAG_FMT_UNDEFINED, ImageInfo.Thumbnail.size, ImageInfo.Thumbnail.data, ImageInfo. in PHP_FUNCTION()
4655 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4659 …exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.FileType", ImageInfo.Thumbnail.filetype); in PHP_FUNCTION()
4660 …_COMPUTED, "Thumbnail.MimeType", (char*)php_image_type_to_mime_type(ImageInfo.Thumbnail.filetype)); in PHP_FUNCTION()
4662 if (ImageInfo.Thumbnail.width && ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4663 exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.Height", ImageInfo.Thumbnail.height); in PHP_FUNCTION()
4664 exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.Width", ImageInfo.Thumbnail.width); in PHP_FUNCTION()
4747 …x %d", ImageInfo.Thumbnail.data, ImageInfo.Thumbnail.size, ImageInfo.Thumbnail.filetype, ImageInfo… in PHP_FUNCTION()
4749 if (!ImageInfo.Thumbnail.data || !ImageInfo.Thumbnail.size) { in PHP_FUNCTION()
4755 …docref(NULL EXIFERR_CC, &ImageInfo, E_NOTICE, "Returning thumbnail(%d)", ImageInfo.Thumbnail.size); in PHP_FUNCTION()
4758 RETVAL_STRINGL(ImageInfo.Thumbnail.data, ImageInfo.Thumbnail.size); in PHP_FUNCTION()
4759 if ((z_width || z_height) && (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height)) { in PHP_FUNCTION()
4761 ImageInfo.Thumbnail.width = ImageInfo.Thumbnail.height = 0; in PHP_FUNCTION()
4765 ZEND_TRY_ASSIGN_REF_LONG(z_width, ImageInfo.Thumbnail.width); in PHP_FUNCTION()
4768 ZEND_TRY_ASSIGN_REF_LONG(z_height, ImageInfo.Thumbnail.height); in PHP_FUNCTION()
4771 ZEND_TRY_ASSIGN_REF_LONG(z_imagetype, ImageInfo.Thumbnail.filetype); in PHP_FUNCTION()