42 "palette color (RGB from colormap)",
51#define NPHOTONAMES (sizeof (photoNames) / sizeof (photoNames[0]))
55 "row 0 top, col 0 lhs",
56 "row 0 top, col 0 rhs",
57 "row 0 bottom, col 0 rhs",
58 "row 0 bottom, col 0 lhs",
59 "row 0 lhs, col 0 top",
60 "row 0 rhs, col 0 top",
61 "row 0 rhs, col 0 bottom",
62 "row 0 lhs, col 0 bottom",
64#define NORIENTNAMES (sizeof (orientNames) / sizeof (orientNames[0]))
68 uint32 value_count,
void *raw_data)
74 for(
j = 0;
j < value_count;
j++) {
79 (
unsigned int) ((
unsigned char *) raw_data)[
j]);
88 (
unsigned long)((
uint32 *) raw_data)[
j]);
93 (
unsigned long)((
uint32 *) raw_data)[
j]);
99#if defined(__WIN32__) && (defined(_MSC_VER) || defined(__MINGW32__))
104 (
unsigned long long)((
uint64 *) raw_data)[
j]);
107#if defined(__WIN32__) && (defined(_MSC_VER) || defined(__MINGW32__))
113#if defined(__WIN32__) && (defined(_MSC_VER) || defined(__MINGW32__))
118 (
unsigned long long)((
uint64 *) raw_data)[
j]);
129 fprintf(
fd,
"<unsupported data type in TIFFPrint>");
133 if(
j < value_count - 1)
142 uint32 value_count,
void *raw_data)
156 switch (*((
uint16*)raw_data)) {
181 ((
float *)raw_data)[0], ((
float *)raw_data)[1]);
190 fprintf(
fd,
" XMLPacket (XMP Metadata):\n" );
191 for(
i = 0;
i < value_count;
i++)
202 " RichTIFFIPTC Data: <present>, %lu bytes\n",
203 (
unsigned long) value_count * 4);
207 fprintf(
fd,
" Photoshop Data: <present>, %lu bytes\n",
208 (
unsigned long) value_count);
212 fprintf(
fd,
" ICC Profile: <present>, %lu bytes\n",
213 (
unsigned long) value_count);
219 " Sample to Nits conversion factor: %.4e\n",
220 *((
double*)raw_data));
240#if defined(__WIN32__) && (defined(_MSC_VER) || defined(__MINGW32__))
241 fprintf(
fd,
"TIFF Directory at offset 0x%I64x (%I64u)\n",
245 fprintf(
fd,
"TIFF Directory at offset 0x%llx (%llu)\n",
253 fprintf(
fd,
"%sreduced-resolution image", sep);
257 fprintf(
fd,
"%smulti-page document", sep);
266 fprintf(
fd,
" Image Width: %lu Image Length: %lu",
274 fprintf(
fd,
" Tile Width: %lu Tile Length: %lu",
328 fprintf(
fd,
"complex IEEE floating point\n");
346 fprintf(
fd,
" Photometric Interpretation: ");
412 fprintf(
fd,
"halftone or dithered scan\n");
440 fprintf(
fd,
" YCbCr Subsampling: %u, %u\n",
459 fprintf(
fd,
" Halftone Hints: light %u dark %u\n",
521 for (
l = 0;
l <
n;
l++)
532 fprintf(
fd,
" Reference Black/White:\n");
533 for (
i = 0;
i < 3;
i++)
543 for (
l = 0;
l <
n;
l++) {
559#
if defined(__WIN32__) && (defined(_MSC_VER) || defined(__MINGW32__))
596 value_count = small_value_count;
616 static uint16 dotrange[2];
623 || value_count > 1) {
661 isTiled(tif) ?
"Tiles" :
"Strips");
663#
if defined(__WIN32__) && (defined(_MSC_VER) || defined(__MINGW32__))
686 for (; max_chars > 0 && *
cp !=
'\0';
cp++, max_chars--) {
693 for (
tp =
"\tt\bb\rr\nn\vv"; *
tp;
tp++)
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
char * strchr(const char *String, int ch)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
GLuint GLuint GLsizei count
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
_Check_return_opt_ _CRTIMP int __cdecl fputs(_In_z_ const char *_Str, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl fputc(_In_ int _Ch, _Inout_ FILE *_File)
uint16 td_samplesperpixel
double * td_sminsamplevalue
uint16 * td_transferfunction[3]
uint16 td_ycbcrpositioning
double * td_smaxsamplevalue
uint16 td_halftonehints[2]
uint16 td_ycbcrsubsampling[2]
unsigned char field_passcount
TIFFTagMethods tif_tagmethods
const TIFFCodec * TIFFFindCODEC(uint16 scheme)
int TIFFGetField(TIFF *tif, uint32 tag,...)
#define FIELD_SUBFILETYPE
#define FIELD_STRIPOFFSETS
#define FIELD_TRANSFERFUNCTION
#define FIELD_HALFTONEHINTS
#define FIELD_ORIENTATION
#define FIELD_MINSAMPLEVALUE
#define FIELD_SMAXSAMPLEVALUE
#define FIELD_IMAGEDIMENSIONS
#define FIELD_YCBCRSUBSAMPLING
#define FIELD_EXTRASAMPLES
#define FIELD_SMINSAMPLEVALUE
#define TIFFFieldSet(tif, field)
#define FIELD_MAXSAMPLEVALUE
#define FIELD_TILEDIMENSIONS
#define FIELD_ROWSPERSTRIP
#define FIELD_COMPRESSION
#define FIELD_YCBCRPOSITIONING
#define FIELD_REFBLACKWHITE
#define FIELD_SAMPLEFORMAT
#define FIELD_BITSPERSAMPLE
#define FIELD_RESOLUTIONUNIT
#define FIELD_PLANARCONFIG
#define FIELD_SAMPLESPERPIXEL
#define FIELD_PHOTOMETRIC
#define FIELD_THRESHHOLDING
const TIFFField * TIFFFieldWithTag(TIFF *tif, uint32 tag)
int _TIFFDataSize(TIFFDataType type)
uint64 TIFFGetStrileOffset(TIFF *tif, uint32 strile)
uint64 TIFFGetStrileByteCount(TIFF *tif, uint32 strile)
int TIFFGetTagListCount(TIFF *tif)
uint32 TIFFGetTagListEntry(TIFF *tif, int tag_index)
static void _TIFFPrintField(FILE *fd, const TIFFField *fip, uint32 value_count, void *raw_data)
static int _TIFFPrettyPrintField(TIFF *tif, const TIFFField *fip, FILE *fd, uint32 tag, uint32 value_count, void *raw_data)
void TIFFPrintDirectory(TIFF *tif, FILE *fd, long flags)
void _TIFFprintAsciiTag(FILE *fd, const char *name, const char *value)
static void _TIFFprintAsciiBounded(FILE *fd, const char *cp, size_t max_chars)
static const char *const photoNames[]
void _TIFFprintAscii(FILE *fd, const char *cp)
static const char *const orientNames[]
void * _TIFFmalloc(tmsize_t s)
#define PLANARCONFIG_SEPARATE
#define THRESHHOLD_HALFTONE
#define TIFFTAG_WHITEPOINT
#define EXTRASAMPLE_UNASSALPHA
#define YCBCRPOSITION_CENTERED
#define YCBCRPOSITION_COSITED
#define RESUNIT_CENTIMETER
#define EXTRASAMPLE_ASSOCALPHA
#define TIFFTAG_XMLPACKET
#define FILLORDER_LSB2MSB
#define SAMPLEFORMAT_COMPLEXINT
#define SAMPLEFORMAT_UINT
#define EXTRASAMPLE_UNSPECIFIED
#define FILETYPE_REDUCEDIMAGE
#define THRESHHOLD_ERRORDIFFUSE
#define PHOTOMETRIC_LOGLUV
#define SAMPLEFORMAT_IEEEFP
#define TIFFTAG_ICCPROFILE
#define FILLORDER_MSB2LSB
#define SAMPLEFORMAT_COMPLEXIEEEFP
#define THRESHHOLD_BILEVEL
#define TIFFTAG_PHOTOSHOP
#define SAMPLEFORMAT_VOID
#define TIFFTAG_RICHTIFFIPTC
#define PLANARCONFIG_CONTIG
#define TIFFPRINT_COLORMAP