/external/ImageMagick/MagickCore/ |
D | quantum-private.h | 70 **pixels; member 176 unsigned char *pixels) in PopCharPixel() argument 178 *pixels++=pixel; in PopCharPixel() 179 return(pixels); in PopCharPixel() 183 const unsigned int pixel,unsigned char *pixels) in PopLongPixel() argument 191 *pixels++=(unsigned char) (quantum); in PopLongPixel() 192 *pixels++=(unsigned char) (quantum >> 8); in PopLongPixel() 193 *pixels++=(unsigned char) (quantum >> 16); in PopLongPixel() 194 *pixels++=(unsigned char) (quantum >> 24); in PopLongPixel() 195 return(pixels); in PopLongPixel() [all …]
|
D | pixel.c | 511 const char *magick_restrict map,const QuantumType *quantum_map,void *pixels, in ExportCharPixel() argument 529 q=(unsigned char *) pixels; in ExportCharPixel() 717 const char *magick_restrict map,const QuantumType *quantum_map,void *pixels, in ExportDoublePixel() argument 735 q=(double *) pixels; in ExportDoublePixel() 924 const char *magick_restrict map,const QuantumType *quantum_map,void *pixels, in ExportFloatPixel() argument 942 q=(float *) pixels; in ExportFloatPixel() 1130 const char *magick_restrict map,const QuantumType *quantum_map,void *pixels, in ExportLongPixel() argument 1148 q=(unsigned int *) pixels; in ExportLongPixel() 1336 const char *magick_restrict map,const QuantumType *quantum_map,void *pixels, in ExportLongLongPixel() argument 1354 q=(MagickSizeType *) pixels; in ExportLongLongPixel() [all …]
|
D | quantum.c | 166 quantum_info->pixels=(unsigned char **) AcquireQuantumMemory( in AcquireQuantumPixels() 167 quantum_info->number_threads,sizeof(*quantum_info->pixels)); in AcquireQuantumPixels() 168 if (quantum_info->pixels == (unsigned char **) NULL) in AcquireQuantumPixels() 171 (void) ResetMagickMemory(quantum_info->pixels,0,quantum_info->number_threads* in AcquireQuantumPixels() 172 sizeof(*quantum_info->pixels)); in AcquireQuantumPixels() 175 quantum_info->pixels[i]=(unsigned char *) AcquireQuantumMemory(extent+1, in AcquireQuantumPixels() 176 sizeof(**quantum_info->pixels)); in AcquireQuantumPixels() 177 if (quantum_info->pixels[i] == (unsigned char *) NULL) in AcquireQuantumPixels() 180 quantum_info->pixels[i]=(unsigned char *) RelinquishMagickMemory( in AcquireQuantumPixels() 181 quantum_info->pixels[i]); in AcquireQuantumPixels() [all …]
|
/external/ImageMagick/coders/ |
D | pcl.c | 484 const unsigned char *previous_pixels,const unsigned char *pixels, in PCLDeltaCompressImage() argument 505 if (*pixels++ != *previous_pixels++) in PCLDeltaCompressImage() 515 if (*pixels == *previous_pixels) in PCLDeltaCompressImage() 519 pixels++; in PCLDeltaCompressImage() 539 for (pixels-=i; i != 0; ) in PCLDeltaCompressImage() 542 *q++=(*pixels++); in PCLDeltaCompressImage() 555 const unsigned char *pixels,unsigned char *compress_pixels) in PCLPackbitsCompressImage() argument 584 *q++=(*pixels); in PCLPackbitsCompressImage() 591 *q++=(*pixels); in PCLPackbitsCompressImage() 592 *q++=pixels[1]; in PCLPackbitsCompressImage() [all …]
|
D | hdr.c | 173 *pixels; in ReadHDRImage() local 402 pixels=(unsigned char *) AcquireQuantumMemory(image->columns,4* in ReadHDRImage() 403 sizeof(*pixels)); in ReadHDRImage() 404 if (pixels == (unsigned char *) NULL) in ReadHDRImage() 410 count=ReadBlob(image,4*image->columns*sizeof(*pixels),pixels); in ReadHDRImage() 411 if (count != (ssize_t) (4*image->columns*sizeof(*pixels))) in ReadHDRImage() 421 (void) memcpy(pixels,pixel,4*sizeof(*pixel)); in ReadHDRImage() 422 count=ReadBlob(image,4*(image->columns-1)*sizeof(*pixels),pixels+4); in ReadHDRImage() 427 p=pixels; in ReadHDRImage() 430 end=&pixels[(i+1)*image->columns]; in ReadHDRImage() [all …]
|
D | hrz.c | 120 *pixels; in ReadHRZImage() local 148 pixels=(unsigned char *) AcquireQuantumMemory(image->columns,3* in ReadHRZImage() 149 sizeof(*pixels)); in ReadHRZImage() 150 if (pixels == (unsigned char *) NULL) in ReadHRZImage() 155 count=ReadBlob(image,length,pixels); in ReadHRZImage() 158 p=pixels; in ReadHRZImage() 175 pixels=(unsigned char *) RelinquishMagickMemory(pixels); in ReadHRZImage() 292 *pixels; in WriteHRZImage() local 315 pixels=(unsigned char *) AcquireQuantumMemory((size_t) hrz_image->columns, in WriteHRZImage() 316 3*sizeof(*pixels)); in WriteHRZImage() [all …]
|
D | aai.c | 123 *pixels; in ReadAAIImage() local 165 pixels=(unsigned char *) AcquireQuantumMemory(image->columns, in ReadAAIImage() 166 4*sizeof(*pixels)); in ReadAAIImage() 167 if (pixels == (unsigned char *) NULL) in ReadAAIImage() 172 count=ReadBlob(image,length,pixels); in ReadAAIImage() 175 p=pixels; in ReadAAIImage() 201 pixels=(unsigned char *) RelinquishMagickMemory(pixels); in ReadAAIImage() 346 *pixels; in WriteAAIImage() local 374 pixels=(unsigned char *) AcquireQuantumMemory(image->columns, in WriteAAIImage() 375 4*sizeof(*pixels)); in WriteAAIImage() [all …]
|
D | mtv.c | 120 *pixels; in ReadMTVImage() local 167 pixels=(unsigned char *) AcquireQuantumMemory(image->columns, in ReadMTVImage() 168 3UL*sizeof(*pixels)); in ReadMTVImage() 169 if (pixels == (unsigned char *) NULL) in ReadMTVImage() 173 count=(ssize_t) ReadBlob(image,(size_t) (3*image->columns),pixels); in ReadMTVImage() 176 p=pixels; in ReadMTVImage() 198 pixels=(unsigned char *) RelinquishMagickMemory(pixels); in ReadMTVImage() 348 *pixels; in WriteMTVImage() local 371 pixels=(unsigned char *) AcquireQuantumMemory(image->columns, in WriteMTVImage() 372 3UL*sizeof(*pixels)); in WriteMTVImage() [all …]
|
D | ycbcr.c | 103 *pixels; in ReadYCBCRImage() local 183 pixels=(const unsigned char *) NULL; in ReadYCBCRImage() 194 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage() 226 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage() 242 quantum_info,quantum_type,pixels,exception); in ReadYCBCRImage() 275 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage() 297 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage() 316 quantum_info,quantum_type,pixels,exception); in ReadYCBCRImage() 362 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage() 383 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadYCBCRImage() [all …]
|
D | cmyk.c | 103 *pixels; in ReadCMYKImage() local 173 pixels=(const unsigned char *) NULL; in ReadCMYKImage() 184 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadCMYKImage() 216 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadCMYKImage() 241 quantum_info,quantum_type,pixels,exception); in ReadCMYKImage() 276 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadCMYKImage() 299 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadCMYKImage() 327 quantum_info,quantum_type,pixels,exception); in ReadCMYKImage() 378 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadCMYKImage() 399 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadCMYKImage() [all …]
|
D | flif.c | 142 *pixels; in ReadFLIFImage() local 179 pixels=(unsigned short *) AcquireMagickMemory(length); in ReadFLIFImage() 180 if (pixels == (unsigned short *) NULL) in ReadFLIFImage() 198 pixels=(unsigned short *) RelinquishMagickMemory(pixels); in ReadFLIFImage() 215 flif_image_read_row_RGBA16(flifimage,y,pixels,length); in ReadFLIFImage() 216 p=pixels; in ReadFLIFImage() 237 pixels=(unsigned short *) RelinquishMagickMemory(pixels); in ReadFLIFImage() 419 *pixels; in WriteFLIFImage() local 459 pixels=AcquireMagickMemory(length); in WriteFLIFImage() 460 if (pixels == (void *) NULL) in WriteFLIFImage() [all …]
|
D | rgb.c | 103 *pixels; in ReadRGBImage() local 179 pixels=(const unsigned char *) NULL; in ReadRGBImage() 190 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadRGBImage() 221 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadRGBImage() 246 quantum_info,quantum_type,pixels,exception); in ReadRGBImage() 279 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadRGBImage() 303 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadRGBImage() 331 quantum_info,quantum_type,pixels,exception); in ReadRGBImage() 381 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadRGBImage() 402 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadRGBImage() [all …]
|
D | bgr.c | 104 *pixels; in ReadBGRImage() local 180 pixels=(const unsigned char *) NULL; in ReadBGRImage() 191 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadBGRImage() 222 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadBGRImage() 247 quantum_info,quantum_type,pixels,exception); in ReadBGRImage() 281 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadBGRImage() 303 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadBGRImage() 331 quantum_info,quantum_type,pixels,exception); in ReadBGRImage() 382 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadBGRImage() 403 pixels=(const unsigned char *) ReadBlobStream(image,length, in ReadBGRImage() [all …]
|
D | map.c | 134 *pixels; in ReadMAPImage() local 165 pixels=(unsigned char *) AcquireQuantumMemory(image->columns,packet_size* in ReadMAPImage() 166 sizeof(*pixels)); in ReadMAPImage() 170 if ((pixels == (unsigned char *) NULL) || in ReadMAPImage() 215 p=pixels; in ReadMAPImage() 219 count=ReadBlob(image,(size_t) packet_size*image->columns,pixels); in ReadMAPImage() 239 pixels=(unsigned char *) RelinquishMagickMemory(pixels); in ReadMAPImage() 363 *pixels; in WriteMAPImage() local 387 pixels=(unsigned char *) AcquireQuantumMemory(image->columns,packet_size* in WriteMAPImage() 388 sizeof(*pixels)); in WriteMAPImage() [all …]
|
D | mac.c | 118 *pixels; in ReadMACImage() local 163 pixels=(unsigned char *) AcquireQuantumMemory(length+1,sizeof(*pixels)); in ReadMACImage() 164 if (pixels == (unsigned char *) NULL) in ReadMACImage() 166 p=pixels; in ReadMACImage() 187 p=pixels; in ReadMACImage() 204 p=pixels; in ReadMACImage() 222 p=pixels; in ReadMACImage() 239 p=pixels; in ReadMACImage() 244 pixels=(unsigned char *) RelinquishMagickMemory(pixels); in ReadMACImage()
|
D | psd.c | 407 const size_t number_pixels,unsigned char *pixels) in DecodePSDPixels() argument 451 *pixels++=(pixel >> 7) & 0x01 ? 0U : 255U; in DecodePSDPixels() 452 *pixels++=(pixel >> 6) & 0x01 ? 0U : 255U; in DecodePSDPixels() 453 *pixels++=(pixel >> 5) & 0x01 ? 0U : 255U; in DecodePSDPixels() 454 *pixels++=(pixel >> 4) & 0x01 ? 0U : 255U; in DecodePSDPixels() 455 *pixels++=(pixel >> 3) & 0x01 ? 0U : 255U; in DecodePSDPixels() 456 *pixels++=(pixel >> 2) & 0x01 ? 0U : 255U; in DecodePSDPixels() 457 *pixels++=(pixel >> 1) & 0x01 ? 0U : 255U; in DecodePSDPixels() 458 *pixels++=(pixel >> 0) & 0x01 ? 0U : 255U; in DecodePSDPixels() 464 *pixels++=(unsigned char) ((pixel >> 6) & 0x03); in DecodePSDPixels() [all …]
|
D | ps.c | 1144 const size_t pixel,unsigned char *pixels) in PopHexPixel() argument 1150 *pixels++=(unsigned char) (*hex++); in PopHexPixel() 1151 *pixels++=(unsigned char) (*hex); in PopHexPixel() 1152 return(pixels); in PopHexPixel() 1534 pixels[2048]; in WritePSImage() local 1751 q=pixels; in WritePSImage() 1770 if ((q-pixels+8) >= 80) in WritePSImage() 1773 (void) WriteBlob(image,q-pixels,pixels); in WritePSImage() 1774 q=pixels; in WritePSImage() 1785 if ((q-pixels+8) >= 80) in WritePSImage() [all …]
|
/external/skia/src/opts/ |
D | SkOpts_hsw.cpp | 74 auto pixels = _mm256_packus_epi16(_mm256_packs_epi32(accum04, accum15), in convolve_vertically() local 79 __m256i max_rg = _mm256_max_epu8(pixels, _mm256_srli_epi32(pixels, 8)), in convolve_vertically() 80 max_rgb = _mm256_max_epu8(max_rg, _mm256_srli_epi32(pixels, 16)); in convolve_vertically() 81 pixels = _mm256_max_epu8(pixels, _mm256_slli_epi32(max_rgb, 24)); in convolve_vertically() 84 pixels = _mm256_or_si256(pixels, _mm256_set1_epi32(0xff000000)); in convolve_vertically() 89 _mm256_storeu_si256((__m256i*)dst, pixels); in convolve_vertically() 96 *dst++ = _mm_cvtsi128_si32(_mm256_castsi256_si128(pixels)); in convolve_vertically() 97 pixels = _mm256_permutevar8x32_epi32(pixels, _mm256_setr_epi32(1,2,3,4,5,6,7,0)); in convolve_vertically()
|
/external/skia/gm/ |
D | gammaencodedpremul.cpp | 15 static void clamp_to_alpha(uint32_t* pixels, int count) { in clamp_to_alpha() argument 17 uint8_t a = SkGetPackedA32(pixels[i]); in clamp_to_alpha() 18 uint8_t r = SkGetPackedR32(pixels[i]); in clamp_to_alpha() 19 uint8_t g = SkGetPackedG32(pixels[i]); in clamp_to_alpha() 20 uint8_t b = SkGetPackedB32(pixels[i]); in clamp_to_alpha() 21 pixels[i] = SkPackARGB32(a, in clamp_to_alpha() 68 uint32_t* pixels = bitmap.getAddr32(0, 0); in onDraw() local 79 fXform->apply(select_xform_format(kN32_SkColorType), pixels, in onDraw() 82 SkOpts::RGBA_to_rgbA(pixels, pixels, kAlphaMax); in onDraw() 91 SkOpts::RGBA_to_rgbA(pixels, row, kAlphaMax); in onDraw() [all …]
|
/external/skia/tests/ |
D | TestUtils.cpp | 20 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_read_pixels() local 21 memset(pixels.get(), 0, sizeof(uint32_t)*pixelCnt); in test_read_pixels() 25 bool read = srcContext->readPixels(ii, pixels.get(), 0, 0, 0); in test_read_pixels() 31 if (pixels.get()[i] != expectedPixelValues[i]) { in test_read_pixels() 33 testName, i, expectedPixelValues[i], pixels.get()[i]); in test_read_pixels() 43 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_write_pixels() local 46 pixels.get()[y * dstContext->width() + x] = in test_write_pixels() 53 bool write = dstContext->writePixels(ii, pixels.get(), 0, 0, 0); in test_write_pixels() 66 test_read_pixels(reporter, dstContext, pixels.get(), testName); in test_write_pixels() 96 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_copy_to_surface() local [all …]
|
/external/ImageMagick/www/source/ |
D | mgk.c | 159 *pixels; in ReadMGKImage() local 207 pixels=(unsigned char *) AcquireQuantumMemory((size_t) image->columns, in ReadMGKImage() 208 3UL*sizeof(*pixels)); in ReadMGKImage() 209 if (pixels == (unsigned char *) NULL) in ReadMGKImage() 213 count=(ssize_t) ReadBlob(image,(size_t) (3*image->columns),pixels); in ReadMGKImage() 216 p=pixels; in ReadMGKImage() 233 pixels=(unsigned char *) RelinquishMagickMemory(pixels); in ReadMGKImage() 387 *pixels; in WriteMGKImage() local 409 pixels=(unsigned char *) AcquireQuantumMemory((size_t) image->columns, in WriteMGKImage() 410 3UL*sizeof(*pixels)); in WriteMGKImage() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_drawpix.c | 58 const GLvoid *pixels) in fast_draw_rgb_ubyte_pixels() argument 61 _mesa_image_address2d(unpack, pixels, width, in fast_draw_rgb_ubyte_pixels() 105 const GLvoid *pixels) in fast_draw_rgba_ubyte_pixels() argument 108 _mesa_image_address2d(unpack, pixels, width, in fast_draw_rgba_ubyte_pixels() 154 const GLvoid *pixels) in fast_draw_generic_pixels() argument 157 _mesa_image_address2d(unpack, pixels, width, in fast_draw_generic_pixels() 198 const GLvoid *pixels) in fast_draw_rgba_pixels() argument 231 &unpack, pixels); in fast_draw_rgba_pixels() 240 &unpack, pixels); in fast_draw_rgba_pixels() 247 format, type, &unpack, pixels); in fast_draw_rgba_pixels() [all …]
|
/external/ImageMagick/www/source/core/ |
D | sigmoidal-contrast.c | 20 *pixels; in SigmoidalContrast() local 26 pixels=GetImageViewAuthenticPixels(contrast_view); in SigmoidalContrast() 29 pixels[x].red=RoundToQuantum(SigmoidalContrast(pixels[x].red)); in SigmoidalContrast() 30 pixels[x].green=RoundToQuantum(SigmoidalContrast(pixels[x].green)); in SigmoidalContrast() 31 pixels[x].blue=RoundToQuantum(SigmoidalContrast(pixels[x].blue)); in SigmoidalContrast() 32 pixels[x].opacity=RoundToQuantum(SigmoidalContrast(pixels[x].opacity)); in SigmoidalContrast()
|
/external/mesa3d/src/mesa/main/ |
D | texgetimage.c | 80 GLenum format, GLenum type, GLvoid *pixels, in get_tex_depth() argument 102 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_depth() 129 GLenum format, GLenum type, GLvoid *pixels, in get_tex_depth_stencil() argument 150 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_depth_stencil() 178 GLenum format, GLenum type, GLvoid *pixels, in get_tex_stencil() argument 198 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_stencil() 224 GLenum format, GLenum type, GLvoid *pixels, in get_tex_ycbcr() argument 241 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_ycbcr() 310 GLenum format, GLenum type, GLvoid *pixels, in get_tex_rgba_compressed() argument 364 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_rgba_compressed() [all …]
|
/external/deqp/framework/delibs/deimage/ |
D | deImage.c | 41 return (void*)((deUint8*)image->pixels + offset); in getPixelAddress() 54 image->pixels = deMalloc(width * height * bpp); in deImage_create() 55 if (!image->pixels) in deImage_create() 60 memset(image->pixels, 0, width * height * bpp); in deImage_create() 67 deFree(image->pixels); in deImage_destroy() 105 memcpy(converted->pixels, image->pixels, width * height * deImageFormat_getBytesPerPixel(format)); in deImage_convertFormat() 161 void deImage_copyToUint8RGBA (const deImage* image, deUint8* pixels) in deImage_copyToUint8RGBA() argument 172 pixels[4*ndx+0] = (deUint8)deARGB_getRed(pixel); in deImage_copyToUint8RGBA() 173 pixels[4*ndx+1] = (deUint8)deARGB_getGreen(pixel); in deImage_copyToUint8RGBA() 174 pixels[4*ndx+2] = (deUint8)deARGB_getBlue(pixel); in deImage_copyToUint8RGBA() [all …]
|