Home
last modified time | relevance | path

Searched refs:xsize (Results 1 – 25 of 41) sorted by relevance

12

/third_party/cups-filters/cupsfilters/
Dimage-sgi.c69 if (sgip->xsize == 0 || sgip->ysize == 0 || in _cupsImageReadSGI()
73 sgip->xsize, sgip->ysize, sgip->zsize); in _cupsImageReadSGI()
83 img->xsize = sgip->xsize; in _cupsImageReadSGI()
90 if ((in = malloc(img->xsize * sgip->zsize)) == NULL) in _cupsImageReadSGI()
97 if ((out = malloc(img->xsize * bpp)) == NULL) in _cupsImageReadSGI()
105 if ((rows[0] = calloc(img->xsize * sgip->zsize, in _cupsImageReadSGI()
116 rows[i] = rows[0] + i * img->xsize; in _cupsImageReadSGI()
131 for (i = img->xsize - 1, gray = rows[0], inptr = in; in _cupsImageReadSGI()
138 for (i = img->xsize - 1, gray = rows[0], inptr = in; in _cupsImageReadSGI()
147 for (i = img->xsize - 1, gray = rows[0], alpha = rows[1], inptr = in; in _cupsImageReadSGI()
[all …]
Dimage-pnm.c78 while (lineptr != NULL && img->xsize == 0) in _cupsImageReadPNM()
84 img->xsize = atoi(lineptr); in _cupsImageReadPNM()
127 if (img->xsize == 0 || img->xsize > CUPS_IMAGE_MAX_WIDTH || in _cupsImageReadPNM()
131 img->xsize, img->ysize); in _cupsImageReadPNM()
152 if ((in = malloc(img->xsize * 3)) == NULL) in _cupsImageReadPNM()
159 if ((out = malloc(img->xsize * bpp)) == NULL) in _cupsImageReadPNM()
176 for (x = img->xsize, inptr = in; x > 0; x --, inptr ++) in _cupsImageReadPNM()
182 for (x = img->xsize, inptr = in; x > 0; x --, inptr ++) in _cupsImageReadPNM()
188 for (x = img->xsize, inptr = in; x > 0; x --, inptr += 3) in _cupsImageReadPNM()
200 if (fread(out, (img->xsize + 7) / 8, 1, fp) == 0 && ferror(fp)) in _cupsImageReadPNM()
[all …]
Dimage-jpeg.c135 img->xsize = cinfo.output_width; in _cupsImageReadJPEG()
173 img->xsize, img->ysize, cinfo.output_components, in _cupsImageReadJPEG()
178 in = malloc(img->xsize * cinfo.output_components); in _cupsImageReadJPEG()
179 out = malloc(img->xsize * cupsImageGetDepth(img)); in _cupsImageReadJPEG()
197 for (ptr = in, i = img->xsize * 4; i > 0; i --, ptr ++) in _cupsImageReadJPEG()
202 cupsImageRGBAdjust(in, img->xsize, saturation, hue); in _cupsImageReadJPEG()
216 for (i = 0, ptr = in; i < img->xsize; i ++) in _cupsImageReadJPEG()
227 cupsImageLut(in, img->xsize * cupsImageGetDepth(img), lut); in _cupsImageReadJPEG()
229 _cupsImagePutRow(img, 0, cinfo.output_scanline - 1, img->xsize, in); in _cupsImageReadJPEG()
239 cupsImageWhiteToBlack(in, out, img->xsize); in _cupsImageReadJPEG()
[all …]
Dimage-sun.c100 img->xsize = read_unsigned(fp); in _cupsImageReadSunRaster()
109 img->xsize, img->ysize, ras_depth, ras_type, ras_maplength); in _cupsImageReadSunRaster()
112 img->xsize == 0 || img->xsize > CUPS_IMAGE_MAX_WIDTH || in _cupsImageReadSunRaster()
139 scanwidth = (img->xsize * ras_depth + 7) / 8; in _cupsImageReadSunRaster()
146 in = malloc(img->xsize + 1); in _cupsImageReadSunRaster()
151 in = malloc(img->xsize * 3 + 1); in _cupsImageReadSunRaster()
163 if ((out = malloc(img->xsize * bpp)) == NULL) in _cupsImageReadSunRaster()
230 for (x = img->xsize, bit = 128, scanptr = scanline, p = in; in _cupsImageReadSunRaster()
254 for (x = img->xsize, bit = 128, scanptr = scanline, p = in; in _cupsImageReadSunRaster()
286 for (x = img->xsize, scanptr = scanline, p = in; in _cupsImageReadSunRaster()
[all …]
Dimage-sgilib.c132 offset = 512 + (y + z * sgip->ysize) * sgip->xsize * sgip->bpp; in sgiGetRow()
138 for (x = sgip->xsize; x > 0; x --, row ++) in sgiGetRow()
143 for (x = sgip->xsize; x > 0; x --, row ++) in sgiGetRow()
154 return (read_rle8(sgip->file, row, sgip->xsize)); in sgiGetRow()
156 return (read_rle16(sgip->file, row, sgip->xsize)); in sgiGetRow()
172 int xsize, /* I - Width of image in pixels */ in sgiOpen() argument
188 if ((sgip = sgiOpenFile(file, mode, comp, bpp, xsize, ysize, zsize)) == NULL) in sgiOpen()
204 int xsize, /* I - Width of image in pixels */ in sgiOpenFile() argument
234 sgip->xsize = getshort(sgip->file); in sgiOpenFile()
272 if (xsize < 1 || in sgiOpenFile()
[all …]
Dimage-png.c115 img->xsize = width; in _cupsImageReadPNG()
172 in = malloc(img->xsize); in _cupsImageReadPNG()
174 in = malloc(img->xsize * 3); in _cupsImageReadPNG()
188 bufsize = img->xsize * img->ysize; in _cupsImageReadPNG()
190 if ((bufsize / img->xsize) != img->ysize) in _cupsImageReadPNG()
200 bufsize = img->xsize * img->ysize * 3; in _cupsImageReadPNG()
202 if ((bufsize / (img->xsize * 3)) != img->ysize) in _cupsImageReadPNG()
215 out = malloc(img->xsize * bpp); in _cupsImageReadPNG()
250 cupsImageRGBAdjust(inptr, img->xsize, saturation, hue); in _cupsImageReadPNG()
255 cupsImageRGBToWhite(inptr, out, img->xsize); in _cupsImageReadPNG()
[all …]
Dimage-pix.c88 img->xsize = width; in _cupsImageReadPIX()
95 if ((in = malloc(img->xsize * (depth / 8))) == NULL) in _cupsImageReadPIX()
102 if ((out = malloc(img->xsize * bpp)) == NULL) in _cupsImageReadPIX()
123 for (x = img->xsize; x > 0; x --, count --) in _cupsImageReadPIX()
138 cupsImageWhiteToRGB(in, out, img->xsize); in _cupsImageReadPIX()
141 cupsImageWhiteToBlack(in, out, img->xsize); in _cupsImageReadPIX()
144 cupsImageWhiteToCMY(in, out, img->xsize); in _cupsImageReadPIX()
147 cupsImageWhiteToCMYK(in, out, img->xsize); in _cupsImageReadPIX()
152 cupsImageLut(out, img->xsize * bpp, lut); in _cupsImageReadPIX()
154 _cupsImagePutRow(img, 0, y, img->xsize, out); in _cupsImageReadPIX()
[all …]
Dimage-bmp.c109 img->xsize = read_long(fp); in _cupsImageReadBMP()
120 if (img->xsize == 0 || img->xsize > CUPS_IMAGE_MAX_WIDTH || in _cupsImageReadBMP()
125 img->xsize, img->ysize, depth); in _cupsImageReadBMP()
149 info_size, img->xsize, img->ysize, planes, depth); in _cupsImageReadBMP()
182 if ((in = malloc(img->xsize * 3)) == NULL) in _cupsImageReadBMP()
189 if ((out = malloc(img->xsize * bpp)) == NULL) in _cupsImageReadBMP()
212 for (x = img->xsize, bit = 128, byte = 0; x > 0; x --) in _cupsImageReadBMP()
240 for (temp = (img->xsize + 7) / 8; temp & 3; temp ++) in _cupsImageReadBMP()
245 for (x = img->xsize, bit = 0xf0, temp = 0; x > 0; x --) in _cupsImageReadBMP()
290 count = getc(fp) * getc(fp) * img->xsize; in _cupsImageReadBMP()
[all …]
Dimage-tiff.c219 img->xsize = width; in _cupsImageReadTIFF()
274 xstart = img->xsize - 1; in _cupsImageReadTIFF()
296 xstart = img->xsize - 1; in _cupsImageReadTIFF()
321 in = malloc(img->xsize * 3 + 3); in _cupsImageReadTIFF()
322 out = malloc(img->xsize * bpp); in _cupsImageReadTIFF()
372 for (xcount = img->xsize, scanptr = scanline, p = in + xstart, bit = 128; in _cupsImageReadTIFF()
393 for (xcount = img->xsize, scanptr = scanline, p = in + xstart, bit = 0xc0; in _cupsImageReadTIFF()
414 for (xcount = img->xsize, scanptr = scanline, p = in + xstart, bit = 0xf0; in _cupsImageReadTIFF()
439 for (xcount = img->xsize, p = in + xstart, scanptr = scanline; in _cupsImageReadTIFF()
447 for (xcount = img->xsize, p = in + xstart, scanptr = scanline; in _cupsImageReadTIFF()
[all …]
Dimage-zoom.c85 int xsize, /* I - Final width of image */ in _cupsImageZoomNew() argument
94 if (xsize > CUPS_IMAGE_MAX_WIDTH || in _cupsImageZoomNew()
109 if (xsize < 0) in _cupsImageZoomNew()
112 xsize = -xsize; in _cupsImageZoomNew()
125 z->xsize = xsize; in _cupsImageZoomNew()
127 z->xmod = z->width % z->xsize; in _cupsImageZoomNew()
128 z->xstep = z->width / z->xsize; in _cupsImageZoomNew()
141 if (z->height < img->xsize) in _cupsImageZoomNew()
152 z->xsize = xsize; in _cupsImageZoomNew()
154 z->xmod = z->width % z->xsize; in _cupsImageZoomNew()
[all …]
Dimage.c127 if (img == NULL || x < 0 || x >= img->xsize || y >= img->ysize) in cupsImageGetCol()
227 if (img == NULL || y < 0 || y >= img->ysize || x >= img->xsize) in cupsImageGetRow()
236 if ((x + width) > img->xsize) in cupsImageGetRow()
237 width = img->xsize - x; in cupsImageGetRow()
271 return (img->xsize); in cupsImageGetWidth()
437 if (img == NULL || x < 0 || x >= img->xsize || y >= img->ysize) in _cupsImagePutCol()
511 if (img == NULL || y < 0 || y >= img->ysize || x >= img->xsize) in _cupsImagePutRow()
520 if ((x + width) > img->xsize) in _cupsImagePutRow()
521 width = img->xsize - x; in _cupsImagePutRow()
573 1 + max((img->xsize + CUPS_TILE_SIZE - 1) / CUPS_TILE_SIZE, in cupsImageSetMaxTiles()
[all …]
Dimage-sgi.h49 unsigned short xsize, /* Width in pixels */ member
69 int xsize, int ysize, int zsize);
71 int xsize, int ysize, int zsize);
Dimage-gif.c98 img->xsize = (buf[7] << 8) | buf[6]; in _cupsImageReadGIF()
234 img->xsize = (buf[5] << 8) | buf[4]; in _cupsImageReadGIF()
242 if (img->xsize == 0 || img->ysize == 0) in _cupsImageReadGIF()
245 img->xsize, img->ysize); in _cupsImageReadGIF()
462 pixels = calloc(bpp, img->xsize); in gif_read_image()
494 if (xpos == img->xsize) in gif_read_image()
496 int res = _cupsImagePutRow(img, 0, ypos, img->xsize, pixels); in gif_read_image()
Dimage-private.h99 unsigned xsize, /* Width of image in pixels */ member
122 xsize, /* Width of output image */ member
206 int xc1, int yc1, int xsize,
/third_party/skia/third_party/externals/libwebp/src/enc/
Dnear_lossless_enc.c74 static void NearLossless(int xsize, int ysize, const uint32_t* argb_src, in NearLossless() argument
80 uint32_t* curr_row = prev_row + xsize; in NearLossless()
81 uint32_t* next_row = curr_row + xsize; in NearLossless()
82 memcpy(curr_row, argb_src, xsize * sizeof(argb_src[0])); in NearLossless()
83 memcpy(next_row, argb_src + stride, xsize * sizeof(argb_src[0])); in NearLossless()
85 for (y = 0; y < ysize; ++y, argb_src += stride, argb_dst += xsize) { in NearLossless()
87 memcpy(argb_dst, argb_src, xsize * sizeof(argb_src[0])); in NearLossless()
89 memcpy(next_row, argb_src + stride, xsize * sizeof(argb_src[0])); in NearLossless()
91 argb_dst[xsize - 1] = argb_src[xsize - 1]; in NearLossless()
92 for (x = 1; x < xsize - 1; ++x) { in NearLossless()
[all …]
Dbackward_references_enc.c49 extern int VP8LDistanceToPlaneCode(int xsize, int dist);
50 int VP8LDistanceToPlaneCode(int xsize, int dist) { in VP8LDistanceToPlaneCode() argument
51 const int yoffset = dist / xsize; in VP8LDistanceToPlaneCode()
52 const int xoffset = dist - yoffset * xsize; in VP8LDistanceToPlaneCode()
55 } else if (xoffset > xsize - 8 && yoffset < 7) { in VP8LDistanceToPlaneCode()
56 return plane_to_code_lut[(yoffset + 1) * 16 + 8 + (xsize - xoffset)] + 1; in VP8LDistanceToPlaneCode()
243 static int GetWindowSizeForHashChain(int quality, int xsize) { in GetWindowSizeForHashChain() argument
245 : (quality > 50) ? (xsize << 8) in GetWindowSizeForHashChain()
246 : (quality > 25) ? (xsize << 6) in GetWindowSizeForHashChain()
247 : (xsize << 4); in GetWindowSizeForHashChain()
[all …]
Dbackward_references_cost_enc.c28 extern int VP8LDistanceToPlaneCode(int xsize, int dist);
61 static int CostModelBuild(CostModel* const m, int xsize, int cache_bits, in CostModelBuild() argument
73 xsize); in CostModelBuild()
564 int xsize, int ysize, const uint32_t* const argb, int cache_bits, in BackwardReferencesHashChainDistanceOnly() argument
570 const int pix_count = xsize * ysize; in BackwardReferencesHashChainDistanceOnly()
594 if (!CostModelBuild(cost_model, xsize, cache_bits, refs)) { in BackwardReferencesHashChainDistanceOnly()
622 const int code = VP8LDistanceToPlaneCode(xsize, offset); in BackwardReferencesHashChainDistanceOnly()
758 int xsize, int ysize, const uint32_t* const argb, int cache_bits,
761 int VP8LBackwardReferencesTraceBackwards(int xsize, int ysize, in VP8LBackwardReferencesTraceBackwards() argument
768 const int dist_array_size = xsize * ysize; in VP8LBackwardReferencesTraceBackwards()
[all …]
Dpredictor_enc.c679 int quality, int xsize, int ysize, in GetBestColorTransformForTile() argument
686 const int all_x_max = GetMin(tile_x_offset + max_tile_size, xsize); in GetBestColorTransformForTile()
690 const uint32_t* const tile_argb = argb + tile_y_offset * xsize in GetBestColorTransformForTile()
695 GetBestGreenToRed(tile_argb, xsize, tile_width, tile_height, in GetBestColorTransformForTile()
697 GetBestGreenRedToBlue(tile_argb, xsize, tile_width, tile_height, in GetBestColorTransformForTile()
703 static void CopyTileWithColorTransform(int xsize, int ysize, in CopyTileWithColorTransform() argument
708 const int xscan = GetMin(max_tile_size, xsize - tile_x); in CopyTileWithColorTransform()
710 argb += tile_y * xsize + tile_x; in CopyTileWithColorTransform()
713 argb += xsize; in CopyTileWithColorTransform()
/third_party/cups-filters/filter/
Dimagetoraster.c115 static void format_CMY(cups_page_header2_t *header, unsigned char *row, int y, int z, int xsize, in…
116 static void format_CMYK(cups_page_header2_t *header, unsigned char *row, int y, int z, int xsize, i…
117 static void format_K(cups_page_header2_t *header, unsigned char *row, int y, int z, int xsize, int …
118 static void format_KCMYcm(cups_page_header2_t *header, unsigned char *row, int y, int z, int xsize,…
119 static void format_KCMY(cups_page_header2_t *header, unsigned char *row, int y, int z, int xsize, i…
121 static void format_RGBA(cups_page_header2_t *header, unsigned char *row, int y, int z, int xsize, i…
122 static void format_W(cups_page_header2_t *header, unsigned char *row, int y, int z, int xsize, int …
123 static void format_YMC(cups_page_header2_t *header, unsigned char *row, int y, int z, int xsize, in…
124 static void format_YMCK(cups_page_header2_t *header, unsigned char *row, int y, int z, int xsize, i…
143 float xsize, /* Total size in points */ in main() local
[all …]
/third_party/ffmpeg/libavcodec/
Dexr.c136 int ysize, xsize; member
645 wav_decode(ptr + j, td->xsize, pixel_half_size, td->ysize, in piz_uncompress()
646 td->xsize * pixel_half_size, maxval); in piz_uncompress()
647 ptr += td->xsize * td->ysize * pixel_half_size; in piz_uncompress()
662 in = tmp + tmp_offset * td->xsize * td->ysize + i * td->xsize * pixel_half_size; in piz_uncompress()
666 s->bbdsp.bswap16_buf(out, in, td->xsize * pixel_half_size); in piz_uncompress()
668 memcpy(out, in, td->xsize * 2 * pixel_half_size); in piz_uncompress()
670 out += td->xsize * pixel_half_size; in piz_uncompress()
688 … expected_len += (td->xsize * td->ysize * 3);/* PRX 24 store float in 24 bit instead of 32 */ in pxr24_uncompress()
690 expected_len += (td->xsize * td->ysize * 2); in pxr24_uncompress()
[all …]
/third_party/skia/third_party/externals/freetype/src/pfr/
Dpfrsbit.c413 FT_UInt xsize, ysize; in pfr_load_bitmap_metrics() local
421 xsize = 0; in pfr_load_bitmap_metrics()
461 xsize = 0; in pfr_load_bitmap_metrics()
468 xsize = ( b >> 4 ) & 0xF; in pfr_load_bitmap_metrics()
474 xsize = PFR_NEXT_BYTE( p ); in pfr_load_bitmap_metrics()
480 xsize = PFR_NEXT_USHORT( p ); in pfr_load_bitmap_metrics()
516 *axsize = xsize; in pfr_load_bitmap_metrics()
657 FT_UInt xsize = 0, ysize = 0, format = 0; in pfr_slot_load_bitmap() local
684 &xsize, &ysize, in pfr_slot_load_bitmap()
713 if ( ( (FT_ULong)xsize * ysize + 7 ) / 8 > gps_size ) in pfr_slot_load_bitmap()
[all …]
/third_party/astc-encoder/Source/
Dastcenc_image.cpp161 unsigned int xsize = img.dim_x; in fetch_image_block() local
222 unsigned int xi = astc::min(xpos + x, xsize - 1); in fetch_image_block()
224 vfloat4 datav = loader(plane, (4 * xsize * yi) + (4 * xi)); in fetch_image_block()
281 unsigned int xsize = img.dim_x; in fetch_image_block_fast_ldr() local
301 unsigned int xi = astc::min(x, xsize - 1); in fetch_image_block_fast_ldr()
344 unsigned int xsize = img.dim_x; in write_image_block() local
349 unsigned int x_end = std::min(xsize, xpos + bsd.xdim); in write_image_block()
419 store_nbytes(colori, data8 + (4 * xsize * y) + (4 * x )); in write_image_block()
470 data16[(4 * xsize * y) + (4 * x )] = static_cast<uint16_t>(color.lane<0>()); in write_image_block()
471 data16[(4 * xsize * y) + (4 * x + 1)] = static_cast<uint16_t>(color.lane<1>()); in write_image_block()
[all …]
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap25.c54 unsigned long xsize = size + align - getpagesize(); in map_align() local
58 p = SAFE_MMAP(NULL, xsize, PROT_READ|PROT_WRITE, in map_align()
67 t = p + xsize - (q + size); in map_align()
/third_party/ffmpeg/doc/examples/
Ddecode_video.c38 static void pgm_save(unsigned char *buf, int wrap, int xsize, int ysize, in pgm_save() argument
45 fprintf(f, "P5\n%d %d\n%d\n", xsize, ysize, 255); in pgm_save()
47 fwrite(buf + i * wrap, 1, xsize, f); in pgm_save()
/third_party/ntfs-3g/ntfsprogs/
Dplaylog.c974 u32 xsize; in change_index_value() local
985 xsize = vol->indx_record_size; in change_index_value()
1000 buffer, xsize); in change_index_value()
1489 u32 xsize; in update_index() local
1499 xsize = vol->indx_record_size; in update_index()
1508 && ((target + length) <= xsize)) { in update_index()
1520 buffer, xsize); in update_index()
1612 u32 xsize; in insert_index_allocation() local
1666 xsize = vol->indx_record_size; in insert_index_allocation()
1667 attr->allocated_size = cpu_to_sle64(xsize); in insert_index_allocation()
[all …]

12