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()
476 struct gfxinfo *result = NULL; in php_handle_jpeg() local
497 if (result == NULL) { in php_handle_jpeg()
499 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_jpeg()
501 result->bits = php_stream_getc(stream); in php_handle_jpeg()
502 result->height = php_read2(stream TSRMLS_CC); in php_handle_jpeg()
503 result->width = php_read2(stream TSRMLS_CC); in php_handle_jpeg()
504 result->channels = php_stream_getc(stream); in php_handle_jpeg()
506 return result; in php_handle_jpeg()
509 return result; in php_handle_jpeg()
513 return result; in php_handle_jpeg()
536 return result; in php_handle_jpeg()
540 return result; in php_handle_jpeg()
547 return result; /* we're about to hit image data, or are at EOF. stop processing. */ in php_handle_jpeg()
551 return result; in php_handle_jpeg()
557 return result; /* perhaps image broken -> no info but size */ in php_handle_jpeg()
605 struct gfxinfo *result = NULL; in php_handle_jpc() local
627 result = (struct gfxinfo *)ecalloc(1, sizeof(struct gfxinfo)); in php_handle_jpc()
631 result->width = php_read4(stream TSRMLS_CC); /* Xsiz */ in php_handle_jpc()
632 result->height = php_read4(stream TSRMLS_CC); /* Ysiz */ in php_handle_jpc()
643 efree(result); in php_handle_jpc()
648 result->channels = php_read2(stream TSRMLS_CC); /* Csiz */ in php_handle_jpc()
649 if (result->channels == 0 && php_stream_eof(stream) || result->channels > 256) { in php_handle_jpc()
650 efree(result); in php_handle_jpc()
656 for (i = 0; i < result->channels; i++) { in php_handle_jpc()
667 result->bits = highest_bit_depth; in php_handle_jpc()
669 return result; in php_handle_jpc()
677 struct gfxinfo *result = NULL; in php_handle_jp2() local
710 result = php_handle_jpc(stream TSRMLS_CC); in php_handle_jp2()
725 if (result == NULL) { in php_handle_jp2()
729 return result; in php_handle_jp2()
804 struct gfxinfo *result = NULL; in php_handle_tiff() local
870 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_tiff()
871 result->height = height; in php_handle_tiff()
872 result->width = width; in php_handle_tiff()
873 result->bits = 0; in php_handle_tiff()
874 result->channels = 0; in php_handle_tiff()
875 return result; in php_handle_tiff()
885 struct gfxinfo * result; in php_handle_iff() local
919 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_iff()
920 result->width = width; in php_handle_iff()
921 result->height = height; in php_handle_iff()
922 result->bits = bits; in php_handle_iff()
923 result->channels = 0; in php_handle_iff()
924 return result; in php_handle_iff()
944 static int php_get_wbmp(php_stream *stream, struct gfxinfo **result, int check TSRMLS_DC) in php_get_wbmp() argument
989 (*result)->width = width; in php_get_wbmp()
990 (*result)->height = height; in php_get_wbmp()
1001 struct gfxinfo *result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_wbmp() local
1003 if (!php_get_wbmp(stream, &result, 0 TSRMLS_CC)) { in php_handle_wbmp()
1004 efree(result); in php_handle_wbmp()
1008 return result; in php_handle_wbmp()
1014 static int php_get_xbm(php_stream *stream, struct gfxinfo **result TSRMLS_DC) in php_get_xbm()
1022 if (result) { in php_get_xbm()
1023 *result = NULL; in php_get_xbm()
1060 if (result) { in php_get_xbm()
1061 *result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_get_xbm()
1062 (*result)->width = width; in php_get_xbm()
1063 (*result)->height = height; in php_get_xbm()
1076 struct gfxinfo *result; in php_handle_xbm() local
1077 php_get_xbm(stream, &result TSRMLS_CC); in php_handle_xbm()
1078 return result; in php_handle_xbm()
1086 struct gfxinfo *result = NULL; in php_handle_ico() local
1098 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_ico()
1105 if ((((unsigned int)dim[7]) << 8) + ((unsigned int)dim[6]) >= result->bits) in php_handle_ico()
1107 result->width = (unsigned int)dim[0]; in php_handle_ico()
1108 result->height = (unsigned int)dim[1]; in php_handle_ico()
1109 result->bits = (((unsigned int)dim[7]) << 8) + ((unsigned int)dim[6]); in php_handle_ico()
1114 return result; in php_handle_ico()
1300 struct gfxinfo *result = NULL; in php_getimagesize_from_stream() local
1309 result = php_handle_gif(stream TSRMLS_CC); in php_getimagesize_from_stream()
1313 result = php_handle_jpeg(stream, *info TSRMLS_CC); in php_getimagesize_from_stream()
1315 result = php_handle_jpeg(stream, NULL TSRMLS_CC); in php_getimagesize_from_stream()
1319 result = php_handle_png(stream TSRMLS_CC); in php_getimagesize_from_stream()
1322 result = php_handle_swf(stream TSRMLS_CC); in php_getimagesize_from_stream()
1326 result = php_handle_swc(stream TSRMLS_CC); in php_getimagesize_from_stream()
1332 result = php_handle_psd(stream TSRMLS_CC); in php_getimagesize_from_stream()
1335 result = php_handle_bmp(stream TSRMLS_CC); in php_getimagesize_from_stream()
1338 result = php_handle_tiff(stream, NULL, 0 TSRMLS_CC); in php_getimagesize_from_stream()
1341 result = php_handle_tiff(stream, NULL, 1 TSRMLS_CC); in php_getimagesize_from_stream()
1344 result = php_handle_jpc(stream TSRMLS_CC); in php_getimagesize_from_stream()
1347 result = php_handle_jp2(stream TSRMLS_CC); in php_getimagesize_from_stream()
1350 result = php_handle_iff(stream TSRMLS_CC); in php_getimagesize_from_stream()
1353 result = php_handle_wbmp(stream TSRMLS_CC); in php_getimagesize_from_stream()
1356 result = php_handle_xbm(stream TSRMLS_CC); in php_getimagesize_from_stream()
1359 result = php_handle_ico(stream TSRMLS_CC); in php_getimagesize_from_stream()
1366 if (result) { in php_getimagesize_from_stream()
1368 add_index_long(return_value, 0, result->width); in php_getimagesize_from_stream()
1369 add_index_long(return_value, 1, result->height); in php_getimagesize_from_stream()
1371 spprintf(&temp, 0, "width=\"%d\" height=\"%d\"", result->width, result->height); in php_getimagesize_from_stream()
1374 if (result->bits != 0) { in php_getimagesize_from_stream()
1375 add_assoc_long(return_value, "bits", result->bits); in php_getimagesize_from_stream()
1377 if (result->channels != 0) { in php_getimagesize_from_stream()
1378 add_assoc_long(return_value, "channels", result->channels); in php_getimagesize_from_stream()
1381 efree(result); in php_getimagesize_from_stream()