Lines Matching refs:Thumbnail

1550 	thumbnail_data  Thumbnail;  member
2450 if (!ImageInfo->read_thumbnail || !ImageInfo->Thumbnail.offset || !ImageInfo->Thumbnail.size) { in exif_thumbnail_build()
2454 …f(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail: filetype = %d", ImageInfo->Thumbnail.filetype); in exif_thumbnail_build()
2456 switch(ImageInfo->Thumbnail.filetype) { in exif_thumbnail_build()
2477 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size); in exif_thumbnail_build()
2478 ImageInfo->Thumbnail.data = new_data; in exif_thumbnail_build()
2479 …memmove(ImageInfo->Thumbnail.data + new_move, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.size… in exif_thumbnail_build()
2480 ImageInfo->Thumbnail.size += new_size; in exif_thumbnail_build()
2513 memmove(ImageInfo->Thumbnail.data+new_value, value_ptr, byte_count); in exif_thumbnail_build()
2532 if (ImageInfo->Thumbnail.data) { in exif_thumbnail_extract()
2540 if (ImageInfo->Thumbnail.size >= 65536 in exif_thumbnail_extract()
2541 || ImageInfo->Thumbnail.size <= 0 in exif_thumbnail_extract()
2542 || ImageInfo->Thumbnail.offset <= 0 in exif_thumbnail_extract()
2548 if (ImageInfo->Thumbnail.size > length in exif_thumbnail_extract()
2549 || (ImageInfo->Thumbnail.offset + ImageInfo->Thumbnail.size) > length in exif_thumbnail_extract()
2550 || ImageInfo->Thumbnail.offset > length - ImageInfo->Thumbnail.size in exif_thumbnail_extract()
2555 …ImageInfo->Thumbnail.data = estrndup(offset + ImageInfo->Thumbnail.offset, ImageInfo->Thumbnail.si… in exif_thumbnail_extract()
2948 if (!ImageInfo->Thumbnail.data) { in exif_process_IFD_TAG()
2952 …ImageInfo->Thumbnail.width = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel … in exif_process_IFD_TAG()
2957 …ImageInfo->Thumbnail.height = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel… in exif_process_IFD_TAG()
2963 …ImageInfo->Thumbnail.offset = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel… in exif_process_IFD_TAG()
2968 ImageInfo->Thumbnail.filetype = ImageInfo->FileType; in exif_process_IFD_TAG()
2971 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_TIFF_MM; in exif_process_IFD_TAG()
2973 …ImageInfo->Thumbnail.size = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel T… in exif_process_IFD_TAG()
2977 if (ImageInfo->Thumbnail.filetype == IMAGE_FILETYPE_UNKNOWN) { in exif_process_IFD_TAG()
2978 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_JPEG; in exif_process_IFD_TAG()
2979 …ImageInfo->Thumbnail.size = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel T… in exif_process_IFD_TAG()
3211 …_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail size: 0x%04X", ImageInfo->Thumbnail.size); in exif_process_IFD_in_JPEG()
3213 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_JPEG()
3214 && ImageInfo->Thumbnail.size in exif_process_IFD_in_JPEG()
3215 && ImageInfo->Thumbnail.offset in exif_process_IFD_in_JPEG()
3488 uchar c, *data = (uchar*)ImageInfo->Thumbnail.data; in exif_scan_thumbnail()
3497 if (!ImageInfo->Thumbnail.width && !ImageInfo->Thumbnail.height) { in exif_scan_thumbnail()
3504 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3507 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3514 if (pos+3>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3522 if (pos+length>=ImageInfo->Thumbnail.size) { in exif_scan_thumbnail()
3544 ImageInfo->Thumbnail.height = sof_info.height; in exif_scan_thumbnail()
3545 ImageInfo->Thumbnail.width = sof_info.width; in exif_scan_thumbnail()
3729 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_TIFF()
3730 && ImageInfo->Thumbnail.size in exif_process_IFD_in_TIFF()
3731 && ImageInfo->Thumbnail.offset in exif_process_IFD_in_TIFF()
3735 …AIL @0x%04X + 0x%04X", ImageInfo->Thumbnail.data ? "Ignore" : "Read", ImageInfo->Thumbnail.offset,… in exif_process_IFD_in_TIFF()
3737 if (!ImageInfo->Thumbnail.data) { in exif_process_IFD_in_TIFF()
3738 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF()
3739 php_stream_seek(ImageInfo->infile, ImageInfo->Thumbnail.offset, SEEK_SET); in exif_process_IFD_in_TIFF()
3740 … fgot = php_stream_read(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.size); in exif_process_IFD_in_TIFF()
3741 if (fgot < ImageInfo->Thumbnail.size) { in exif_process_IFD_in_TIFF()
3743 efree(ImageInfo->Thumbnail.data); in exif_process_IFD_in_TIFF()
3744 ImageInfo->Thumbnail.data = NULL; in exif_process_IFD_in_TIFF()
3772 …AIL @0x%04X + 0x%04X", ImageInfo->Thumbnail.data ? "Ignore" : "Read", ImageInfo->Thumbnail.offset,… in exif_process_IFD_in_TIFF()
3774 …if (!ImageInfo->Thumbnail.data && ImageInfo->Thumbnail.offset && ImageInfo->Thumbnail.size && Imag… in exif_process_IFD_in_TIFF()
3775 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF()
3776 php_stream_seek(ImageInfo->infile, ImageInfo->Thumbnail.offset, SEEK_SET); in exif_process_IFD_in_TIFF()
3777 … fgot = php_stream_read(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.size); in exif_process_IFD_in_TIFF()
3778 if (fgot < ImageInfo->Thumbnail.size) { in exif_process_IFD_in_TIFF()
3780 efree(ImageInfo->Thumbnail.data); in exif_process_IFD_in_TIFF()
3781 ImageInfo->Thumbnail.data = NULL; in exif_process_IFD_in_TIFF()
3884 EFREE_IF(ImageInfo->Thumbnail.data); in exif_discard_imageinfo()
3948 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_UNKNOWN; in exif_read_file()
4098 if (ImageInfo.Thumbnail.size) { in PHP_FUNCTION()
4101 …BNAIL, "THUMBNAIL", TAG_NONE, TAG_FMT_UNDEFINED, ImageInfo.Thumbnail.size, ImageInfo.Thumbnail.dat… in PHP_FUNCTION()
4103 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4107 …exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.FileType", ImageInfo.Thumbnail.filetype … in PHP_FUNCTION()
4108 …TED, "Thumbnail.MimeType", (char*)php_image_type_to_mime_type(ImageInfo.Thumbnail.filetype) TSRMLS… in PHP_FUNCTION()
4110 if (ImageInfo.Thumbnail.width && ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4111 …exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.Height", ImageInfo.Thumbnail.height TSRM… in PHP_FUNCTION()
4112 …exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.Width", ImageInfo.Thumbnail.width TSRML… in PHP_FUNCTION()
4172 …x %d", ImageInfo.Thumbnail.data, ImageInfo.Thumbnail.size, ImageInfo.Thumbnail.filetype, ImageInfo… in PHP_FUNCTION()
4174 if (!ImageInfo.Thumbnail.data || !ImageInfo.Thumbnail.size) { in PHP_FUNCTION()
4180 …docref(NULL EXIFERR_CC, &ImageInfo, E_NOTICE, "Returning thumbnail(%d)", ImageInfo.Thumbnail.size); in PHP_FUNCTION()
4183 ZVAL_STRINGL(return_value, ImageInfo.Thumbnail.data, ImageInfo.Thumbnail.size, 1); in PHP_FUNCTION()
4185 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4190 ZVAL_LONG(p_width, ImageInfo.Thumbnail.width); in PHP_FUNCTION()
4191 ZVAL_LONG(p_height, ImageInfo.Thumbnail.height); in PHP_FUNCTION()
4195 ZVAL_LONG(p_imagetype, ImageInfo.Thumbnail.filetype); in PHP_FUNCTION()