コード例 #1
0
/*
 * Like TIFFGetField, but return any default
 * value if the tag is not present in the directory.
 */
int
TIFFGetFieldDefaulted(TIFF* tif, uint32 tag, ...)
{
    int ok;
    va_list ap;

    va_start(ap, tag);
    ok =  TIFFVGetFieldDefaulted(tif, tag, ap);
    va_end(ap);
    return (ok);
}
コード例 #2
0
ファイル: pltiffdec.cpp プロジェクト: artcom/y60
// It'd be nicer to define a bunch of type-safe functions like:
//    uint32  PLTIFFDecoderEx::GetImageLength();
//    CString PLTIFFDecoderEx::GetImageDescription();
int PLTIFFDecoder::GetField( int tag_id, ... )
{
  va_list marker;
  int retv;

  va_start( marker, tag_id );     /* Initialize variable arguments. */
  retv = TIFFVGetFieldDefaulted( m_pTif, (ttag_t) tag_id, marker );
  va_end( marker );              /* Reset variable arguments.      */

  return retv;
}