| VIPS Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define VIPS_PI #define VIPS_RAD (R) #define VIPS_DEG (A) #define VIPS_MAX (A, B) #define VIPS_MIN (A, B) #define VIPS_ABS (X) #define VIPS_CLIP (A, V, B) #define VIPS_NUMBER (R) #define VIPS_SWAP (TYPE, A, B) #define VIPS_UNROLL (N, OPER) #define VIPS_RINT (R) #define VIPS_CLIP_UCHAR (V, SEQ) #define VIPS_CLIP_CHAR (V, SEQ) #define VIPS_CLIP_USHORT (V, SEQ) #define VIPS_CLIP_SHORT (V, SEQ) #define VIPS_CLIP_UINT (V, SEQ) #define VIPS_CLIP_NONE (V, SEQ) #define VIPS_PATH_MAX const char * vips_enum_string (GType enm,int value); const char * vips_enum_nick (GType enm,int value); int vips_enum_from_nick (const char *domain,GType type,const char *str); gboolean vips_slist_equal (GSList *l1,GSList *l2); void * vips_slist_map2 (GSList *list,VipsSListMap2Fn fn,void *a,void *b); void * vips_slist_map2_rev (GSList *list,VipsSListMap2Fn fn,void *a,void *b); void * vips_slist_map4 (GSList *list,VipsSListMap4Fn fn,void *a,void *b,void *c,void *d); void * vips_slist_fold2 (GSList *list,void *start,VipsSListFold2Fn fn,void *a,void *b); GSList * vips_slist_filter (GSList *list,VipsSListMap2Fn fn,void *a,void *b); void vips_slist_free_all (GSList *list); void * vips_map_equal (void *a,void *b); void * vips_hash_table_map (GHashTable *hash,VipsSListMap2Fn fn,void *a,void *b); char * vips_strncpy (char *dest,const char *src,int n); char * vips_strrstr (const char *haystack,const char *needle); gboolean vips_ispostfix (const char *a,const char *b); gboolean vips_isprefix (const char *a,const char *b); char * vips_break_token (char *str,const char *brk); int vips_vsnprintf (char *str,size_t size,const char *format,va_list ap); int vips_snprintf (char *str,size_t size,const char *format,...); void vips_filename_split (const char *path,char *name,char *mode); const char * vips_skip_dir (const char *filename); void vips_filename_suffix (const char *path,char *suffix); int vips_filename_suffix_match (const char *path,const char *suffixes[]); char * vips_getnextoption (char **in); char * vips_getsuboption (const char *buf); gint64 vips_file_length (int fd); int vips__write (int fd,const void *buf,size_t count); FILE * vips__file_open_read (const char *filename,const char *fallback_dir,gboolean text_mode); FILE * vips__file_open_write (const char *filename,gboolean text_mode); char * vips__file_read (FILE *fp,const char *name,unsigned int *length_out); char * vips__file_read_name (const char *name,const char *fallback_dir,unsigned int *length_out); int vips__file_write (void *data,size_t size,size_t nmemb,FILE *stream); int vips__get_bytes (const char *filename,unsigned char buf[],int len); GValue * vips__gvalue_ref_string_new (const char *text); void vips__gslist_gvalue_free (GSList *list); GSList * vips__gslist_gvalue_copy (const GSList *list); GSList * vips__gslist_gvalue_merge (GSList *a,const GSList *b); char * vips__gslist_gvalue_get (const GSList *list); int vips__seek (int fd,gint64 pos); int vips__ftruncate (int fd,gint64 pos); int vips_existsf (const char *name,...); int vips_mkdirf (const char *name,...); FILE * vips_popenf (const char *fmt,const char *mode,...); enum VipsToken; const char * vips__token_get (const char *buffer,VipsToken *token,char *string,int size); const char * vips__token_must (const char *buffer,VipsToken *token,char *string,int size); const char * vips__token_need (const char *buffer,VipsToken need_token,char *string,int size); const char * vips__find_rightmost_brackets (const char *p); int vips_ispoweroftwo (int p); int vips_amiMSBfirst (void); char * vips__temp_name (const char *format); void vips__change_suffix (const char *name,char *out,int mx,const char *new_suff,const char **olds,int nolds);
void * vips_slist_map2_rev (GSList *list,VipsSListMap2Fn fn,void *a,void *b);
void * vips_slist_map4 (GSList *list,VipsSListMap4Fn fn,void *a,void *b,void *c,void *d);
void * vips_slist_fold2 (GSList *list,void *start,VipsSListFold2Fn fn,void *a,void *b);
GSList * vips_slist_filter (GSList *list,VipsSListMap2Fn fn,void *a,void *b);
void * vips_hash_table_map (GHashTable *hash,VipsSListMap2Fn fn,void *a,void *b);
int vips_filename_suffix_match (const char *path,const char *suffixes[]);
FILE * vips__file_open_read (const char *filename,const char *fallback_dir,gboolean text_mode);
char * vips__file_read_name (const char *name,const char *fallback_dir,unsigned int *length_out);
typedef enum {
VIPS_TOKEN_LEFT = 1,
VIPS_TOKEN_RIGHT,
VIPS_TOKEN_STRING,
VIPS_TOKEN_EQUALS,
VIPS_TOKEN_COMMA
} VipsToken;
Tokens returned by the vips lexical analyzer, see vips__token_get(). This
is used to parse option strings for arguments.
Left and right brackets can be any of (, {, [, <.
Strings may be in double quotes, and may contain escaped quote characters, for example string, "string" and "str\"ing".
const char * vips__token_get (const char *buffer,VipsToken *token,char *string,int size);
const char * vips__token_must (const char *buffer,VipsToken *token,char *string,int size);
const char * vips__token_need (const char *buffer,VipsToken need_token,char *string,int size);