Lines Matching refs:result

102 	struct gfxinfo *result = NULL;  in php_handle_gif()  local
111 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_gif()
112 result->width = (unsigned int)dim[0] | (((unsigned int)dim[1])<<8); in php_handle_gif()
113 result->height = (unsigned int)dim[2] | (((unsigned int)dim[3])<<8); in php_handle_gif()
114 result->bits = dim[4]&0x80 ? ((((unsigned int)dim[4])&0x07) + 1) : 0; in php_handle_gif()
115 result->channels = 3; /* allways */ in php_handle_gif()
117 return result; in php_handle_gif()
125 struct gfxinfo *result = NULL; in php_handle_psd() local
134 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_psd()
135result->height = (((unsigned int)dim[0]) << 24) + (((unsigned int)dim[1]) << 16) + (((unsigned … in php_handle_psd()
136result->width = (((unsigned int)dim[4]) << 24) + (((unsigned int)dim[5]) << 16) + (((unsigned … in php_handle_psd()
138 return result; in php_handle_psd()
146 struct gfxinfo *result = NULL; in php_handle_bmp() local
158 result = (struct gfxinfo *) ecalloc (1, sizeof(struct gfxinfo)); in php_handle_bmp()
159 result->width = (((unsigned int)dim[ 5]) << 8) + ((unsigned int) dim[ 4]); in php_handle_bmp()
160 result->height = (((unsigned int)dim[ 7]) << 8) + ((unsigned int) dim[ 6]); in php_handle_bmp()
161 result->bits = ((unsigned int)dim[11]); in php_handle_bmp()
163 result = (struct gfxinfo *) ecalloc (1, sizeof(struct gfxinfo)); in php_handle_bmp()
164result->width = (((unsigned int)dim[ 7]) << 24) + (((unsigned int)dim[ 6]) << 16) + (((unsigne… in php_handle_bmp()
165result->height = (((unsigned int)dim[11]) << 24) + (((unsigned int)dim[10]) << 16) + (((unsigne… in php_handle_bmp()
166 result->bits = (((unsigned int)dim[15]) << 8) + ((unsigned int)dim[14]); in php_handle_bmp()
171 return result; in php_handle_bmp()
180 unsigned long int result = 0; in php_swf_get_bits() local
184 result = result + in php_swf_get_bits()
187 return result; in php_swf_get_bits()
196 struct gfxinfo *result = NULL; in php_handle_swc() local
248 result = (struct gfxinfo *) ecalloc (1, sizeof (struct gfxinfo)); in php_handle_swc()
250 result->width = (php_swf_get_bits (b, 5 + bits, bits) - in php_handle_swc()
252 result->height = (php_swf_get_bits (b, 5 + (3 * bits), bits) - in php_handle_swc()
255 result = NULL; in php_handle_swc()
259 return result; in php_handle_swc()
268 struct gfxinfo *result = NULL; in php_handle_swf() local
278 result = (struct gfxinfo *) ecalloc (1, sizeof (struct gfxinfo)); in php_handle_swf()
280 result->width = (php_swf_get_bits (a, 5 + bits, bits) - in php_handle_swf()
282 result->height = (php_swf_get_bits (a, 5 + (3 * bits), bits) - in php_handle_swf()
284 result->bits = 0; in php_handle_swf()
285 result->channels = 0; in php_handle_swf()
286 return result; in php_handle_swf()
294 struct gfxinfo *result = NULL; in php_handle_png() local
311 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_png()
312result->width = (((unsigned int)dim[0]) << 24) + (((unsigned int)dim[1]) << 16) + (((unsigned int… in php_handle_png()
313result->height = (((unsigned int)dim[4]) << 24) + (((unsigned int)dim[5]) << 16) + (((unsigned int… in php_handle_png()
314 result->bits = (unsigned int)dim[8]; in php_handle_png()
315 return result; in php_handle_png()
472 struct gfxinfo *result = NULL; in php_handle_jpeg() local
493 if (result == NULL) { in php_handle_jpeg()
495 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_jpeg()
497 result->bits = php_stream_getc(stream); in php_handle_jpeg()
498 result->height = php_read2(stream TSRMLS_CC); in php_handle_jpeg()
499 result->width = php_read2(stream TSRMLS_CC); in php_handle_jpeg()
500 result->channels = php_stream_getc(stream); in php_handle_jpeg()
502 return result; in php_handle_jpeg()
505 return result; in php_handle_jpeg()
509 return result; in php_handle_jpeg()
532 return result; in php_handle_jpeg()
536 return result; in php_handle_jpeg()
543 return result; /* we're about to hit image data, or are at EOF. stop processing. */ in php_handle_jpeg()
547 return result; in php_handle_jpeg()
553 return result; /* perhaps image broken -> no info but size */ in php_handle_jpeg()
601 struct gfxinfo *result = NULL; in php_handle_jpc() local
623 result = (struct gfxinfo *)ecalloc(1, sizeof(struct gfxinfo)); in php_handle_jpc()
627 result->width = php_read4(stream TSRMLS_CC); /* Xsiz */ in php_handle_jpc()
628 result->height = php_read4(stream TSRMLS_CC); /* Ysiz */ in php_handle_jpc()
639 efree(result); in php_handle_jpc()
644 result->channels = php_read2(stream TSRMLS_CC); /* Csiz */ in php_handle_jpc()
645 if (result->channels < 0 || result->channels > 256) { in php_handle_jpc()
646 efree(result); in php_handle_jpc()
652 for (i = 0; i < result->channels; i++) { in php_handle_jpc()
663 result->bits = highest_bit_depth; in php_handle_jpc()
665 return result; in php_handle_jpc()
673 struct gfxinfo *result = NULL; in php_handle_jp2() local
706 result = php_handle_jpc(stream TSRMLS_CC); in php_handle_jp2()
721 if (result == NULL) { in php_handle_jp2()
725 return result; in php_handle_jp2()
800 struct gfxinfo *result = NULL; in php_handle_tiff() local
866 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_tiff()
867 result->height = height; in php_handle_tiff()
868 result->width = width; in php_handle_tiff()
869 result->bits = 0; in php_handle_tiff()
870 result->channels = 0; in php_handle_tiff()
871 return result; in php_handle_tiff()
881 struct gfxinfo * result; in php_handle_iff() local
915 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_iff()
916 result->width = width; in php_handle_iff()
917 result->height = height; in php_handle_iff()
918 result->bits = bits; in php_handle_iff()
919 result->channels = 0; in php_handle_iff()
920 return result; in php_handle_iff()
940 static int php_get_wbmp(php_stream *stream, struct gfxinfo **result, int check TSRMLS_DC) in php_get_wbmp() argument
985 (*result)->width = width; in php_get_wbmp()
986 (*result)->height = height; in php_get_wbmp()
997 struct gfxinfo *result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_wbmp() local
999 if (!php_get_wbmp(stream, &result, 0 TSRMLS_CC)) { in php_handle_wbmp()
1000 efree(result); in php_handle_wbmp()
1004 return result; in php_handle_wbmp()
1010 static int php_get_xbm(php_stream *stream, struct gfxinfo **result TSRMLS_DC) in php_get_xbm()
1018 if (result) { in php_get_xbm()
1019 *result = NULL; in php_get_xbm()
1056 if (result) { in php_get_xbm()
1057 *result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_get_xbm()
1058 (*result)->width = width; in php_get_xbm()
1059 (*result)->height = height; in php_get_xbm()
1072 struct gfxinfo *result; in php_handle_xbm() local
1073 php_get_xbm(stream, &result TSRMLS_CC); in php_handle_xbm()
1074 return result; in php_handle_xbm()
1082 struct gfxinfo *result = NULL; in php_handle_ico() local
1094 result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo)); in php_handle_ico()
1101 if ((((unsigned int)dim[7]) << 8) + ((unsigned int)dim[6]) >= result->bits) in php_handle_ico()
1103 result->width = (unsigned int)dim[0]; in php_handle_ico()
1104 result->height = (unsigned int)dim[1]; in php_handle_ico()
1105 result->bits = (((unsigned int)dim[7]) << 8) + ((unsigned int)dim[6]); in php_handle_ico()
1110 return result; in php_handle_ico()
1299 struct gfxinfo *result = NULL; in PHP_FUNCTION() local
1320 result = php_handle_gif(stream TSRMLS_CC); in PHP_FUNCTION()
1324 result = php_handle_jpeg(stream, *info TSRMLS_CC); in PHP_FUNCTION()
1326 result = php_handle_jpeg(stream, NULL TSRMLS_CC); in PHP_FUNCTION()
1330 result = php_handle_png(stream TSRMLS_CC); in PHP_FUNCTION()
1333 result = php_handle_swf(stream TSRMLS_CC); in PHP_FUNCTION()
1337 result = php_handle_swc(stream TSRMLS_CC); in PHP_FUNCTION()
1343 result = php_handle_psd(stream TSRMLS_CC); in PHP_FUNCTION()
1346 result = php_handle_bmp(stream TSRMLS_CC); in PHP_FUNCTION()
1349 result = php_handle_tiff(stream, NULL, 0 TSRMLS_CC); in PHP_FUNCTION()
1352 result = php_handle_tiff(stream, NULL, 1 TSRMLS_CC); in PHP_FUNCTION()
1355 result = php_handle_jpc(stream TSRMLS_CC); in PHP_FUNCTION()
1358 result = php_handle_jp2(stream TSRMLS_CC); in PHP_FUNCTION()
1361 result = php_handle_iff(stream TSRMLS_CC); in PHP_FUNCTION()
1364 result = php_handle_wbmp(stream TSRMLS_CC); in PHP_FUNCTION()
1367 result = php_handle_xbm(stream TSRMLS_CC); in PHP_FUNCTION()
1370 result = php_handle_ico(stream TSRMLS_CC); in PHP_FUNCTION()
1379 if (result) { in PHP_FUNCTION()
1381 add_index_long(return_value, 0, result->width); in PHP_FUNCTION()
1382 add_index_long(return_value, 1, result->height); in PHP_FUNCTION()
1384 spprintf(&temp, 0, "width=\"%d\" height=\"%d\"", result->width, result->height); in PHP_FUNCTION()
1387 if (result->bits != 0) { in PHP_FUNCTION()
1388 add_assoc_long(return_value, "bits", result->bits); in PHP_FUNCTION()
1390 if (result->channels != 0) { in PHP_FUNCTION()
1391 add_assoc_long(return_value, "channels", result->channels); in PHP_FUNCTION()
1394 efree(result); in PHP_FUNCTION()