Searched refs:dir_size (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/ext/standard/
H A Dimage.c808 size_t ifd_size, dir_size, entry_value, width=0, height=0, ifd_addr; local
824 dir_size = 2/*num dir entries*/ +12/*length of entry*/*num_entries +4/* offset to next ifd (points to thumbnail or NULL)*/;
825 ifd_size = dir_size;
827 if (php_stream_read(stream, ifd_data+2, dir_size-2) != dir_size-2) {
832 ifd_size = dir_size;
/PHP_TRUNK/ext/exif/
H A Dexif.c3520 size_t ifd_size, dir_size, entry_offset, next_offset, entry_length, entry_value=0, fgot; local
3536 dir_size = 2/*num dir entries*/ +12/*length of entry*/*num_entries +4/* offset to next ifd (points to thumbnail or NULL)*/;
3537 if (ImageInfo->FileSize >= dir_offset+dir_size) {
3539 exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Read from TIFF: filesize(x%04X), IFD dir(x%04X + x%04X), IFD entries(%d)", ImageInfo->FileSize, dir_offset+2, dir_size-2, num_entries);
3541 if (exif_file_sections_realloc(ImageInfo, sn, dir_size TSRMLS_CC)) {
3544 php_stream_read(ImageInfo->infile, (char*)(ImageInfo->file.list[sn].data+2), dir_size-2);
3545 /*exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Dump: %s", exif_char_dump(ImageInfo->file.list[sn].data, dir_size, 0));*/
3546 next_offset = php_ifd_get32u(ImageInfo->file.list[sn].data + dir_size - 4, ImageInfo->motorola_intel);
3551 ifd_size = dir_size;
3621 if (ifd_size > dir_size) {
[all...]

Completed in 12 milliseconds