Add image_types.h
This commit is contained in:
parent
d4c9a41d7f
commit
aa77e1289c
|
@ -0,0 +1,36 @@
|
||||||
|
//This File is some extensions of image
|
||||||
|
//Note that this is the first edition,may needs improvement
|
||||||
|
static const char * const supported_globs[]={
|
||||||
|
"*.bmp",
|
||||||
|
"*.cod",
|
||||||
|
"*.gif",
|
||||||
|
"*.ief",
|
||||||
|
"*.jpe",
|
||||||
|
"*.jpeg",
|
||||||
|
"*.jpg",
|
||||||
|
"*.jfif",
|
||||||
|
"*.svg",
|
||||||
|
"*.png",
|
||||||
|
"*.tif",
|
||||||
|
"*.tiff",
|
||||||
|
"*.ras",
|
||||||
|
"*.cmx",
|
||||||
|
"*.ico",
|
||||||
|
"*.pnm",
|
||||||
|
"*.pbm",
|
||||||
|
"*.pgm",
|
||||||
|
"*.ppm",
|
||||||
|
"*.rgb",
|
||||||
|
"*.xbm",
|
||||||
|
"*.xpm",
|
||||||
|
"*.xwd",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline bool mime_type_supported(){
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
|
return true;
|
||||||
|
#endif
|
||||||
|
}
|
Loading…
Reference in New Issue