HomeSort by relevance Sort by last modified time
    Searched defs:pixels (Results 51 - 75 of 252) sorted by null

1 23 4 5 6 7 8 91011

  /external/skia/tests/
PremulAlphaRoundTripTest.cpp 50 // Don't strictly need a bitmap, but its a handy way to allocate the pixels
55 uint32_t* pixels = bmp.getAddr32(0, a); local
57 pixels[r] = proc(SkColorSetARGB(a, r, 0, 0));
  /frameworks/ex/framesequence/jni/
FrameSequenceJNI.cpp 99 void* pixels; local
107 if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) {
109 "Bitmap pixels couldn't be locked");
115 (Color8888*) pixels, pixelStride, previousFrameNr);
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
ShapeDrawable1.java 51 int[] pixels = new int[] { 0xFFFF0000, 0xFF00FF00, 0xFF0000FF, 0}; local
52 Bitmap bm = Bitmap.createBitmap(pixels, 2, 2,
  /external/chromium_org/cc/layers/
texture_layer_impl.cc 112 uint8* pixels = local
120 swizzled[i] = pixels[i + 2];
121 swizzled[i + 1] = pixels[i + 1];
122 swizzled[i + 2] = pixels[i];
123 swizzled[i + 3] = pixels[i + 3];
125 pixels = &swizzled[0];
130 pixels,
  /external/chromium_org/cc/resources/
picture_pile_impl_unittest.cc 695 SkColor* pixels = reinterpret_cast<SkColor*>(bitmap.getPixels()); local
699 EXPECT_EQ(SkColorGetA(pixels[i]), 255u);
700 all_white &= (SkColorGetR(pixels[i]) == 255);
701 all_white &= (SkColorGetG(pixels[i]) == 255);
702 all_white &= (SkColorGetB(pixels[i]) == 255);
744 SkColor* pixels = reinterpret_cast<SkColor*>(bitmap.getPixels()); local
747 EXPECT_EQ(SkColorGetA(pixels[i]), 0u);
  /external/chromium_org/chrome/browser/ui/app_list/
fast_show_pickler.cc 130 const char* pixels = NULL; local
131 if (!it->ReadBytes(&pixels, size))
140 memcpy(bitmap.getPixels(), pixels, bitmap.getSize());
  /external/chromium_org/content/browser/compositor/
software_output_device_ozone_unittest.cc 180 SkPMColor pixels[width * height]; local
181 output_device_->CopyToPixels(area, pixels);
190 EXPECT_EQ(white, pixels[i * area.width() + j]);
192 EXPECT_EQ(black, pixels[i * area.width() + j]);
  /external/chromium_org/extensions/renderer/
set_icon_natives.cc 78 uint32_t* pixels = bitmap.getAddr32(0, 0); local
80 // |data| is RGBA, pixels is ARGB.
81 pixels[t] = SkPreMultiplyColor(
  /external/chromium_org/gpu/command_buffer/tests/
gl_copy_texture_CHROMIUM_unittest.cc 55 uint8 pixels[1 * 4] = { 255u, 0u, 0u, 255u }; local
59 pixels);
75 GLTestHelper::CheckPixels(0, 0, 1, 1, 0, pixels);
81 uint8 pixels[2][2][4]; local
84 pixels[y][x][0] = x + y;
85 pixels[y][x][1] = x + y;
86 pixels[y][x][2] = x + y;
87 pixels[y][x][3] = 255u;
93 pixels);
104 EXPECT_EQ(pixels[1-y][x][0], copied_pixels[y][x][0])
117 uint8 pixels[1 * 4] = { 2, 2, 2, 128 }; local
141 uint8 pixels[1 * 4] = { 16, 16, 16, 128 }; local
163 uint8 pixels[2][2][4]; local
199 uint8 pixels[2][2][4]; local
248 uint8 pixels[1 * 4] = { 255u, 0u, 0u, 255u }; local
302 uint8 pixels[1 * 4] = { 255u, 0u, 0u, 255u }; local
344 uint8 pixels[1 * 4] = { 255u, 0u, 0u, 255u }; local
475 uint8 pixels[1 * 4] = { 255u, 0u, 0u, 255u }; local
506 uint8 pixels[kHeight][kWidth][4] = {{{1}}}; local
    [all...]
