1IM_ISINT(3) Library Functions Manual IM_ISINT(3)
2
3
4
6 im_isint, im_ispng, im_isuint, im_isfloat, im_iscomplex, im_istiff,
7 istifftiled, im_isjpeg, im_isfile, im_ispartial, im_isvips, im_isMSB‐
8 first, im_fexists, im_amiMSBfirst - classify image types
9
11 #include <vips/vips.h>
12
13 int im_isMSBfirst( im )
14 IMAGE *im;
15
16 int im_amiMSBfirst( void )
17
18 int im_fexists( const char *filename, ... )
19
20 int im_istiff( filename )
21 char *filename;
22
23 int im_istifftiled( filename )
24 char *filename;
25
26 int im_isjpeg( filename )
27 char *filename;
28
29 int im_ispng( filename )
30 char *filename;
31
32 int im_isppm( filename )
33 char *filename;
34
35 int im_isvips( filename )
36 char *filename;
37
38 int im_isfile( im )
39 IMAGE *im;
40
41 int im_ispartial( im )
42 IMAGE *im;
43
44 int im_isint( im )
45 IMAGE *im;
46
47 int im_isuint( im )
48 IMAGE *im;
49
50 int im_isfloat( im )
51 IMAGE *im;
52
53 int im_iscomplex( im )
54 IMAGE *im;
55
56
58 im_fexists(3) returns non-zero if the named file exists and is read‐
59 able. Args as printf(3).
60
61 im_istiff(3) tests a file for tiff-ness.
62
63 im_istifftiled(3) tests a file for tiff-tiled-ness.
64
65 im_isjpeg(3) tests a file for jpeg-ness.
66
67 im_ispng(3) tests a file for png-ness.
68
69 im_isppm(3) tests a file for PPM/PGM/PBM-ness.
70
71 im_isvips(3) tests a file for vips-ness.
72
73 im_isMSBfirst(3) returns true (1) if the file is in most-significant-
74 byte first form. This is the byte order used on the SPARC architecture,
75 and others. It returns false (0)for intel-order images.
76
77 im_amiMSBfirst(3) returns true (1) if this processor is MSB first.
78
79 im_isfile(3) returns true if the descriptor corresponds to some disc
80 object, that is, was opened with modes "r", "rw" or "w".
81
82 im_ispartial(3) returns true if the descriptor is partial, that is, was
83 opened with mode "p".
84
85 The rest of these functions test im->BandFmt, returning logical truth
86 (non-zero) if BandFmt is one of a number of possibles, and returning
87 zero if it is not.
88
89 im_isint(3) (is integer type) returns true if im->BandFmt is one of
90 FMTUCHAR, FMTCHAR, FMTUSHORT, FMTSHORT, FMTUINT or FMTINT.
91
92 im_isuint(3) (is unsigned integer type) returns true if im->BandFmt is
93 one of FMTUCHAR, FMTUSHORT or FMTUINT.
94
95 im_isfloat(3) (is floating point type) returns true if im->BandFmt is
96 one of FMTFLOAT or FMTDOUBLE.
97
98 im_iscomplex(3) (is complex type) returns true if im->BandFmt is one of
99 FMTCOMPLEX or FMTDPCOMPLEX.
100
101
103 National Gallery, 1993
104
106 `VIPS Library Programmers' Guide,' in accompanying documentation.
107 im_tiff2vips(3), im_jpeg2vips(3)
108
110 J. Cupitt - 23/7/93
111
112
113
114 11 April 1990 IM_ISINT(3)