Lines Matching refs:result

105 	struct gfxinfo *result = NULL;  in php_handle_gif()  local
114 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_gif()
115 result->width = (unsigned int)dim[0] | (((unsigned int)dim[1])<<8); in php_handle_gif()
116 result->height = (unsigned int)dim[2] | (((unsigned int)dim[3])<<8); in php_handle_gif()
117 result->bits = dim[4]&0x80 ? ((((unsigned int)dim[4])&0x07) + 1) : 0; in php_handle_gif()
118 result->channels = 3; /* always */ in php_handle_gif()
120 return result; in php_handle_gif()
128 struct gfxinfo *result = NULL; in php_handle_psd() local
137 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_psd()
138result->height = (((unsigned int)dim[0]) << 24) + (((unsigned int)dim[1]) << 16) + (((unsigned … in php_handle_psd()
139result->width = (((unsigned int)dim[4]) << 24) + (((unsigned int)dim[5]) << 16) + (((unsigned … in php_handle_psd()
141 return result; in php_handle_psd()
149 struct gfxinfo *result = NULL; in php_handle_bmp() local
161 result = (struct gfxinfo *) ecalloc (1, sizeof(struct gfxinfo)); in php_handle_bmp()
162 result->width = (((unsigned int)dim[ 5]) << 8) + ((unsigned int) dim[ 4]); in php_handle_bmp()
163 result->height = (((unsigned int)dim[ 7]) << 8) + ((unsigned int) dim[ 6]); in php_handle_bmp()
164 result->bits = ((unsigned int)dim[11]); in php_handle_bmp()
166 result = (struct gfxinfo *) ecalloc (1, sizeof(struct gfxinfo)); in php_handle_bmp()
167result->width = (((unsigned int)dim[ 7]) << 24) + (((unsigned int)dim[ 6]) << 16) + (((unsigne… in php_handle_bmp()
168result->height = (((unsigned int)dim[11]) << 24) + (((unsigned int)dim[10]) << 16) + (((unsigne… in php_handle_bmp()
169 result->height = abs((int32_t)result->height); in php_handle_bmp()
170 result->bits = (((unsigned int)dim[15]) << 8) + ((unsigned int)dim[14]); in php_handle_bmp()
175 return result; in php_handle_bmp()
184 unsigned long int result = 0; in php_swf_get_bits() local
188 result = result + in php_swf_get_bits()
191 return result; in php_swf_get_bits()
200 struct gfxinfo *result = NULL; in php_handle_swc() local
252 result = (struct gfxinfo *) ecalloc (1, sizeof (struct gfxinfo)); in php_handle_swc()
254 result->width = (php_swf_get_bits (b, 5 + bits, bits) - in php_handle_swc()
256 result->height = (php_swf_get_bits (b, 5 + (3 * bits), bits) - in php_handle_swc()
259 result = NULL; in php_handle_swc()
263 return result; in php_handle_swc()
272 struct gfxinfo *result = NULL; in php_handle_swf() local
282 result = (struct gfxinfo *) ecalloc (1, sizeof (struct gfxinfo)); in php_handle_swf()
284 result->width = (php_swf_get_bits (a, 5 + bits, bits) - in php_handle_swf()
286 result->height = (php_swf_get_bits (a, 5 + (3 * bits), bits) - in php_handle_swf()
288 result->bits = 0; in php_handle_swf()
289 result->channels = 0; in php_handle_swf()
290 return result; in php_handle_swf()
298 struct gfxinfo *result = NULL; in php_handle_png() local
315 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_png()
316result->width = (((unsigned int)dim[0]) << 24) + (((unsigned int)dim[1]) << 16) + (((unsigned int… in php_handle_png()
317result->height = (((unsigned int)dim[4]) << 24) + (((unsigned int)dim[5]) << 16) + (((unsigned int… in php_handle_png()
318 result->bits = (unsigned int)dim[8]; in php_handle_png()
319 return result; in php_handle_png()
464 struct gfxinfo *result = NULL; in php_handle_jpeg() local
485 if (result == NULL) { in php_handle_jpeg()
487 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_jpeg()
489 result->bits = php_stream_getc(stream); in php_handle_jpeg()
490 result->height = php_read2(stream TSRMLS_CC); in php_handle_jpeg()
491 result->width = php_read2(stream TSRMLS_CC); in php_handle_jpeg()
492 result->channels = php_stream_getc(stream); in php_handle_jpeg()
494 return result; in php_handle_jpeg()
497 return result; in php_handle_jpeg()
501 return result; in php_handle_jpeg()
524 return result; in php_handle_jpeg()
528 return result; in php_handle_jpeg()
535 return result; /* we're about to hit image data, or are at EOF. stop processing. */ in php_handle_jpeg()
539 return result; in php_handle_jpeg()
545 return result; /* perhaps image broken -> no info but size */ in php_handle_jpeg()
593 struct gfxinfo *result = NULL; in php_handle_jpc() local
615 result = (struct gfxinfo *)ecalloc(1, sizeof(struct gfxinfo)); in php_handle_jpc()
619 result->width = php_read4(stream TSRMLS_CC); /* Xsiz */ in php_handle_jpc()
620 result->height = php_read4(stream TSRMLS_CC); /* Ysiz */ in php_handle_jpc()
631 efree(result); in php_handle_jpc()
636 result->channels = php_read2(stream TSRMLS_CC); /* Csiz */ in php_handle_jpc()
637 if (result->channels == 0 && php_stream_eof(stream) || result->channels > 256) { in php_handle_jpc()
638 efree(result); in php_handle_jpc()
644 for (i = 0; i < result->channels; i++) { in php_handle_jpc()
655 result->bits = highest_bit_depth; in php_handle_jpc()
657 return result; in php_handle_jpc()
665 struct gfxinfo *result = NULL; in php_handle_jp2() local
698 result = php_handle_jpc(stream TSRMLS_CC); in php_handle_jp2()
713 if (result == NULL) { in php_handle_jp2()
717 return result; in php_handle_jp2()
792 struct gfxinfo *result = NULL; in php_handle_tiff() local
858 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_tiff()
859 result->height = height; in php_handle_tiff()
860 result->width = width; in php_handle_tiff()
861 result->bits = 0; in php_handle_tiff()
862 result->channels = 0; in php_handle_tiff()
863 return result; in php_handle_tiff()
873 struct gfxinfo * result; in php_handle_iff() local
907 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_iff()
908 result->width = width; in php_handle_iff()
909 result->height = height; in php_handle_iff()
910 result->bits = bits; in php_handle_iff()
911 result->channels = 0; in php_handle_iff()
912 return result; in php_handle_iff()
932 static int php_get_wbmp(php_stream *stream, struct gfxinfo **result, int check TSRMLS_DC) in php_get_wbmp() argument
984 (*result)->width = width; in php_get_wbmp()
985 (*result)->height = height; in php_get_wbmp()
996 struct gfxinfo *result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_wbmp() local
998 if (!php_get_wbmp(stream, &result, 0 TSRMLS_CC)) { in php_handle_wbmp()
999 efree(result); in php_handle_wbmp()
1003 return result; in php_handle_wbmp()
1009 static int php_get_xbm(php_stream *stream, struct gfxinfo **result TSRMLS_DC) in php_get_xbm()
1017 if (result) { in php_get_xbm()
1018 *result = NULL; in php_get_xbm()
1055 if (result) { in php_get_xbm()
1056 *result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_get_xbm()
1057 (*result)->width = width; in php_get_xbm()
1058 (*result)->height = height; in php_get_xbm()
1071 struct gfxinfo *result; in php_handle_xbm() local
1072 php_get_xbm(stream, &result TSRMLS_CC); in php_handle_xbm()
1073 return result; in php_handle_xbm()
1081 struct gfxinfo *result = NULL; in php_handle_ico() local
1093 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_ico()
1100 if ((((unsigned int)dim[7]) << 8) + ((unsigned int)dim[6]) >= result->bits) in php_handle_ico()
1102 result->width = (unsigned int)dim[0]; in php_handle_ico()
1103 result->height = (unsigned int)dim[1]; in php_handle_ico()
1104 result->bits = (((unsigned int)dim[7]) << 8) + ((unsigned int)dim[6]); in php_handle_ico()
1109 return result; in php_handle_ico()
1299 struct gfxinfo *result = NULL; in php_getimagesize_from_stream() local
1308 result = php_handle_gif(stream TSRMLS_CC); in php_getimagesize_from_stream()
1312 result = php_handle_jpeg(stream, *info TSRMLS_CC); in php_getimagesize_from_stream()
1314 result = php_handle_jpeg(stream, NULL TSRMLS_CC); in php_getimagesize_from_stream()
1318 result = php_handle_png(stream TSRMLS_CC); in php_getimagesize_from_stream()
1321 result = php_handle_swf(stream TSRMLS_CC); in php_getimagesize_from_stream()
1325 result = php_handle_swc(stream TSRMLS_CC); in php_getimagesize_from_stream()
1331 result = php_handle_psd(stream TSRMLS_CC); in php_getimagesize_from_stream()
1334 result = php_handle_bmp(stream TSRMLS_CC); in php_getimagesize_from_stream()
1337 result = php_handle_tiff(stream, NULL, 0 TSRMLS_CC); in php_getimagesize_from_stream()
1340 result = php_handle_tiff(stream, NULL, 1 TSRMLS_CC); in php_getimagesize_from_stream()
1343 result = php_handle_jpc(stream TSRMLS_CC); in php_getimagesize_from_stream()
1346 result = php_handle_jp2(stream TSRMLS_CC); in php_getimagesize_from_stream()
1349 result = php_handle_iff(stream TSRMLS_CC); in php_getimagesize_from_stream()
1352 result = php_handle_wbmp(stream TSRMLS_CC); in php_getimagesize_from_stream()
1355 result = php_handle_xbm(stream TSRMLS_CC); in php_getimagesize_from_stream()
1358 result = php_handle_ico(stream TSRMLS_CC); in php_getimagesize_from_stream()
1365 if (result) { in php_getimagesize_from_stream()
1367 add_index_long(return_value, 0, result->width); in php_getimagesize_from_stream()
1368 add_index_long(return_value, 1, result->height); in php_getimagesize_from_stream()
1370 spprintf(&temp, 0, "width=\"%d\" height=\"%d\"", result->width, result->height); in php_getimagesize_from_stream()
1373 if (result->bits != 0) { in php_getimagesize_from_stream()
1374 add_assoc_long(return_value, "bits", result->bits); in php_getimagesize_from_stream()
1376 if (result->channels != 0) { in php_getimagesize_from_stream()
1377 add_assoc_long(return_value, "channels", result->channels); in php_getimagesize_from_stream()
1380 efree(result); in php_getimagesize_from_stream()