Lines Matching refs:filetype

1349 PHPAPI int php_getimagetype(php_stream *stream, const char *input, char *filetype)  in php_getimagetype()  argument
1354 if ( !filetype) filetype = tmp; in php_getimagetype()
1355 if((php_stream_read(stream, filetype, 3)) != 3) { in php_getimagetype()
1361 if (!memcmp(filetype, php_sig_gif, 3)) { in php_getimagetype()
1363 } else if (!memcmp(filetype, php_sig_jpg, 3)) { in php_getimagetype()
1365 } else if (!memcmp(filetype, php_sig_png, 3)) { in php_getimagetype()
1366 if (php_stream_read(stream, filetype+3, 5) != 5) { in php_getimagetype()
1370 if (!memcmp(filetype, php_sig_png, 8)) { in php_getimagetype()
1376 } else if (!memcmp(filetype, php_sig_swf, 3)) { in php_getimagetype()
1378 } else if (!memcmp(filetype, php_sig_swc, 3)) { in php_getimagetype()
1380 } else if (!memcmp(filetype, php_sig_psd, 3)) { in php_getimagetype()
1382 } else if (!memcmp(filetype, php_sig_bmp, 2)) { in php_getimagetype()
1384 } else if (!memcmp(filetype, php_sig_jpc, 3)) { in php_getimagetype()
1386 } else if (!memcmp(filetype, php_sig_riff, 3)) { in php_getimagetype()
1387 if (php_stream_read(stream, filetype+3, 9) != 9) { in php_getimagetype()
1391 if (!memcmp(filetype+8, php_sig_webp, 4)) { in php_getimagetype()
1398 if (php_stream_read(stream, filetype+3, 1) != 1) { in php_getimagetype()
1403 if (!memcmp(filetype, php_sig_tif_ii, 4)) { in php_getimagetype()
1405 } else if (!memcmp(filetype, php_sig_tif_mm, 4)) { in php_getimagetype()
1407 } else if (!memcmp(filetype, php_sig_iff, 4)) { in php_getimagetype()
1409 } else if (!memcmp(filetype, php_sig_ico, 4)) { in php_getimagetype()
1414 twelve_bytes_read = (php_stream_read(stream, filetype+4, 8) == 8); in php_getimagetype()
1417 if (twelve_bytes_read && !memcmp(filetype, php_sig_jp2, 12)) { in php_getimagetype()