⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tiffwritedirectory.3t

📁 tiff文件开发库
💻 3T
字号:
.\" $Header: /cvsroot/osrs/libtiff/man/TIFFWriteDirectory.3t,v 1.3 2002/04/09 20:01:27 dron Exp $.\".\" Copyright (c) 1988-1997 Sam Leffler.\" Copyright (c) 1991-1997 Silicon Graphics, Inc..\".\" Permission to use, copy, modify, distribute, and sell this software and .\" its documentation for any purpose is hereby granted without fee, provided.\" that (i) the above copyright notices and this permission notice appear in.\" all copies of the software and related documentation, and (ii) the names of.\" Sam Leffler and Silicon Graphics may not be used in any advertising or.\" publicity relating to the software without the specific, prior written.\" permission of Sam Leffler and Silicon Graphics..\" .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  .\" .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE .\" OF THIS SOFTWARE..\".if n .po 0.TH TIFFWriteDirectory 3T "September 26, 2001".SH NAMETIFFWriteDirectory, TIFFRewriteDirectory, TIFFCheckpointDirectory \- writethe current directory in an open.SM TIFFfile.SH SYNOPSIS.B "#include <tiffio.h>".br.B "int TIFFWriteDirectory(TIFF* tif)".br.B "int TIFFRewriteDirectory(TIFF* tif)".br.B "int TIFFCheckpointDirectory(TIFF* tif)".SH DESCRIPTION.IR TIFFWriteDirectory will write the contents of the current directory to the file and setupto create a new subfile in the same file.Applications only need to call.IR TIFFWriteDirectorywhen writing multiple subfiles to a single.SM TIFFfile..IR TIFFWriteDirectoryis automatically called by.IR TIFFCloseand.IR TIFFFlushto write a modified directory if the file is open for writing..PPThe .IR TIFFRewriteDirectoryfunction operates similarly to .IR TIFFWriteDirectory,but can be called with directories previously read or written that alreadyhave an established location in the file.  It will rewrite the directory,but instead of place it at it's old location (as .IR TIFFWriteDirectorywould) it will place them at the end of the file, correcting the pointer fromthe preceeding directory or file header to point to it's new location.  Thisis particularly important in cases where the size of the directory andpointed to data has grown, so it won't fit in the space available at theold location..PPThe.IR TIFFCheckpointDirectorywrites the current state of the tiff directory into the file to make whatis currently in the file readable.  Unlike.IR TIFFWriteDirectory,.IR TIFFCheckpointDirectorydoes not free up the directory data structures in memory, so they can beupdated (as strips/tiles are written) and written again.  Reading sucha partial file you will at worst get a tiff read error for the firststrip/tile encountered that is incomplete, but you will at least getall the valid data in the file before that.  When the file is complete,just use.IR TIFFWriteDirectoryas usual to finish it off cleanly..SH "RETURN VALUES"1 is returned when the contents are successfullywritten to the file.Otherwise, 0 is returned if an error was encountered when writingthe directory contents..SH DIAGNOSTICSAll error messages are directed to the.IR TIFFError (3T)routine..PP.BR "Error post-encoding before directory write" .Before writing the contents of the current directory, any pendingdata are flushed.This message indicates that an error occurred while doing this..PP.BR "Error flushing data before directory write" .Before writing the contents of the current directory, any pendingdata are flushed.This message indicates that an error occurred while doing this..PP.BR "Cannot write directory, out of space" .There was not enough space to allocate a temporary area forthe directory that was to be written..PP.BR "Error writing directory count" .A write error occurred when writing the count of fields in the directory..PP.BR "Error writing directory contents" .A write error occurred when writing the directory fields..PP.BR "Error writing directory link" .A write error occurred when writing the link to the next directory..PP\fBError writing data for field "%s"\fP.A write error occurred when writing indirect data for the specified field..PP.BR "Error writing TIFF header" .A write error occurred when re-writing header at the front of the file..PP.BR "Error fetching directory count" .A read error occurred when fetching the directory count field fora previous directory.This can occur when setting up a link to the directory that is beingwritten..PP.BR "Error fetching directory link" .A read error occurred when fetching the directory link field fora previous directory.This can occur when setting up a link to the directory that is beingwritten..SH "SEE ALSO".IR libtiff (3T),.IR TIFFOpen (3T),.IR TIFFError (3T),.IR TIFFReadDirectory (3T),.IR TIFFSetDirectory (3T)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -