Searched defs:pixels (Results 51 - 75 of 107) sorted by relevance

12345

/external/skia/tests/
H A DWritePixelsTest.cpp135 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); local
138 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel());
330 intptr_t pixels = reinterpret_cast<intptr_t>(bitmap->getPixels()); local
333 uint32_t* pixel = reinterpret_cast<uint32_t*>(pixels + y * bitmap->rowBytes() + x * 4);
/external/webkit/Source/WebCore/platform/graphics/filters/
H A DFELighting.cpp70 int center = static_cast<int>(pixels->get(offset + cAlphaChannelOffset));
71 int right = static_cast<int>(pixels->get(offset + cPixelSize + cAlphaChannelOffset));
73 int bottom = static_cast<int>(pixels->get(offset + cAlphaChannelOffset));
74 int bottomRight = static_cast<int>(pixels->get(offset + cPixelSize + cAlphaChannelOffset));
81 int left = static_cast<int>(pixels->get(offset - cPixelSize + cAlphaChannelOffset));
82 int center = static_cast<int>(pixels->get(offset + cAlphaChannelOffset));
83 int right = static_cast<int>(pixels->get(offset + cPixelSize + cAlphaChannelOffset));
85 int bottomLeft = static_cast<int>(pixels->get(offset - cPixelSize + cAlphaChannelOffset));
86 int bottom = static_cast<int>(pixels->get(offset + cAlphaChannelOffset));
87 int bottomRight = static_cast<int>(pixels
237 drawLighting(ByteArray* pixels, int width, int height) argument
[all...]
/external/opencv/
H A Dcvjni.cpp170 int *pixels = env->GetIntArrayElements(array_data, 0); local
171 if (pixels == 0) {
172 LOGE("Error getting int array of pixels.");
176 IplImage *image = loadPixels(pixels, width, height);
177 env->ReleaseIntArrayElements(array_data, pixels, 0);
677 int* pixels;
706 pixels = env->GetIntArrayElements(photo_data1, 0);
707 frameImage = loadPixels(pixels, width, height);
717 pixels = env->GetIntArrayElements(photo_data2, 0);
718 frameImage = loadPixels(pixels, widt
[all...]
/external/qemu/android/skin/
H A Dimage.c219 void* pixels; /* 32-bit ARGB */ member in struct:SkinImage
242 if (image->pixels) {
243 free( image->pixels );
244 image->pixels = NULL;
309 * the values as 32-bit ARGB pixels, so swap the bytes accordingly depending
329 image->pixels = data;
333 image->surface = sdl_surface_from_argb32( image->pixels, w, h );
389 D( "skin_image_cache: remove '%s' (rot=%d), %d pixels\n",
507 node->pixels = rotate_image( parent->pixels, paren
[all...]
H A Dtrackball.c163 unsigned* pixels; member in struct:SkinTrackBall
229 ball->pixels = (unsigned*)calloc( diameter2*diameter2, sizeof(unsigned) );
230 ball->surface = sdl_surface_from_argb32( ball->pixels, diameter2, diameter2 );
391 if (ball->pixels) {
392 free( ball->pixels );
393 ball->pixels = NULL;
476 unsigned* pixels = ball->pixels; local
544 pixels[coord->x + diameter*coord->y] = color;
/external/qemu/distrib/sdl-1.2.15/src/video/
H A DSDL_surface.c113 surface->pixels = NULL;
122 /* Get the pixels */
126 surface->pixels = SDL_malloc(surface->h*surface->pitch);
127 if ( surface->pixels == NULL ) {
133 SDL_memset(surface->pixels, 0, surface->h*surface->pitch);
154 SDL_Surface * SDL_CreateRGBSurfaceFrom (void *pixels, argument
164 surface->pixels = pixels;
318 buf = (Uint8 *)surface->pixels + row * surface->pitch + offset;
603 row = (Uint8 *)dst->pixels
689 Uint16 *pixels = (Uint16 *)row; local
710 Uint8 *pixels = row; local
[all...]
H A DSDL_video.c481 /* Now choose the mode that has less pixels */
810 /* If the implementation either supports the packed pixels
861 SDL_memset( SDL_VideoSurface->pixels, 255, SDL_VideoSurface->h * SDL_VideoSurface->pitch );
1594 (Uint8 *)this->screen->pixels +
1753 case 1: { Uint8 *pixels; local
1755 pixels = (Uint8 *)icon->pixels + y*icon->pitch;
1757 if ( *pixels++ == colorkey ) {
1765 case 2: { Uint16 *pixels; local
1767 pixels
1781 case 4: { Uint32 *pixels; local
[all...]
/external/qemu/hw/
H A Dgoldfish_fb.c214 pixels_to_mm(int pixels, int dpi) argument
221 return (int)(0.5 + 25.4 * pixels / dpi);
258 /* Determine the smallest bounding rectangle of pixels which changed
289 * changed pixels.
311 /* Then compute actual bounds of the changed pixels, while
340 /* Convert the guest pixels into host ones */
410 /* Convert the guest pixels into host ones */
427 /* Update bounds if pixels on this line were modified */
/external/quake/quake/src/QW/server/
H A Dmodel.c281 int i, j, pixels, num, max, altmax; local
313 pixels = mt->width*mt->height/64*85;
314 tx = Hunk_AllocName (sizeof(texture_t) +pixels, loadname );
322 // the pixels immediately follow the structures
323 memcpy ( tx+1, mt+1, pixels);
/external/webkit/Source/WebCore/platform/graphics/gpu/
H A DSharedGraphicsContext3D.cpp213 bool SharedGraphicsContext3D::texImage2D(GC3Denum target, GC3Dint level, GC3Denum internalformat, GC3Dsizei width, GC3Dsizei height, GC3Dint border, GC3Denum format, GC3Denum type, const void* pixels) argument
215 if (!pixels)
217 return m_context->texImage2D(target, level, internalformat, width, height, border, format, type, pixels);
220 void SharedGraphicsContext3D::texSubImage2D(GC3Denum target, GC3Dint level, GC3Dint xoffset, GC3Dint yoffset, GC3Dsizei width, GC3Dsizei height, GC3Denum format, GC3Denum type, const void* pixels) argument
222 m_context->texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
/external/webkit/Source/WebCore/platform/graphics/wince/
H A DSharedBitmap.cpp190 PassOwnPtr<HBITMAP> SharedBitmap::createHandle(void** pixels, BitmapInfo* bmpInfo, int height, bool use16bit) const argument
199 OwnPtr<HBITMAP> hbmp = adoptPtr(CreateDIBSection(0, bmpInfo, DIB_RGB_COLORS, pixels, 0, 0));
226 void* pixels; local
227 m_hbitmap = createHandle(&pixels, &bmpInfo, -1, !hasAlpha());
233 m_pixels = pixels;
262 void* pixels; local
264 hTempBitmap = createHandle(&pixels, &bmpInfo, -1, usesTransparentColor());
296 PassOwnPtr<HBITMAP> SharedBitmap::clipBitmap(const IntRect& rect, bool useAlpha, BitmapInfo& bmpInfo, void*& pixels) argument
309 OwnPtr<HBITMAP> newBmp = adoptPtr(CreateDIBSection(0, &bmpInfo, DIB_RGB_COLORS, &pixels, 0, 0));
492 // Relative to destination, in bitmap pixels
507 void* pixels; local
522 void* pixels; local
[all...]
/external/webkit/Source/WebKit/efl/ewk/
H A Dewk_view_single.c200 static inline void _ewk_view_single_scroll_process_single(Ewk_View_Smart_Data *sd, void *pixels, Evas_Coord ow, Evas_Coord oh, const Ewk_Scroll_Request *sr) argument
205 sr->x, sr->y, sr->w, sr->h, sr->dx, sr->dy, pixels, ow, oh);
248 ((uint32_t*)pixels, -sr->dy, sx, sy, sw, sh, ow);
260 ((uint32_t*)pixels, sr->dy, sx, sy, sw, sh, ow);
274 ((uint32_t*)pixels, -sr->dx, sx, sy, sw, sh, ow);
286 ((uint32_t*)pixels, sr->dx, sx, sy, sw, sh, ow);
329 ((uint32_t*)pixels, sr->dx, sr->dy, sx, sy, sw, sh, ow);
343 void *pixels = evas_object_image_data_get(sd->backing_store, 1); local
349 _ewk_view_single_scroll_process_single(sd, pixels, ow, oh, sr);
351 evas_object_image_data_set(sd->backing_store, pixels);
360 void *pixels; local
[all...]
/external/qemu/distrib/sdl-1.2.15/include/
H A DSDL_video.h93 /** This structure should be treated as read-only, except for 'pixels',
101 void *pixels; /**< Read-write */ member in struct:SDL_Surface
213 Uint8 **pixels; /**< Read-write */ member in struct:SDL_Overlay
342 * updates asynchronously, but you must always lock before accessing pixels.
474 * SDL_PHYSPAL -- set physical palette, which controls how pixels look on
533 * this surface, but you must always lock it before accessing the pixels.
546 * and the only way to access the pixels member of the surface is to use
557 extern DECLSPEC SDL_Surface * SDLCALL SDL_CreateRGBSurfaceFrom(void *pixels,
563 * SDL_LockSurface() sets up a surface for directly accessing the pixels.
565 * to and read from 'surface->pixels', usin
[all...]
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/
H A DSDL_dx5video.c1502 if ( video->pixels == NULL ) {
1506 video->pixels = (void *)SDL_malloc(video->h*video->pitch);
1507 if ( video->pixels == NULL ) {
1533 if ( video->pixels != NULL ) {
1534 SDL_free(video->pixels);
1535 video->pixels = NULL;
1756 ddsd.lpSurface = surface->pixels;
1778 if ( ddsd.lpSurface != surface->pixels ) {
2087 surface->pixels = ddsd.lpSurface;
2094 surface->pixels
2462 Uint8 *pixels; local
[all...]
/external/quake/quake/src/QW/client/
H A Dgl_model.c341 int i, j, pixels, num, max, altmax; local
373 pixels = mt->width*mt->height/64*85;
374 tx = Hunk_AllocName (sizeof(texture_t) +pixels, loadname );
382 // the pixels immediately follow the structures
383 memcpy ( tx+1, mt+1, pixels);
1359 Fill background pixels so mipmapping doesn't have haloes - Ed
H A Dmodel.c339 int i, j, pixels, num, max, altmax; local
371 pixels = mt->width*mt->height/64*85;
372 tx = Hunk_AllocName (sizeof(texture_t) +pixels, loadname );
380 // the pixels immediately follow the structures
381 memcpy ( tx+1, mt+1, pixels);
1724 Q_memcpy (&pspriteframe->pixels[0], (byte *)(pinframe + 1), size);
1729 ppixout = (unsigned short *)&pspriteframe->pixels[0];
/external/quake/quake/src/WinQuake/
H A Dgl_model.cpp341 int i, j, pixels, num, max, altmax; local
373 pixels = mt->width*mt->height/64*85;
374 tx = (texture_t*) Hunk_AllocName (sizeof(texture_t) +pixels, loadname );
382 // the pixels immediately follow the structures
383 memcpy ( tx+1, mt+1, pixels);
1334 Fill background pixels so mipmapping doesn't have haloes - Ed
H A Dmodel.cpp357 int i, j, pixels, num, max, altmax; local
389 pixels = mt->width*mt->height/64*85;
390 tx = Hunk_AllocName (sizeof(texture_t) +pixels, loadname );
398 // the pixels immediately follow the structures
399 memcpy ( tx+1, mt+1, pixels);
1701 Q_memcpy (&pspriteframe->pixels[0], (byte *)(pinframe + 1), size);
1706 ppixout = (unsigned short *)&pspriteframe->pixels[0];
H A Dmodel.h195 byte pixels[4]; member in struct:mspriteframe_s
/external/skia/src/core/
H A DSkBitmap.cpp61 const void* pixels() const { return levels() + fLevelCount; } function in struct:SkBitmap::MipMap
62 void* pixels() { return levels() + fLevelCount; } function in struct:SkBitmap::MipMap
109 1. no pixelref, in which case we just copy/ref the pixels/ctable
110 2. unlocked pixelref, pixels/ctable should be null
116 } else { // we have a pixelref, so pixels/ctable reflect it
121 // way to track changes to raw pixels across multiple SkBitmaps.
289 void* p = fPixelRef->pixels();
372 // if we're gonna free the pixels, we certainly need to free the mipmap
426 /** We explicitly use the same allocator for our pixels that SkMask does,
780 return false; // no src pixels
[all...]
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/
H A DTexture.cpp244 // Store the pixel rectangle designated by xoffset,yoffset,width,height with pixels stored as format/type at input
783 void Texture::setImage(GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels, Image *img) argument
787 if (pixels != NULL && img->surface != NULL)
799 loadImageData(0, 0, width, height, format, type, unpackAlignment, pixels, locked.Pitch, locked.pBits, &description);
809 void Texture::setCompressedImage(GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *pixels, Image *img) argument
813 if (pixels != NULL && img->surface != NULL)
822 memcpy(locked.pBits, pixels, imageSize);
832 bool Texture::subImage(GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels, Image *img) argument
845 if (pixels != NULL && img->surface != NULL)
857 loadImageData(xoffset, yoffset, width, height, format, type, unpackAlignment, pixels, locke
867 subImageCompressed(GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *pixels, Image *img) argument
1263 setImage(GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
1270 setCompressedImage(GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei imageSize, const void *pixels) argument
1312 subImage(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
1320 subImageCompressed(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *pixels) argument
1777 setImagePosX(GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
1782 setImageNegX(GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
1787 setImagePosY(GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
1792 setImageNegY(GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
1797 setImagePosZ(GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
1802 setImageNegZ(GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
1807 setCompressedImage(GLenum face, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei imageSize, const void *pixels) argument
1849 subImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
1857 subImageCompressed(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *pixels) argument
2074 setImage(int face, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/
H A DGraphicsContext3D.cpp237 const void* pixels,
307 if (!packPixels(static_cast<const uint8_t*>(pixels),
233 extractTextureData(unsigned int width, unsigned int height, GC3Denum format, GC3Denum type, unsigned int unpackAlignment, bool flipY, bool premultiplyAlpha, const void* pixels, Vector<uint8_t>& data) argument
H A DShadowBlur.cpp75 // Round to the nearest 32 pixels so we do not grow the buffer for similar sized requests.
251 unsigned char* pixels = imageData; local
253 for (int j = 0; j < final; ++j, pixels += delta) {
257 // This is much more efficient than computing the sum of each pixels
265 int alpha1 = pixels[channels[step]];
266 int alpha2 = pixels[(dim - 1) * stride + channels[step]];
268 unsigned char* ptr = pixels + channels[step + 1];
269 unsigned char* prev = pixels + stride + channels[step];
270 unsigned char* next = pixels + ofs * stride + channels[step];
288 prev = pixels
[all...]
/external/webkit/Source/WebCore/platform/graphics/android/rendering/
H A DGLUtils.cpp321 GLubyte pixels[4 *3] = { local
329 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 2, 2, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
341 GLubyte pixels[4 *3] = { local
349 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 2, 2, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
361 GLubyte* pixels = 0; local
364 pixels = new GLubyte[length];
366 pixels[i] = i % 256;
370 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
377 delete pixels;
632 ALOGD("no pixels
[all...]
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DLayerRendererChromium.cpp475 void LayerRendererChromium::getFramebufferPixels(void *pixels, const IntRect& rect) argument
479 if (!pixels)
485 GraphicsContext3D::RGBA, GraphicsContext3D::UNSIGNED_BYTE, pixels));

Completed in 780 milliseconds

12345