Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/PHP-8.4/ext/gd/libgd/
H A Dgd_rotate.c60 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewX()
61 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewX()
62 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewX()
63 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewX()
151 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewY()
152 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewY()
153 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewY()
154 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewY()
214 dst = gdImageCreateTrueColor(src->sy, src->sx); in gdImageRotate90()
261 dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotate180()
[all …]
H A Dgd_matrix.c30 double x = src->x; in gdAffineApplyToPointF()
60 double r_det = (src[0] * src[3] - src[1] * src[2]); in gdAffineInvert()
71 dst[4] = -src[4] * dst[0] - src[5] * dst[2]; in gdAffineInvert()
72 dst[5] = -src[4] * dst[1] - src[5] * dst[3]; in gdAffineInvert()
95 dst[0] = flip_h ? - src[0] : src[0]; in gdAffineFlip()
96 dst[1] = flip_h ? - src[1] : src[1]; in gdAffineFlip()
97 dst[2] = flip_v ? - src[2] : src[2]; in gdAffineFlip()
98 dst[3] = flip_v ? - src[3] : src[3]; in gdAffineFlip()
99 dst[4] = flip_h ? - src[4] : src[4]; in gdAffineFlip()
100 dst[5] = flip_v ? - src[5] : src[5]; in gdAffineFlip()
[all …]
H A Dgd_filter.c122 if (src==NULL) { in gdImageNegate()
130 pxl = f (src, x, y); in gdImageNegate()
158 if (src==NULL) { in gdImageGrayScale()
243 if (src==NULL) { in gdImageContrast()
299 if (src == NULL) { in gdImageColor()
344 if (src==NULL) { in gdImageConvolution()
349 srcback = gdImageCreateTrueColor (src->sx, src->sy); in gdImageConvolution()
358 gdImageCopy(srcback, src,0,0,0,0,src->sx,src->sy); in gdImageConvolution()
411 if (src==NULL) { in gdImageSelectiveBlur()
416 srcback = gdImageCreateTrueColor (src->sx, src->sy); in gdImageSelectiveBlur()
[all …]
H A Dgd_jpeg.c564 my_src_ptr src = (my_src_ptr) cinfo->src; in init_source() local
570 src->start_of_file = TRUE; in init_source()
611 my_src_ptr src = (my_src_ptr) cinfo->src; in fill_input_buffer() local
620 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer()
643 src->pub.next_input_byte = src->buffer; in fill_input_buffer()
665 my_src_ptr src = (my_src_ptr) cinfo->src; in skip_input_data() local
706 my_src_ptr src = (my_src_ptr) cinfo->src; in term_source()
719 my_src_ptr src; in jpeg_gdIOCtx_src() local
731 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
736 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
[all …]
/PHP-8.4/ext/bcmath/
H A Dconfig.m49 libbcmath/src/add.c
10 libbcmath/src/compare.c
11 libbcmath/src/convert.c
12 libbcmath/src/div.c
13 libbcmath/src/divmod.c
17 libbcmath/src/init.c
20 libbcmath/src/neg.c
23 libbcmath/src/raise.c
28 libbcmath/src/sqrt.c
30 libbcmath/src/sub.c
[all …]
/PHP-8.4/ext/gd/tests/
H A Dbug38179.phpt7 $src = imagecreate(5,5);
8 $c0 = imagecolorallocate($src, 255,255,255);
9 $c1 = imagecolorallocatealpha($src, 255,0,0,70);
11 imagealphablending($src, 0);
12 imagefill($src, 0,0, $c1);
17 imagecopy($dst_tc, $src, 0,0, 0,0, imagesx($src), imagesy($src));
22 imagedestroy($src); imagedestroy($dst_tc);
H A Dbug79068.phpt7 $src = imagecreatetruecolor(100, 100);
8 imagefilledrectangle($src, 0, 0, 99, 99, 0xffffff);
9 imageline($src, 10, 10, 90, 90, 0x000000);
10 imagesetinterpolation($src, IMG_BSPLINE);
11 imageaffine($src, [1, 1, 1, 1, 1, 1]);
12 var_dump(imagegetinterpolation($src) === IMG_BSPLINE);
H A Dbug73281.phpt13 $src = imagecreatetruecolor(100, 100);
14 $white = imagecolorallocate($src, 255, 255, 255);
15 imagefilledrectangle($src, 0,0, 99,99, $white);
16 $dst = imagescale($src, 200, 200, IMG_BILINEAR_FIXED);
23 $src = imagecreate(100, 100);
24 $white = imagecolorallocate($src, 255, 255, 255);
25 imagefilledrectangle($src, 0,0, 99,99, $white);
26 $dst = imagescale($src, 200, 200, IMG_BILINEAR_FIXED);
H A Dbug73272.phpt15 $src = imagecreatetruecolor(100, 100);
16 imagefilledrectangle($src, 0,0, 99,99, 0xFFFFFF);
17 imageellipse($src, 49,49, 40,40, 0x000000);
19 imagesetinterpolation($src, IMG_NEAREST_NEIGHBOUR);
20 imagescale($src, 200, 200, IMG_BILINEAR_FIXED);
21 $dst = imagerotate($src, 60, 0xFFFFFF);
H A Dbug73291.phpt8 $src = imagecreatetruecolor(255, 255);
9 $white = imagecolorallocate($src, 255, 255, 255);
10 imagefilledrectangle($src, 0, 0, 254, 254, $white);
13 $color = imagecolorallocate($src, $i, $i, $i);
14 imagefilledellipse($src, 127, 127, $i, $i, $color);
18 $dst = imagecropauto($src, IMG_CROP_THRESHOLD, $threshold, $white);
H A Dbug79676.phpt15 $src = imagecreatetruecolor($size, $size);
16 imagefilledrectangle($src, 0, 0, $size - 1 , $size - 1, 0xff00ff);
18 test($src, 'No scaling');
19 test(imagescale($src, $size * 2, $size * 2), 'Scale 200%, default mode');
20 test(imagescale($src, $size / 2, $size / 2), 'Scale 50%, default mode');
21 test(imagescale($src, $size * 2, $size * 2, IMG_BICUBIC), 'Scale 200%, IMG_BICUBIC mode');
22 test(imagescale($src, $size / 2, $size / 2, IMG_BICUBIC), 'Scale 50%, IMG_BICUBIC mode');
/PHP-8.4/ext/standard/tests/file/
H A Dstream_copy_to_stream.phpt10 $src = fopen($initial_file, 'r');
15 var_dump(ftell($src));
17 fclose($src); fclose($dest);
29 var_dump(ftell($src));
31 fclose($src); fclose($dest);
46 var_dump(ftell($src));
48 fclose($src); fclose($dest);
63 var_dump(ftell($src));
80 var_dump(ftell($src));
98 var_dump(ftell($src));
[all …]
H A Dstream_copy_to_stream_interleaved.phpt10 $src = fopen($initial_file, 'r');
14 var_dump(fread($src, 10));
16 var_dump(stream_copy_to_stream($src, $dest, 10));
17 var_dump(ftell($src));
19 var_dump(fread($src, 10));
21 var_dump(stream_copy_to_stream($src, $dest, 10));
22 var_dump(ftell($src));
24 fclose($src); fclose($dest);
H A Dbug81145.phpt9 $src = __DIR__ . "/bug81145_src.bin";
11 exec("fallocate -l " . (SIZE_4G-0x100) . " " . escapeshellarg($src), $output, $status);
20 $src = __DIR__ . "/bug81145_src.bin";
26 exec("fallocate -l " . (SIZE_4G-0x100) . " " . escapeshellarg($src));
28 exec("fsutil file createnew " . escapeshellarg($src) . " " . (SIZE_4G-0x100));
30 $fp = fopen($src, "ab");
33 copy($src, $dst);
34 if (filesize($src) !== filesize($dst)) {
37 $f1 = fopen($src,'rb') or die("src open failed");
H A Dgh9779.phpt6 $src = __DIR__.'/gh9779_src.txt';
9 file_put_contents($src, "bar");
11 $sourceHandle = fopen($src, "r");
20 $src = __DIR__.'/gh9779_src.txt';
23 @unlink($src);
H A Dbug38086.phpt10 $src = fopen($initial_file, 'r');
11 stream_filter_append($src, "string.rot13", STREAM_FILTER_READ);
14 var_dump(stream_copy_to_stream($src, $dest));
15 fclose($src); fclose($dest);
24 $src = fopen($initial_file, 'r');
25 stream_filter_append($src, "string.rot13", STREAM_FILTER_READ);
28 var_dump(stream_copy_to_stream($src, $dest, 10000));
29 fclose($src); fclose($dest);
/PHP-8.4/Zend/
H A Dzend_smart_string.h29 smart_string_appendl_ex((str), (src), strlen(src), (what))
30 #define smart_string_appends(str, src) \ argument
31 smart_string_appendl((str), (src), strlen(src))
32 #define smart_string_append_ex(str, src, what) \ argument
34 ((smart_string *)(src))->len, (what));
35 #define smart_string_sets(str, src) \ argument
36 smart_string_setl((str), (src), strlen(src));
42 #define smart_string_appendl(str, src, len) \ argument
44 #define smart_string_append(str, src) \ argument
45 smart_string_append_ex((str), (src), 0)
[all …]
H A Dzend_smart_str.h136 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex()
140 if (src->s && ZSTR_LEN(src->s)) { in smart_str_append_smart_str_ex()
141 smart_str_append_ex(dest, src->s, persistent); in smart_str_append_smart_str_ex()
169 smart_str_appendl_ex(dest, src, length, false); in smart_str_appendl()
173 smart_str_appendl_ex(dest, src, strlen(src), persistent); in smart_str_appends_ex()
177 smart_str_appendl_ex(dest, src, strlen(src), false); in smart_str_appends()
181 smart_str_append_ex(dest, src, false); in smart_str_append()
189 smart_str_append_smart_str_ex(dest, src, false); in smart_str_append_smart_str()
194 smart_str_appendl(dest, src, len); in smart_str_setl()
197 static zend_always_inline void smart_str_sets(smart_str *dest, const char *src) in smart_str_sets() argument
[all …]
/PHP-8.4/main/
H A Dstrlcat.c64 PHPAPI size_t php_strlcat(char *dst, const char *src, size_t siz) in php_strlcat() argument
67 const char *s = src; in php_strlcat()
78 return(dlen + strlen(src)); in php_strlcat()
79 while (*src != '\0') { in php_strlcat()
81 *dst++ = *src; in php_strlcat()
84 src++; in php_strlcat()
88 return(dlen + (src - s)); in php_strlcat()
H A Dstrlcpy.c62 PHPAPI size_t php_strlcpy(char *dst, const char *src, size_t siz) in php_strlcpy() argument
64 const char *s = src; in php_strlcpy()
70 if ((*dst++ = *src++) == 0) in php_strlcpy()
79 while (*src++) in php_strlcpy()
83 return(src - s - 1); in php_strlcpy()
/PHP-8.4/sapi/fpm/fpm/
H A Dfpm_str.h6 static inline char *str_purify_filename(char *dst, char *src, size_t size) /* {{{ */ in str_purify_filename() argument
13 for (; d < end && *src; ++d, ++src) { in str_purify_filename()
14 if (* (unsigned char *) src < ' ' || * (unsigned char *) src > '\x7f') { in str_purify_filename()
17 *d = *src; in str_purify_filename()
/PHP-8.4/Zend/Optimizer/
H A Dblock_pass.c155 if (src && in zend_optimize_block()
194 if (src && in zend_optimize_block()
219 if (src && in zend_optimize_block()
279 if (src) { in zend_optimize_block()
481 if (src) { in zend_optimize_block()
541 src->op1_type = src->op2_type; in zend_optimize_block()
544 src->op1.num = src->op2.num; in zend_optimize_block()
559 src->op1_type = src->op2_type; in zend_optimize_block()
562 src->op1.num = src->op2.num; in zend_optimize_block()
729 if (src && in zend_optimize_block()
[all …]
/PHP-8.4/ext/standard/
H A Duuencode.c64 PHPAPI zend_string *php_uuencode(const char *src, size_t src_len) /* {{{ */ in php_uuencode() argument
76 s = (unsigned char *) src; in php_uuencode()
129 PHPAPI zend_string *php_uudecode(const char *src, size_t src_len) /* {{{ */ in php_uudecode() argument
142 s = src; in php_uudecode()
143 e = src + src_len; in php_uudecode()
206 zend_string *src; in PHP_FUNCTION() local
209 Z_PARAM_STR(src) in PHP_FUNCTION()
212 RETURN_STR(php_uuencode(ZSTR_VAL(src), ZSTR_LEN(src))); in PHP_FUNCTION()
219 zend_string *src; in PHP_FUNCTION() local
223 Z_PARAM_STR(src) in PHP_FUNCTION()
[all …]
/PHP-8.4/ext/filter/tests/
H A D050.phpt13 foreach ($test as $src => $dst) {
14 $out = filter_var($src, FILTER_VALIDATE_FLOAT);
17 echo "$src -> false != $dst\n";
19 echo "$src -> $out != false\n";
21 echo "$src -> $out != $dst\n";
H A D049.phpt18 foreach ($test as $src => $dst) {
19 $out = filter_var($src, FILTER_VALIDATE_FLOAT, array("flags"=>FILTER_FLAG_ALLOW_THOUSAND));
22 echo "$src -> false != $dst\n";
24 echo "$src -> $out != false\n";
26 echo "$src -> $out != $dst\n";

Completed in 48 milliseconds

12345678910>>...12