Lines Matching refs:Thumbnail
1544 thumbnail_data Thumbnail; member
2441 if (!ImageInfo->read_thumbnail || !ImageInfo->Thumbnail.offset || !ImageInfo->Thumbnail.size) { in exif_thumbnail_build()
2445 …f(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail: filetype = %d", ImageInfo->Thumbnail.filetype); in exif_thumbnail_build()
2447 switch(ImageInfo->Thumbnail.filetype) { in exif_thumbnail_build()
2468 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size); in exif_thumbnail_build()
2469 ImageInfo->Thumbnail.data = new_data; in exif_thumbnail_build()
2470 …memmove(ImageInfo->Thumbnail.data + new_move, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.size… in exif_thumbnail_build()
2471 ImageInfo->Thumbnail.size += new_size; in exif_thumbnail_build()
2504 memmove(ImageInfo->Thumbnail.data+new_value, value_ptr, byte_count); in exif_thumbnail_build()
2523 if (ImageInfo->Thumbnail.data) { in exif_thumbnail_extract()
2531 if (ImageInfo->Thumbnail.size >= 65536 in exif_thumbnail_extract()
2532 || ImageInfo->Thumbnail.size <= 0 in exif_thumbnail_extract()
2533 || ImageInfo->Thumbnail.offset <= 0 in exif_thumbnail_extract()
2539 if (ImageInfo->Thumbnail.size > length in exif_thumbnail_extract()
2540 || (ImageInfo->Thumbnail.offset + ImageInfo->Thumbnail.size) > length in exif_thumbnail_extract()
2541 || ImageInfo->Thumbnail.offset > length - ImageInfo->Thumbnail.size in exif_thumbnail_extract()
2546 …ImageInfo->Thumbnail.data = estrndup(offset + ImageInfo->Thumbnail.offset, ImageInfo->Thumbnail.si… in exif_thumbnail_extract()
2937 if (!ImageInfo->Thumbnail.data) { in exif_process_IFD_TAG()
2941 …ImageInfo->Thumbnail.width = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel); in exif_process_IFD_TAG()
2946 …ImageInfo->Thumbnail.height = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel… in exif_process_IFD_TAG()
2952 …ImageInfo->Thumbnail.offset = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel… in exif_process_IFD_TAG()
2957 ImageInfo->Thumbnail.filetype = ImageInfo->FileType; in exif_process_IFD_TAG()
2960 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_TIFF_MM; in exif_process_IFD_TAG()
2962 … ImageInfo->Thumbnail.size = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel); in exif_process_IFD_TAG()
2966 if (ImageInfo->Thumbnail.filetype == IMAGE_FILETYPE_UNKNOWN) { in exif_process_IFD_TAG()
2967 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_JPEG; in exif_process_IFD_TAG()
2968 … ImageInfo->Thumbnail.size = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel); in exif_process_IFD_TAG()
3200 …_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail size: 0x%04X", ImageInfo->Thumbnail.size); in exif_process_IFD_in_JPEG()
3202 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_JPEG()
3203 && ImageInfo->Thumbnail.size in exif_process_IFD_in_JPEG()
3204 && ImageInfo->Thumbnail.offset in exif_process_IFD_in_JPEG()
3477 uchar c, *data = (uchar*)ImageInfo->Thumbnail.data; in exif_scan_thumbnail()
3486 if (!ImageInfo->Thumbnail.width && !ImageInfo->Thumbnail.height) { in exif_scan_thumbnail()
3493 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3496 if (pos>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3503 if (pos+3>=ImageInfo->Thumbnail.size) in exif_scan_thumbnail()
3511 if (pos+length>=ImageInfo->Thumbnail.size) { in exif_scan_thumbnail()
3533 ImageInfo->Thumbnail.height = sof_info.height; in exif_scan_thumbnail()
3534 ImageInfo->Thumbnail.width = sof_info.width; in exif_scan_thumbnail()
3718 if (ImageInfo->Thumbnail.filetype != IMAGE_FILETYPE_UNKNOWN in exif_process_IFD_in_TIFF()
3719 && ImageInfo->Thumbnail.size in exif_process_IFD_in_TIFF()
3720 && ImageInfo->Thumbnail.offset in exif_process_IFD_in_TIFF()
3724 …AIL @0x%04X + 0x%04X", ImageInfo->Thumbnail.data ? "Ignore" : "Read", ImageInfo->Thumbnail.offset,… in exif_process_IFD_in_TIFF()
3726 if (!ImageInfo->Thumbnail.data) { in exif_process_IFD_in_TIFF()
3727 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF()
3728 php_stream_seek(ImageInfo->infile, ImageInfo->Thumbnail.offset, SEEK_SET); in exif_process_IFD_in_TIFF()
3729 … fgot = php_stream_read(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.size); in exif_process_IFD_in_TIFF()
3730 if (fgot < ImageInfo->Thumbnail.size) { in exif_process_IFD_in_TIFF()
3732 efree(ImageInfo->Thumbnail.data); in exif_process_IFD_in_TIFF()
3733 ImageInfo->Thumbnail.data = NULL; in exif_process_IFD_in_TIFF()
3761 …AIL @0x%04X + 0x%04X", ImageInfo->Thumbnail.data ? "Ignore" : "Read", ImageInfo->Thumbnail.offset,… in exif_process_IFD_in_TIFF()
3763 …if (!ImageInfo->Thumbnail.data && ImageInfo->Thumbnail.offset && ImageInfo->Thumbnail.size && Imag… in exif_process_IFD_in_TIFF()
3764 ImageInfo->Thumbnail.data = safe_emalloc(ImageInfo->Thumbnail.size, 1, 0); in exif_process_IFD_in_TIFF()
3765 php_stream_seek(ImageInfo->infile, ImageInfo->Thumbnail.offset, SEEK_SET); in exif_process_IFD_in_TIFF()
3766 … fgot = php_stream_read(ImageInfo->infile, ImageInfo->Thumbnail.data, ImageInfo->Thumbnail.size); in exif_process_IFD_in_TIFF()
3767 if (fgot < ImageInfo->Thumbnail.size) { in exif_process_IFD_in_TIFF()
3769 efree(ImageInfo->Thumbnail.data); in exif_process_IFD_in_TIFF()
3770 ImageInfo->Thumbnail.data = NULL; in exif_process_IFD_in_TIFF()
3873 EFREE_IF(ImageInfo->Thumbnail.data); in exif_discard_imageinfo()
3940 ImageInfo->Thumbnail.filetype = IMAGE_FILETYPE_UNKNOWN; in exif_read_file()
4090 if (ImageInfo.Thumbnail.size) { in PHP_FUNCTION()
4093 …BNAIL, "THUMBNAIL", TAG_NONE, TAG_FMT_UNDEFINED, ImageInfo.Thumbnail.size, ImageInfo.Thumbnail.dat… in PHP_FUNCTION()
4095 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4099 …exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.FileType", ImageInfo.Thumbnail.filetype); in PHP_FUNCTION()
4100 …_COMPUTED, "Thumbnail.MimeType", (char*)php_image_type_to_mime_type(ImageInfo.Thumbnail.filetype)); in PHP_FUNCTION()
4102 if (ImageInfo.Thumbnail.width && ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4103 exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.Height", ImageInfo.Thumbnail.height); in PHP_FUNCTION()
4104 exif_iif_add_int(&ImageInfo, SECTION_COMPUTED, "Thumbnail.Width", ImageInfo.Thumbnail.width); in PHP_FUNCTION()
4165 …x %d", ImageInfo.Thumbnail.data, ImageInfo.Thumbnail.size, ImageInfo.Thumbnail.filetype, ImageInfo… in PHP_FUNCTION()
4167 if (!ImageInfo.Thumbnail.data || !ImageInfo.Thumbnail.size) { in PHP_FUNCTION()
4173 …docref(NULL EXIFERR_CC, &ImageInfo, E_NOTICE, "Returning thumbnail(%d)", ImageInfo.Thumbnail.size); in PHP_FUNCTION()
4176 ZVAL_STRINGL(return_value, ImageInfo.Thumbnail.data, ImageInfo.Thumbnail.size); in PHP_FUNCTION()
4178 if (!ImageInfo.Thumbnail.width || !ImageInfo.Thumbnail.height) { in PHP_FUNCTION()
4183 ZVAL_LONG(p_width, ImageInfo.Thumbnail.width); in PHP_FUNCTION()
4184 ZVAL_LONG(p_height, ImageInfo.Thumbnail.height); in PHP_FUNCTION()
4188 ZVAL_LONG(p_imagetype, ImageInfo.Thumbnail.filetype); in PHP_FUNCTION()