---
name: "im_amiMSBfirst"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_iscomplex"
---

# im\_amiMSBfirst(3)

classify image types

Part of [im\_iscomplex(3)](/im_iscomplex/3.md).

## NAME

im\_isint, im\_isuint, im\_isfloat, im\_isscalar, im\_iscomplex,  im\_isfile, im\_ispartial, im\_isvips, im\_isMSBfirst,  im\_fexists, im\_amiMSBfirst - classify image types

## SYNOPSIS

**#include \<vips/vips.h\>**

int im\_isMSBfirst( im )\
 IMAGE \*im;

int im\_amiMSBfirst( void )

int im\_fexists( const char \*filename, ... )

int im\_isvips( filename )\
 char \*filename;

int im\_isfile( im )\
 IMAGE \*im;

int im\_ispartial( im )\
 IMAGE \*im;

int im\_isint( im )\
 IMAGE \*im;

int im\_isuint( im )\
 IMAGE \*im;

int im\_isfloat( im )\
 IMAGE \*im;

int im\_isscalar( im )\
 IMAGE \*im;

int im\_iscomplex( im )\
 IMAGE \*im;

## DESCRIPTION

im\_fexists(3) returns non-zero if the named file exists and is readable. Args as [printf(3)](/printf/3.md).

[im\_isvips(3)](/im_isvips/3.md) tests a file for vips-ness.

[im\_isMSBfirst(3)](/im_isMSBfirst/3.md) returns true (1) if the file is in most-significant-byte first form. This is the byte order used on the SPARC architecture, and others. It returns false (0)for intel-order images.

[im\_amiMSBfirst(3)](/im_amiMSBfirst/3.md) returns true (1) if this processor is MSB first.

[im\_isfile(3)](/im_isfile/3.md) returns true if the descriptor corresponds to some disc object, that is, was opened with modes "r", "rw" or "w".

[im\_ispartial(3)](/im_ispartial/3.md) returns true if the descriptor is partial, that is, was opened with mode "p".

The rest of these functions test im-\>BandFmt, returning logical truth (non-zero) if BandFmt is one of a number of possibles, and returning zero if it is not.

[im\_isint(3)](/im_isint/3.md) (is integer type) returns true if im-\>BandFmt is one of FMTUCHAR, FMTCHAR, FMTUSHORT, FMTSHORT, FMTUINT or FMTINT.

[im\_isuint(3)](/im_isuint/3.md) (is unsigned integer type) returns true if im-\>BandFmt is one of FMTUCHAR, FMTUSHORT or FMTUINT.

[im\_isfloat(3)](/im_isfloat/3.md) (is floating point type) returns true if im-\>BandFmt is one of FMTFLOAT or FMTDOUBLE.

[im\_isscalar(3)](/im_isscalar/3.md) (is scalar type) returns true if im-\>BandFmt is one of FMTUCHAR, FMTCHAR, FMTUSHORT, FMTSHORT, FMTUINT, FMTINT, FMTFLOAT or FMTDOUBLE.

[im\_iscomplex(3)](/im_iscomplex/3.md) (is complex type) returns true if im-\>BandFmt is one of FMTCOMPLEX or FMTDPCOMPLEX.

## COPYRIGHT

National Gallery, 1993

## SEE ALSO

[im\_tiff2vips(3)](/im_tiff2vips/3.md), [im\_jpeg2vips(3)](/im_jpeg2vips/3.md)

## AUTHOR

J. Cupitt - 23/7/93
