Home
last modified time | relevance | path

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

12345678910>>...20

/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 …]
DAnchorTables.cpp56 LEPoint pixels; in getAnchor() local
58 fontInstance->transformFunits(x, y, pixels); in getAnchor()
60 fontInstance->pixelsToUnits(pixels, anchor); in getAnchor()
82 LEPoint pixels; in getAnchor() local
86 fontInstance->transformFunits(x, y, pixels); in getAnchor()
92 pixels.fX += adjx; in getAnchor()
99 pixels.fY += adjy; in getAnchor()
102 fontInstance->pixelsToUnits(pixels, anchor); in getAnchor()
/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_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 …]
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 …]
/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/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 …]
DImageTest.cpp101 static void Release(const void* pixels, void* context) { in Release()
254 SkPMColor pixels[4]; in DEF_TEST() local
255 memset(pixels, 0xFF, sizeof(pixels)); // init with values we don't expect in DEF_TEST()
256 image->readPixels(dstInfo, pixels, dstRowBytes, 0, 0); in DEF_TEST()
257 REPORTER_ASSERT(reporter, red == pixels[0]); in DEF_TEST()
258 REPORTER_ASSERT(reporter, green == pixels[1]); in DEF_TEST()
259 REPORTER_ASSERT(reporter, blue == pixels[2]); in DEF_TEST()
260 REPORTER_ASSERT(reporter, 0 == pixels[3]); in DEF_TEST()
273 SkPMColor pixels[4]; in DEF_TEST() local
274 memset(pixels, 0xFF, sizeof(pixels)); // init with values we don't expect in DEF_TEST()
[all …]
DEGLImageTest.cpp42 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_read_pixels() local
43 memset(pixels.get(), 0, sizeof(uint32_t)*pixelCnt); in test_read_pixels()
46 pixels.get()); in test_read_pixels()
51 if (pixels.get()[i] != expectedPixelValues[i]) { in test_read_pixels()
53 " got 0x%08x.", i, expectedPixelValues[i], pixels.get()[i]); in test_read_pixels()
62 SkAutoTMalloc<uint32_t> pixels(pixelCnt); in test_write_pixels() local
63 memset(pixels.get(), 0, sizeof(uint32_t)*pixelCnt); in test_write_pixels()
64 bool write = externalTexture->writePixels(0, 0, 0, 0, kRGBA_8888_GrPixelConfig, pixels.get()); in test_write_pixels()
145 SkAutoTMalloc<uint32_t> pixels(kSize * kSize); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
147 pixels.get()[i] = 0xDDAABBCC; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DTextureCompressionTest.cpp122 uint8_t* pixels = reinterpret_cast<uint8_t*>(pixmap.writable_addr()); in DEF_TEST() local
123 REPORTER_ASSERT(reporter, pixels); in DEF_TEST()
124 if (nullptr == pixels) { in DEF_TEST()
131 pixels[x] = 0xFF; in DEF_TEST()
133 pixels[x] = 0; in DEF_TEST()
136 pixels += pixmap.rowBytes(); in DEF_TEST()
169 const uint8_t* pixels = reinterpret_cast<const uint8_t*>(pixmap.addr()); in DEF_TEST() local
170 REPORTER_ASSERT(reporter, pixels); in DEF_TEST()
171 if (nullptr == pixels) { in DEF_TEST()
177 bool ok = pixels[y*pixmap.rowBytes() + x] == decompBuffer[y*kWidth + x]; in DEF_TEST()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_drawpix.c56 const GLvoid *pixels) in fast_draw_rgb_ubyte_pixels() argument
59 _mesa_image_address2d(unpack, pixels, width, in fast_draw_rgb_ubyte_pixels()
103 const GLvoid *pixels) in fast_draw_rgba_ubyte_pixels() argument
106 _mesa_image_address2d(unpack, pixels, width, in fast_draw_rgba_ubyte_pixels()
152 const GLvoid *pixels) in fast_draw_generic_pixels() argument
155 _mesa_image_address2d(unpack, pixels, width, in fast_draw_generic_pixels()
196 const GLvoid *pixels) in fast_draw_rgba_pixels() argument
229 &unpack, pixels); in fast_draw_rgba_pixels()
238 &unpack, pixels); in fast_draw_rgba_pixels()
245 format, type, &unpack, pixels); in fast_draw_rgba_pixels()
[all …]
/external/skia/src/codec/
DSkSampledCodec.cpp73 SkCodec::Result SkSampledCodec::onGetAndroidPixels(const SkImageInfo& info, void* pixels, in onGetAndroidPixels() argument
82 return this->codec()->getPixels(info, pixels, rowBytes, &codecOptions, in onGetAndroidPixels()
87 return this->sampledDecode(info, pixels, rowBytes, options); in onGetAndroidPixels()
95 return this->sampledDecode(info, pixels, rowBytes, options); in onGetAndroidPixels()
120 this->codec()->fillIncompleteImage(info, pixels, rowBytes, options.fZeroInitialized, in onGetAndroidPixels()
125 int decodedLines = this->codec()->getScanlines(pixels, scaledSubsetHeight, rowBytes); in onGetAndroidPixels()
138 SkCodec::Result SkSampledCodec::sampledDecode(const SkImageInfo& info, void* pixels, in sampledDecode() argument
208 this->codec()->fillIncompleteImage(info, pixels, rowBytes, options.fZeroInitialized, in sampledDecode()
212 void* pixelPtr = pixels; in sampledDecode()
215 this->codec()->fillIncompleteImage(info, pixels, rowBytes, in sampledDecode()
[all …]
/external/deqp/framework/delibs/deimage/
DdeImage.c41 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 …]
/external/chromium-trace/catapult/telemetry/third_party/png/
Dpng.py822 def write_array(self, outfile, pixels): argument
829 self.write_passes(outfile, self.array_scanlines_interlace(pixels))
831 self.write_passes(outfile, self.array_scanlines(pixels))
861 pixels = array('B')
862 pixels.fromfile(infile,
865 self.write_passes(outfile, self.array_scanlines_interlace(pixels))
874 pixels = array('B')
875 pixels.fromfile(ppmfile,
882 pixels = interleave_planes(pixels, apixels,
886 self.write_passes(outfile, self.array_scanlines_interlace(pixels))
[all …]
/external/mesa3d/src/mesa/main/
Dtexgetimage.c76 GLenum format, GLenum type, GLvoid *pixels, in get_tex_depth() argument
101 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_depth()
126 GLenum format, GLenum type, GLvoid *pixels, in get_tex_depth_stencil() argument
146 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_depth_stencil()
171 GLenum format, GLenum type, GLvoid *pixels, in get_tex_ycbcr() argument
191 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_ycbcr()
224 GLenum format, GLenum type, GLvoid *pixels, in get_tex_rgba_compressed() argument
300 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_rgba_compressed()
318 GLenum format, GLenum type, GLvoid *pixels, in get_tex_rgba_uncompressed() argument
383 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_rgba_uncompressed()
[all …]
Dreadpix.c57 GLenum type, GLvoid *pixels, in fast_read_depth_pixels() argument
87 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height, in fast_read_depth_pixels()
113 GLenum type, GLvoid *pixels, in read_depth_pixels() argument
132 if (fast_read_depth_pixels(ctx, x, y, width, height, type, pixels, packing)) in read_depth_pixels()
136 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height, in read_depth_pixels()
175 GLenum type, GLvoid *pixels, in read_stencil_pixels() argument
202 dest = _mesa_image_address2d(packing, pixels, width, height, in read_stencil_pixels()
229 GLvoid *pixels, in fast_read_rgba_pixels_memcpy() argument
266 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height, in fast_read_rgba_pixels_memcpy()
322 GLvoid *pixels, in slow_read_rgba_pixels() argument
[all …]
/external/opencv3/modules/java/generator/src/cpp/
Dutils.cpp26 void* pixels = 0; in Java_org_opencv_android_Utils_nBitmapToMat2() local
34 CV_Assert( AndroidBitmap_lockPixels(env, bitmap, &pixels) >= 0 ); in Java_org_opencv_android_Utils_nBitmapToMat2()
35 CV_Assert( pixels ); in Java_org_opencv_android_Utils_nBitmapToMat2()
40 Mat tmp(info.height, info.width, CV_8UC4, pixels); in Java_org_opencv_android_Utils_nBitmapToMat2()
46 Mat tmp(info.height, info.width, CV_8UC2, pixels); in Java_org_opencv_android_Utils_nBitmapToMat2()
89 void* pixels = 0; in Java_org_opencv_android_Utils_nMatToBitmap2() local
99 CV_Assert( AndroidBitmap_lockPixels(env, bitmap, &pixels) >= 0 ); in Java_org_opencv_android_Utils_nMatToBitmap2()
100 CV_Assert( pixels ); in Java_org_opencv_android_Utils_nMatToBitmap2()
103 Mat tmp(info.height, info.width, CV_8UC4, pixels); in Java_org_opencv_android_Utils_nMatToBitmap2()
118 Mat tmp(info.height, info.width, CV_8UC2, pixels); in Java_org_opencv_android_Utils_nMatToBitmap2()
/external/skia/src/image/
DSkSurface_Raster.cpp21 void (*releaseProc)(void* pixels, void* context), void* context,
89 SkSurface_Raster::SkSurface_Raster(const SkImageInfo& info, void* pixels, size_t rb, in SkSurface_Raster() argument
90 void (*releaseProc)(void* pixels, void* context), void* context, in SkSurface_Raster() argument
94 fBitmap.installPixels(info, pixels, rb, nullptr, releaseProc, context); in SkSurface_Raster()
172 SkSurface* SkSurface::NewRasterDirectReleaseProc(const SkImageInfo& info, void* pixels, size_t rb, in NewRasterDirectReleaseProc() argument
173 void (*releaseProc)(void* pixels, void* context), in NewRasterDirectReleaseProc() argument
181 if (nullptr == pixels) { in NewRasterDirectReleaseProc()
185 return new SkSurface_Raster(info, pixels, rb, releaseProc, context, props); in NewRasterDirectReleaseProc()
188 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes, in NewRasterDirect() argument
190 return NewRasterDirectReleaseProc(info, pixels, rowBytes, nullptr, nullptr, props); in NewRasterDirect()
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_tex_subimage.c48 GLenum format, GLenum type, const void *pixels, in intel_blit_texsubimage() argument
87 pixels = _mesa_validate_pbo_teximage(ctx, 2, width, height, 1, in intel_blit_texsubimage()
88 format, type, pixels, packing, in intel_blit_texsubimage()
90 if (!pixels) in intel_blit_texsubimage()
124 format, type, pixels, packing)) { in intel_blit_texsubimage()
158 const GLvoid * pixels, in intelTexSubImage() argument
165 format, type, pixels, packing)) { in intelTexSubImage()
169 format, type, pixels, packing); in intelTexSubImage()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_tex_subimage.c48 GLenum format, GLenum type, const void *pixels, in intel_blit_texsubimage() argument
87 pixels = _mesa_validate_pbo_teximage(ctx, 2, width, height, 1, in intel_blit_texsubimage()
88 format, type, pixels, packing, in intel_blit_texsubimage()
90 if (!pixels) in intel_blit_texsubimage()
124 format, type, pixels, packing)) { in intel_blit_texsubimage()
158 const GLvoid * pixels, in intelTexSubImage() argument
165 format, type, pixels, packing)) { in intelTexSubImage()
169 format, type, pixels, packing); in intelTexSubImage()

12345678910>>...20