LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
tif_print.c File Reference

Format directory values and private escaped text for stdio output. More...

#include "tiffiop.h"
#include <stdio.h>
#include <ctype.h>
Include dependency graph for tif_print.c:

Go to the source code of this file.

Data Structures

struct  tagname
 Associate an anonymous on-disk tag with a friendly print label. More...
 

Macros

#define NPHOTONAMES   (sizeof(photoNames) / sizeof(photoNames[0]))
 Count the entries in photoNames, including the reserved placeholder.
 
#define NORIENTNAMES   (sizeof(orientNames) / sizeof(orientNames[0]))
 Count orientation display entries, including the zero placeholder.
 
#define NTAGS   (sizeof(tagnames) / sizeof(tagnames[0]))
 Count the anonymous-tag friendly-name overrides.
 

Functions

static void _TIFFprintAsciiBounded (FILE *fd, const char *cp, size_t max_chars)
 Print at most a byte bound using the private ASCII escape convention.
 
static void _TIFFPrintField (FILE *fd, const TIFFField *fip, uint32_t value_count, void *raw_data)
 Print a custom field using its generic numeric or string representation.
 
static int _TIFFPrettyPrintField (TIFF *tif, const TIFFField *fip, FILE *fd, uint32_t tag, uint32_t value_count, void *raw_data)
 Try specialised formatting for selected named custom tags.
 
void TIFFPrintDirectory (TIFF *tif, FILE *fd, long flags)
 Print a human-readable description of the current directory.
 
void _TIFFprintAscii (FILE *fd, const char *cp)
 Print a terminated string using the private ASCII escape convention.
 
void _TIFFprintAsciiTag (FILE *fd, const char *name, const char *value)
 Print a labelled quoted value using the private ASCII formatter.
 

Variables

static const char *const photoNames []
 Map common photometric identifiers to display names.
 
static const char *const orientNames []
 Map orientation identifiers to display descriptions.
 
static const struct tagname tagnames []
 Supply display labels for anonymous GDAL metadata and nodata tags.
 

Detailed Description

Format directory values and private escaped text for stdio output.

Definition in file tif_print.c.