Lines Matching refs:filetype
1223 PHPAPI int php_getimagetype(php_stream * stream, char *filetype) in php_getimagetype() argument
1228 if ( !filetype) filetype = tmp; in php_getimagetype()
1229 if((php_stream_read(stream, filetype, 3)) != 3) { in php_getimagetype()
1235 if (!memcmp(filetype, php_sig_gif, 3)) { in php_getimagetype()
1237 } else if (!memcmp(filetype, php_sig_jpg, 3)) { in php_getimagetype()
1239 } else if (!memcmp(filetype, php_sig_png, 3)) { in php_getimagetype()
1240 if (php_stream_read(stream, filetype+3, 5) != 5) { in php_getimagetype()
1244 if (!memcmp(filetype, php_sig_png, 8)) { in php_getimagetype()
1250 } else if (!memcmp(filetype, php_sig_swf, 3)) { in php_getimagetype()
1252 } else if (!memcmp(filetype, php_sig_swc, 3)) { in php_getimagetype()
1254 } else if (!memcmp(filetype, php_sig_psd, 3)) { in php_getimagetype()
1256 } else if (!memcmp(filetype, php_sig_bmp, 2)) { in php_getimagetype()
1258 } else if (!memcmp(filetype, php_sig_jpc, 3)) { in php_getimagetype()
1262 if (php_stream_read(stream, filetype+3, 1) != 1) { in php_getimagetype()
1267 if (!memcmp(filetype, php_sig_tif_ii, 4)) { in php_getimagetype()
1269 } else if (!memcmp(filetype, php_sig_tif_mm, 4)) { in php_getimagetype()
1271 } else if (!memcmp(filetype, php_sig_iff, 4)) { in php_getimagetype()
1273 } else if (!memcmp(filetype, php_sig_ico, 4)) { in php_getimagetype()
1278 twelve_bytes_read = (php_stream_read(stream, filetype+4, 8) == 8); in php_getimagetype()
1281 if (twelve_bytes_read && !memcmp(filetype, php_sig_jp2, 12)) { in php_getimagetype()