Home
last modified time | relevance | path

Searched refs:pixels (Results 1 – 25 of 631) sorted by relevance

12345678910>>...26

/external/ImageMagick/MagickCore/
Dquantum-private.h70 **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 …]
Dpixel.c511 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 …]
/external/v8/test/mjsunit/
Dpixel-array-rounding.js30 var pixels = new Uint8ClampedArray(11); variable
34 pixels[i] = (i * 1.1);
36 pixels[8] = 255.5;
37 pixels[9] = NaN;
38 pixels[10] = -0.5;
39 return pixels[1] + pixels[6];
44 assertEquals(6, pixels[5]);
47 assertEquals(6, pixels[5]);
48 assertEquals(255, pixels[8]);
49 assertEquals(0, pixels[9]);
[all …]
/external/icu/icu4c/source/layout/
DValueRecords.cpp47 LEPoint pixels; in adjustPosition() local
49 fontInstance->transformFunits(value, 0, pixels); in adjustPosition()
51 xPlacementAdjustment += fontInstance->xPixelsToUnits(pixels.fX); in adjustPosition()
52 yPlacementAdjustment += fontInstance->yPixelsToUnits(pixels.fY); in adjustPosition()
57 LEPoint pixels; in adjustPosition() local
59 fontInstance->transformFunits(0, value, pixels); in adjustPosition()
61 xPlacementAdjustment += fontInstance->xPixelsToUnits(pixels.fX); in adjustPosition()
62 yPlacementAdjustment += fontInstance->yPixelsToUnits(pixels.fY); in adjustPosition()
67 LEPoint pixels; in adjustPosition() local
69 fontInstance->transformFunits(value, 0, pixels); in adjustPosition()
[all …]
/external/libvpx/libvpx/vpx_dsp/arm/
Dsad_media.asm37 ldr r6, [r0, #0x0] ; load 4 src pixels (1A)
38 ldr r8, [r2, #0x0] ; load 4 ref pixels (1A)
39 ldr r7, [r0, #0x4] ; load 4 src pixels (1A)
40 ldr r9, [r2, #0x4] ; load 4 ref pixels (1A)
41 ldr r10, [r0, #0x8] ; load 4 src pixels (1B)
42 ldr r11, [r0, #0xC] ; load 4 src pixels (1B)
44 usada8 r4, r8, r6, r4 ; calculate sad for 4 pixels
45 usad8 r8, r7, r9 ; calculate sad for 4 pixels
47 ldr r12, [r2, #0x8] ; load 4 ref pixels (1B)
48 ldr lr, [r2, #0xC] ; load 4 ref pixels (1B)
[all …]
Dvariance_halfpixvar16x16_hv_media.asm38 add r9, r0, r1 ; pointer to pixels on the next row
39 ; 1st 4 pixels
40 ldr r4, [r0, #0] ; load source pixels a, row N
41 ldr r6, [r0, #1] ; load source pixels b, row N
42 ldr r5, [r9, #0] ; load source pixels c, row N+1
43 ldr r7, [r9, #1] ; load source pixels d, row N+1
45 ; x = (a + b + 1) >> 1, interpolate pixels horizontally on row N
49 ; y = (c + d + 1) >> 1, interpolate pixels horizontally on row N+1
56 ldr r5, [r2, #0] ; load 4 ref pixels
69 orr r6, r6, r7 ; differences of all 4 pixels
[all …]
Dvariance_media.asm39 ; 1st 4 pixels
40 ldr r4, [r0, #0] ; load 4 src pixels
41 ldr r5, [r2, #0] ; load 4 ref pixels
55 orr r6, r6, r7 ; differences of all 4 pixels
61 uxtb16 r5, r6 ; byte (two pixels) to halfwords
62 uxtb16 r10, r6, ror #8 ; another two pixels to halfwords
65 ; 2nd 4 pixels
66 ldr r4, [r0, #4] ; load 4 src pixels
67 ldr r5, [r2, #4] ; load 4 ref pixels
78 orr r6, r6, r7 ; differences of all 4 pixels
[all …]
Dvariance_halfpixvar16x16_v_media.asm39 ; 1st 4 pixels
40 ldr r4, [r0, #0] ; load 4 src pixels
41 ldr r6, [r9, #0] ; load 4 src pixels from next row
42 ldr r5, [r2, #0] ; load 4 ref pixels
59 orr r6, r6, r7 ; differences of all 4 pixels
65 uxtb16 r5, r6 ; byte (two pixels) to halfwords
66 uxtb16 r7, r6, ror #8 ; another two pixels to halfwords
69 ; 2nd 4 pixels
70 ldr r4, [r0, #4] ; load 4 src pixels
71 ldr r6, [r9, #4] ; load 4 src pixels from next row
[all …]
Dvariance_halfpixvar16x16_h_media.asm38 ; 1st 4 pixels
39 ldr r4, [r0, #0] ; load 4 src pixels
40 ldr r6, [r0, #1] ; load 4 src pixels with 1 byte offset
41 ldr r5, [r2, #0] ; load 4 ref pixels
58 orr r6, r6, r7 ; differences of all 4 pixels
64 uxtb16 r5, r6 ; byte (two pixels) to halfwords
65 uxtb16 r7, r6, ror #8 ; another two pixels to halfwords
68 ; 2nd 4 pixels
69 ldr r4, [r0, #4] ; load 4 src pixels
70 ldr r6, [r0, #5] ; load 4 src pixels with 1 byte offset
[all …]
/external/ImageMagick/coders/
Dpcl.c484 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 …]
Dhdr.c173 *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 …]
Dhrz.c120 *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 …]
Daai.c123 *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 …]
Dmtv.c120 *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 …]
Dycbcr.c103 *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 …]
Dcmyk.c103 *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 …]
Dflif.c142 *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 …]
/external/opencv3/3rdparty/openexr/IlmImf/
DImfPreviewImageAttribute.cpp64 const PreviewRgba *pixels = _value.pixels(); in writeValueTo() local
68 Xdr::write <StreamIO> (os, pixels[i].r); in writeValueTo()
69 Xdr::write <StreamIO> (os, pixels[i].g); in writeValueTo()
70 Xdr::write <StreamIO> (os, pixels[i].b); in writeValueTo()
71 Xdr::write <StreamIO> (os, pixels[i].a); in writeValueTo()
88 PreviewRgba *pixels = p.pixels(); in readValueFrom() local
92 Xdr::read <StreamIO> (is, pixels[i].r); in readValueFrom()
93 Xdr::read <StreamIO> (is, pixels[i].g); in readValueFrom()
94 Xdr::read <StreamIO> (is, pixels[i].b); in readValueFrom()
95 Xdr::read <StreamIO> (is, pixels[i].a); in readValueFrom()
/external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/
D_bitmap.py29 def __init__(self, dimensions, pixels): argument
45 if type(pixels) is not bytearray:
46 pixels = bytearray(pixels)
47 self._popen.stdin.write(pixels)
88 def __init__(self, bpp, width, height, pixels, metadata=None): argument
92 assert pixels, 'Must specify pixels'
93 assert bpp * width * height == len(pixels), 'Dimensions and pixels mismatch'
98 self._pixels = pixels
122 def pixels(self): member in Bitmap
140 pixels = self.pixels
[all …]
/external/libgdx/gdx/jni/gdx2d/
Dgdx2d.c226 const unsigned char* pixels = stbi_load_from_memory(buffer, len, &width, &height, &format, 0); in gdx2d_load() local
227 if (pixels == NULL) { in gdx2d_load()
228 pixels = jpgd_decompress_jpeg_image_from_memory(buffer, len, &width, &height, &format, 3); in gdx2d_load()
230 if (pixels == NULL) in gdx2d_load()
238 pixmap->pixels = pixels; in gdx2d_load()
265 pixmap->pixels = (unsigned char*)malloc(width * height * gdx2d_bytes_per_pixel(format)); in gdx2d_new()
266 if (!pixmap->pixels) { in gdx2d_new()
273 free((void*)pixmap->pixels); in gdx2d_free()
292 int pixels = pixmap->width * pixmap->height; in clear_alpha() local
293 memset((void*)pixmap->pixels, col, pixels); in clear_alpha()
[all …]
/external/ImageMagick/www/source/
Dmgk.c159 *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/libgdx/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/
DScreenUtils.java77 ByteBuffer pixels = BufferUtils.newByteBuffer(h * w * 4); in getFrameBufferPixmap() local
78 Gdx.gl.glReadPixels(x, y, w, h, GL20.GL_RGBA, GL20.GL_UNSIGNED_BYTE, pixels); in getFrameBufferPixmap()
79 putPixelsBack(pixmap, pixels); in getFrameBufferPixmap()
83 public static void putPixelsBack (Pixmap pixmap, ByteBuffer pixels) { in putPixelsBack() argument
85 …putPixelsBack(((HasArrayBufferView)pixels).getTypedArray(), pixmap.getWidth(), pixmap.getHeight(),… in putPixelsBack()
89 …private native static void putPixelsBack (ArrayBufferView pixels, int width, int height, Context2d… in putPixelsBack() argument
121 final ByteBuffer pixels = BufferUtils.newByteBuffer(w * h * 4); in getFrameBufferPixels() local
122 Gdx.gl.glReadPixels(x, y, w, h, GL20.GL_RGBA, GL20.GL_UNSIGNED_BYTE, pixels); in getFrameBufferPixels()
128 pixels.position((h - i - 1) * numBytesPerLine); in getFrameBufferPixels()
129 pixels.get(lines, i * numBytesPerLine, numBytesPerLine); in getFrameBufferPixels()
[all …]
/external/skia/src/utils/
DSkTextureCompressor_LATC.cpp130 static uint64_t compress_latc_block_bb(const uint8_t pixels[]) { in compress_latc_block_bb() argument
134 minVal = SkTMin(pixels[i], minVal); in compress_latc_block_bb()
135 maxVal = SkTMax(pixels[i], maxVal); in compress_latc_block_bb()
148 uint8_t bestError = abs_diff(pixels[i], palette[0]); in compress_latc_block_bb()
151 uint8_t error = abs_diff(pixels[i], palette[j]); in compress_latc_block_bb()
172 static uint64_t compress_latc_block_bb_ignore_extremal(const uint8_t pixels[]) { in compress_latc_block_bb_ignore_extremal() argument
176 if (is_extremal(pixels[i])) { in compress_latc_block_bb_ignore_extremal()
180 minVal = SkTMin(pixels[i], minVal); in compress_latc_block_bb_ignore_extremal()
181 maxVal = SkTMax(pixels[i], maxVal); in compress_latc_block_bb_ignore_extremal()
195 if (is_extremal(pixels[i])) { in compress_latc_block_bb_ignore_extremal()
[all …]
/external/skia/tests/
DRectangleTextureTest.cpp19 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_read_pixels() local
20 memset(pixels.get(), 0, sizeof(uint32_t)*pixelCnt); in test_read_pixels()
23 pixels.get()); in test_read_pixels()
28 if (pixels.get()[i] != expectedPixelValues[i]) { in test_read_pixels()
30 " got 0x%08x.", i, expectedPixelValues[i], pixels.get()[i]); in test_read_pixels()
39 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_write_pixels() local
42 pixels.get()[y * rectangleTexture->width() + x] = GrColorPackRGBA(x, y, x + y, x * y); in test_write_pixels()
47 pixels.get()); in test_write_pixels()
51 test_read_pixels(reporter, context, rectangleTexture, pixels.get()); in test_write_pixels()
70 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_copy_surface_dst() local
[all …]
/external/ImageMagick/www/source/core/
Dsigmoidal-contrast.c20 *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()

12345678910>>...26