Searched refs:width (Results 1 - 25 of 27) sorted by relevance

12

/PHP_TRUNK/ext/gd/libgd/
H A Dgd_wbmp.c139 if (!(im = gdImageCreate (wbmp->width, wbmp->height))) {
152 for (col = 0; col < wbmp->width; col++) {
H A Dwbmp.c111 createwbmp (int width, int height, int color) argument
119 if (overflow2(sizeof (int), width)) {
123 if (overflow2(sizeof (int) * width, height)) {
128 if ((wbmp->bitmap = (int *) safe_emalloc(sizeof(int), width * height, 0)) == NULL)
134 wbmp->width = width;
137 for (i = 0; i < width * height; wbmp->bitmap[i++] = color);
170 wbmp->width = getmbi (getin, in);
171 if (wbmp->width == -1)
185 printf ("W: %d, H: %d\n", wbmp->width, wbm
[all...]
H A Dwbmp.h30 int width; /* width of the image */ member in struct:Wbmp_
46 Wbmp *createwbmp( int width, int height, int color );
H A Dgd_png.c123 png_uint_32 width, height, rowbytes, w, h; local
193 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, &interlace_type, NULL, NULL);
196 im = gdImageCreateTrueColor((int) width, (int) height);
198 im = gdImageCreate((int) width, (int) height);
362 for (w = 0; w < width; w++) {
375 for (w = 0; w < width; w++) {
394 for (w = 0; w < width; ++w) {
467 int width = im->sx; local
574 png_set_IHDR(png_ptr, info_ptr, width, height, 8, PNG_COLOR_TYPE_RGB_ALPHA, interlace_type,
577 png_set_IHDR(png_ptr, info_ptr, width, heigh
[all...]
H A Dgd_arc_f_buggy.c13 static gdPoint gdArcClosest (int width, int height, int angle);
16 gdImageFilledEllipse (gdImagePtr im, int cx, int cy, int width, int height, int color)
18 gdImageFilledArc (im, cx, cy, width, height, 0, 360, color, gdChord);
22 gdImageFilledArc (gdImagePtr im, int cx, int cy, int width, int height, int s, int e, int color, int style)
66 width = (width & 1) ? (width + 1) : (width);
69 a = width / 2;
110 gdImageFilledArc (im, cx, cy, width, heigh
[all...]
H A Dgd.h290 /* Character width and height */
311 * width - Rectangle width
323 int width, height; member in struct:__anon69
429 /* Corners specified (not width and height). Upper left first, lower right
844 gdImagePtr gdImageScaleBicubicFixed(gdImagePtr src, const unsigned int width, const unsigned int height);
845 gdImagePtr gdImageScaleNearestNeighbour(gdImagePtr im, const unsigned int width, const unsigned int height);
890 #define GD_CMP_SIZE_X 8 /* Image width differs */
H A Dgd_gif_in.c188 int width, height; local
220 width = LM_to_uint(buf[4], buf[5]);
223 if (left + width > screen_width || top + height > screen_height) {
230 if (!(im = gdImageCreate(width, height))) {
239 ReadImage(im, fd, width, height, localColorMap,
246 ReadImage(im, fd, width, height,
H A Dgd_topal.c358 JDIMENSION width = cinfo->output_width; local
360 int width = oim->sx; local
367 for (col = width; col > 0; col--)
1290 int width = oim->sx; local
1299 JDIMENSION width = cinfo->output_width;
1312 for (col = width; col > 0; col--)
1387 JDIMENSION width = cinfo->output_width; local
1395 int width = oim->sx; local
1411 inptr += (width - 1) * 3; /* so point to rightmost pixel */
1412 outptr += width
[all...]
H A Dgdft.c648 for (col = 0; col < bitmap.width; col++, pc++) {
708 for (col = 0; col < bitmap.width; col++, pc++) {
1053 * use "JIS-8 half-width katakana" coding from 8-bit characters. Ref:
H A Dxbm.c39 unsigned int width = 0, height = 0; local
63 if (!strcmp("width", type)) {
64 width = (unsigned int) value;
80 bytes = (width * height / 8) + 1;
99 if(!(im = gdImageCreate(width, height))) {
236 * tab-width: 4
H A Dgdxpm.c41 if (!(im = gdImageCreate(image.width, image.height))) {
127 for (j = 0; j < image.width; j++) {
H A Dgd_crop.c50 dst = gdImageCreateTrueColor(crop->width, crop->height);
56 dst = gdImageCreate(crop->width, crop->height);
70 if ((src->sx - crop->width) < crop->x) {
71 crop->width = src->sx - crop->x;
78 printf("rect->x: %i\nrect->y: %i\nrect->width: %i\nrect->height: %i\n", crop->x, crop->y, crop->width, crop->height);
85 memcpy(dst->tpixels[dst_y++], src->tpixels[y++] + crop->x, crop->width * 4);
90 for (x = crop->x; x < (crop->x + crop->width); x++) {
116 const int width = gdImageSX(im); local
125 crop.width
229 const int width = gdImageSX(im); local
[all...]
H A Dgd_interpolation.c994 /* same width, just copy it */
1109 gdImagePtr gdImageScaleNearestNeighbour(gdImagePtr im, const unsigned int width, const unsigned int height) argument
1111 const unsigned long new_width = MAX(1, width);
1396 gdImagePtr gdImageScaleBicubicFixed(gdImagePtr src, const unsigned int width, const unsigned int height) argument
1398 const long new_width = MAX(1, width);
2229 x1 = r->x + r->width - 1;
2233 r->width = CLAMP(x1, c1x, c2x) - r->x + 1;
2239 printf("%s (%i, %i) (%i, %i)\n", msg, r->x, r->y, r->width, r->height);
2271 area_full.width = gdImageSX(src);
2278 *dst = gdImageCreateTrueColor(bbox.width, bbo
[all...]
H A Dgd_webp.c37 int width, height; local
65 if (WebPGetInfo(filedata,size, &width, &height) == 0) {
71 im = gdImageCreateTrueColor(width, height);
76 argb = WebPDecodeARGB(filedata, size, &width, &height);
84 for (x = 0; x < width; x++) {
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.c1820 int width; member in struct:collector_strimwidth_data
1840 if (pc->outwidth > pc->width) {
1865 int width)
1878 mbfl_memory_device_init(&pc.device, width, 0);
1905 pc.width = width - mkwidth;
1923 pc.width += mkwidth;
3109 * tab-width: 4
1860 mbfl_strimwidth( mbfl_string *string, mbfl_string *marker, mbfl_string *result, int from, int width) argument
H A Dmbfilter.h225 mbfl_strimwidth(mbfl_string *string, mbfl_string *marker, mbfl_string *result, int from, int width);
/PHP_TRUNK/ext/standard/
H A Dscanf.c89 #define SCAN_WIDTH 0x8 /* A width value was supplied. */
402 * Parse any width specifier.
442 /* a character width specification, to be more consistent with */
447 php_error_docref(NULL, E_WARNING, "Field width may not be specified in %c conversion");
591 size_t width; local
719 * Parse any width specifier.
722 width = ZEND_STRTOUL(format-1, &format, 10);
725 width = 0;
798 if (0 == width) {
799 width
[all...]
H A Dformatted_print.c90 zend_error_noreturn(E_ERROR, "Field width %d is too long", m_width);
99 zend_error_noreturn(E_ERROR, "Field width %zd is too long", req_size);
131 size_t width, char padding, size_t alignment,
139 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment));
166 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0,
176 size_t width, char padding, size_t alignment)
183 *buffer, pos, &ZSTR_LEN(*buffer), number, width, padding, alignment));
199 php_sprintf_appendstring(buffer, pos, &numbuf[i], width, 0,
208 size_t width, char padding,
227 *buffer, pos, &ZSTR_LEN(*buffer), number, width, paddin
130 php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, size_t width, char padding, size_t alignment, int always_sign) argument
174 php_sprintf_appenduint(zend_string **buffer, size_t *pos, zend_ulong number, size_t width, char padding, size_t alignment) argument
206 php_sprintf_appenddouble(zend_string **buffer, size_t *pos, double number, size_t width, char padding, size_t alignment, int precision, int adjust, char fmt, int always_sign ) argument
310 php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number, size_t width, char padding, size_t alignment, int n, char *chartable, int expprec) argument
392 int alignment, currarg, adjusting, argnum, width, precision; local
[all...]
H A Dimage.c65 unsigned int width; member in struct:gfxinfo
115 result->width = (unsigned int)dim[0] | (((unsigned int)dim[1])<<8);
139 result->width = (((unsigned int)dim[4]) << 24) + (((unsigned int)dim[5]) << 16) + (((unsigned int)dim[6]) << 8) + ((unsigned int)dim[7]);
162 result->width = (((unsigned int)dim[ 5]) << 8) + ((unsigned int) dim[ 4]);
167 result->width = (((unsigned int)dim[ 7]) << 24) + (((unsigned int)dim[ 6]) << 16) + (((unsigned int)dim[ 5]) << 8) + ((unsigned int) dim[ 4]);
255 result->width = (php_swf_get_bits (b, 5 + bits, bits) -
285 result->width = (php_swf_get_bits (a, 5 + bits, bits) -
317 result->width = (((unsigned int)dim[0]) << 24) + (((unsigned int)dim[1]) << 16) + (((unsigned int)dim[2]) << 8) + ((unsigned int)dim[3]);
504 result->width = php_read2(stream);
631 result->width
807 size_t ifd_size, dir_size, entry_value, width=0, height=0, ifd_addr; local
889 short width, height, bits; local
946 int i, width = 0, height = 0; local
1027 unsigned int width = 0, height = 0; local
[all...]
/PHP_TRUNK/main/
H A Dsnprintf.c569 #define PAD( width, len, ch ) do \
572 width-- ; \
574 while ( width > len )
652 * Try to avoid checking for flags, width or precision
674 * Check if a width was specified
1178 * unknown <char> could be preceded by width etc.
1346 * tab-width: 4
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c339 ZEND_ARG_INFO(0, width)
2909 Gets terminal width of a string */
2943 /* {{{ proto string mb_strimwidth(string str, int start, int width [, string trimmarker [, string encoding]])
2944 Trim the string in terminal width */
2948 zend_long from, width; local
2952 if (zend_parse_parameters(ZEND_NUM_ARGS(), "sll|ss", &str, &str_len, &from, &width, &trimmarker, &trimmarker_len, &encoding, &encoding_len) == FAILURE) {
2981 if (width < 0) {
2991 ret = mbfl_strimwidth(&string, &marker, &result, from, width);
3445 Conversion between full-width character and half-width characte
[all...]
/PHP_TRUNK/ext/gd/tests/
H A Dsimilarity.inc54 // assumes image1 and image2 have same width and height
/PHP_TRUNK/ext/gd/
H A Dgd.c349 ZEND_ARG_INFO(0, width)
1345 * byte 8-11: (int) pixel width of each character
1349 * (nchars*width*height) bytes.
2294 zend_long srcx, srcy, width, height; local
2303 if (zend_parse_parameters(ZEND_NUM_ARGS(), "pllll", &file, &file_len, &srcx, &srcy, &width, &height) == FAILURE) {
2306 if (width < 1 || height < 1) {
2307 php_error_docref(NULL, E_WARNING, "Zero width or height not allowed");
2351 im = (*ioctx_func_p)(io_ctx, srcx, srcy, width, height);
2369 im = (*func_p)(fp, srcx, srcy, width, height);
2487 /* {{{ proto resource imagecreatefromgd2part(string filename, int srcX, int srcY, int width, in
3993 zend_long height, width, threshold; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_out.c103 #define PAD( width, len, ch ) do \
106 width-- ; \
108 while ( width > len )
192 * Try to avoid checking for flags, width or precision
214 * Check if a width was specified
767 * unknown <char> could be preceded by width etc.
/PHP_TRUNK/ext/exif/
H A Dexif.c108 ZEND_ARG_INFO(1, width)
1488 size_t width, height; member in struct:__anon9
1582 size_t width; member in struct:__anon13
2247 result->width = php_jpg_get16(Data+5);
2907 ImageInfo->Thumbnail.width = exif_convert_any_to_int(value_ptr, format, ImageInfo->motorola_intel);
3209 /* Compute the CCD width, in milimeters. */
3400 ImageInfo->Width = sof_info.width;
3436 if (!ImageInfo->Thumbnail.width && !ImageInfo->Thumbnail.height) {
3484 ImageInfo->Thumbnail.width = sof_info.width;
[all...]

Completed in 63 milliseconds

12