gl_gpu_memory_buffer_unittest.cc 114 uint8 pixels[1 * 4] = { 255u, 0u, 0u, 255u }; local
165 mapped_buffer[y * stride + x * kImageBytesPerPixel + 0] = pixels[0];
166 mapped_buffer[y * stride + x * kImageBytesPerPixel + 1] = pixels[1];
167 mapped_buffer[y * stride + x * kImageBytesPerPixel + 2] = pixels[2];
168 mapped_buffer[y * stride + x * kImageBytesPerPixel + 3] = pixels[3];
195 // Check if pixels match the values that were assigned to the mapped buffer.
196 GLTestHelper::CheckPixels(0, 0, kImageWidth, kImageHeight, 0, pixels);
  /external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/
FELighting.h 57 Uint8ClampedArray* pixels; member in struct:WebCore::FELighting::LightingData
  /external/chromium_org/third_party/mesa/src/src/mesa/main/
texcompress_s3tc.c 166 const GLubyte *pixels; local
187 pixels = tempImage;
191 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
198 (*ext_tx_compress_dxtn)(3, srcWidth, srcHeight, pixels,
219 const GLubyte *pixels; local
240 pixels = tempImage;
244 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
251 (*ext_tx_compress_dxtn)(4, srcWidth, srcHeight, pixels,
272 const GLubyte *pixels; local
293 pixels = tempImage
324 const GLubyte *pixels; local
    [all...]
  /external/chromium_org/third_party/skia/include/core/
SkPixelRef.h 23 * subclasses to correctly handle lock/unlock pixels. For performance
64 void* pixels() const { return fRec.fPixels; } function in class:SkPixelRef
66 /** Return the current colorTable (if any) if pixels are locked, or null.
73 * To access the actual pixels of a pixelref, it must be "locked".
108 /** Call to balanace a previous call to lockPixels(). Returns the pixels
116 * Some bitmaps can return a copy of their pixels for lockPixels(), but
118 * not be used as targets for a raster device/canvas (since all pixels
123 /** Returns a non-zero, unique value corresponding to the pixels in this
124 pixelref. Each time the pixels are changed (and notifyPixelsChanged is
130 * Call this if you have changed the contents of the pixels. This will in
    [all...]
  /external/icu/icu4c/source/layout/
GlyphPositionAdjustments.cpp 92 LEPoint entryAnchor, exitAnchor, pixels; local
120 fontInstance->getGlyphAdvance(glyphID, pixels);
121 fontInstance->pixelsToUnits(pixels, secondAdvance);
127 fontInstance->getGlyphAdvance(lastExitGlyphID, pixels);
128 fontInstance->pixelsToUnits(pixels, firstAdvance);
  /external/mesa3d/src/mesa/main/
texcompress_s3tc.c 166 const GLubyte *pixels; local
187 pixels = tempImage;
191 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
198 (*ext_tx_compress_dxtn)(3, srcWidth, srcHeight, pixels,
219 const GLubyte *pixels; local
240 pixels = tempImage;
244 pixels = _mesa_image_address2d(srcPacking, srcAddr, srcWidth, srcHeight,
251 (*ext_tx_compress_dxtn)(4, srcWidth, srcHeight, pixels,
272 const GLubyte *pixels; local
293 pixels = tempImage
324 const GLubyte *pixels; local
    [all...]
  /external/qemu/distrib/sdl-1.2.15/test/
testdyngl.c 103 GLfloat pixels[NB_PIXELS*3]; local
141 pixels[3*i]=rand()%250-125;
142 pixels[3*i+1]=rand()%250-125;
143 pixels[3*i+2]=rand()%250-125;
182 f.glVertex3f(pixels[3*i],pixels[3*i+1],pixels[3*i+2]);
testwin.c 81 Uint8 *pixels; local
84 pixels = (Uint8 *)screen->pixels;
86 memset(pixels, black,
88 pixels += screen->pitch;
testwm.c 39 /* Set the surface pixels and refresh! */
51 buffer = (Uint8 *)screen->pixels;
66 Uint8 *pixels; local
95 SDL_SetColorKey(icon, SDL_SRCCOLORKEY, *((Uint8 *)icon->pixels));
98 pixels = (Uint8 *)icon->pixels;
100 icon->format->palette->colors[*pixels].r,
101 icon->format->palette->colors[*pixels].g,
102 icon->format->palette->colors[*pixels].b);
115 if ( pixels[pindex] != *pixels
    [all...]
  /external/skia/include/core/
SkPixelRef.h 23 * subclasses to correctly handle lock/unlock pixels. For performance
64 void* pixels() const { return fRec.fPixels; } function in class:SkPixelRef
66 /** Return the current colorTable (if any) if pixels are locked, or null.
73 * To access the actual pixels of a pixelref, it must be "locked".
108 /** Call to balanace a previous call to lockPixels(). Returns the pixels
116 * Some bitmaps can return a copy of their pixels for lockPixels(), but
118 * not be used as targets for a raster device/canvas (since all pixels
123 /** Returns a non-zero, unique value corresponding to the pixels in this
124 pixelref. Each time the pixels are changed (and notifyPixelsChanged is
130 * Call this if you have changed the contents of the pixels. This will in
    [all...]
  /external/zxing/qr_scanner/src/com/google/zxing/client/android/
PlanarYUVLuminanceSource.java 26 * superfluous pixels around the perimeter and speed up decoding.
112 int[] pixels = new int[width * height]; local
120 pixels[outputOffset + x] = 0xFF000000 | (grey * 0x00010101);
126 bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
  /frameworks/base/media/mca/filterfw/jni/
jni_gl_frame.cpp 201 // Read the frame pixels
202 uint8_t* pixels = new uint8_t[frame->Size()]; local
203 frame->CopyDataTo(pixels, frame->Size());
206 ConvertRGBAToFloats(pixels, frame->Size(), float_array);
209 delete[] pixels;
222 uint8_t* pixels; local
223 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels));
225 const bool success = frame->WriteData(pixels, size);
238 uint8_t* pixels; local
239 const int result = AndroidBitmap_lockPixels(env, bitmap, reinterpret_cast<void**>(&pixels));
    [all...]
  /frameworks/base/packages/PrintSpooler/jni/
com_android_printspooler_util_BitmapSerializeUtils.cpp 107 // Lock the pixels.
108 void* pixels; local
109 result = AndroidBitmap_lockPixels(env, jbitmap, &pixels);
111 throwIllegalStateException(env, (char*) "Cannot lock bitmap pixels");
115 // Read the pixels.
117 read = readAllBytes(fd, (void*) pixels, byteCount);
119 throwIllegalStateException(env, (char*) "Cannot read bitmap pixels");
123 // Unlock the pixels.
126 throwIllegalStateException(env, (char*) "Cannot unlock bitmap pixels");
146 // Lock the pixels
147 void* pixels; local
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
FaceSquareFilterTest.java 79 int[] pixels = new int[bitmap.getByteCount()]; local
80 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(),
116 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) +
118 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) +
120 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + left) +
126 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) +
128 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) +
130 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * (top + j) + right) +
138 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k) +
140 pixels[ImageConstants.PIX_CHANNELS * (bitmap.getWidth() * top + left + k)
    [all...]
  /frameworks/native/opengl/tests/gl_jni/jni/
gl_code.cpp 117 const unsigned int pixels[] = local
131 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
  /frameworks/base/core/java/android/hardware/camera2/
DngCreator.java 148 * @param pixels a {@link android.graphics.Bitmap} of pixel data.
153 public DngCreator setThumbnail(Bitmap pixels) {
154 if (pixels == null) {
158 int width = pixels.getWidth();
159 int height = pixels.getHeight();
167 ByteBuffer rgbBuffer = convertToRGB(pixels);
182 * @param pixels an {@link android.media.Image} object with the format
188 public DngCreator setThumbnail(Image pixels) {
189 if (pixels == null) {
193 int format = pixels.getFormat()
    [all...]

Completed in 1790 milliseconds

1 23 4 5 6 7 8 91011