Searched defs:pixels (Results 126 - 150 of 318) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/include/core/
H A DSkPixelRef.h23 * 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
[all...]
/external/chromium_org/third_party/skia/samplecode/
H A DSampleHairline.cpp54 static bool check_zeros(const SkPMColor pixels[], int count, int skip) { argument
56 if (*pixels) {
59 pixels += skip;
H A DSampleVertices.cpp36 uint32_t* pixels = (uint32_t*) bm.getPixels(); local
37 pixels[0] = pixels[2] = color0;
38 pixels[1] = pixels[3] = color1;
/external/chromium_org/third_party/skia/src/core/
H A DSkDevice.cpp94 bool SkBaseDevice::writePixels(const SkImageInfo& info, const void* pixels, size_t rowBytes, argument
98 SkASSERT(pixels);
106 return this->onWritePixels(info, pixels, rowBytes, x, y);
H A DSkPixelRef.cpp140 void SkPixelRef::setPreLocked(void* pixels, size_t rowBytes, SkColorTable* ctable) { argument
144 fRec.fPixels = pixels;
158 // pixels (barring overflow). However, each process has its own "namespace"
/external/chromium_org/third_party/skia/src/images/
H A DSkDecodingImageGenerator.cpp46 void* pixels, size_t rowBytes,
80 fTarget = NULL; // never alloc same pixels twice!
154 void* pixels, size_t rowBytes,
174 TargetAllocator allocator(fInfo, pixels, rowBytes);
182 if (allocator.isReady()) { // Did not use pixels!
153 onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctableEntries[], int* ctableCount) argument
H A Dbmpdecoderhelper.cpp188 uint8 pixels = GetByte(); local
190 uint8 col = pixels;
194 col = pixels & 0xf;
196 col = pixels >> 4;
/external/chromium_org/third_party/skia/src/utils/
H A DSkCanvasStateUtils.cpp64 void* pixels; // The pixels, all (height * rowBytes) of them. member in struct:SkCanvasLayerState::__anon14615::__anon14616
118 // references to the content that is referenced by this canvas (e.g. pixels)
246 layerState->raster.pixels = bitmap.getPixels();
304 layerState.raster.pixels, (size_t) layerState.raster.rowBytes);
/external/chromium_org/third_party/skia/src/utils/mac/
H A DSkCreateCGImageRef.cpp108 // here we make a ceep copy of the pixels, since CG won't take our
132 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release
133 // proc, which will in turn unlock the pixels
250 SK_API bool SkCopyPixelsFromCGImage(const SkImageInfo& info, size_t rowBytes, void* pixels, argument
268 CGContextRef cg = CGBitmapContextCreate(pixels, info.width(), info.height(), bitsPerComponent,
275 // use this blend mode, to avoid having to erase the pixels first, and to avoid CG performing
/external/chromium_org/tools/telemetry/telemetry/core/
H A Dbitmap.py6 Bitmap is a basic wrapper for image pixels. It includes some basic processing
42 raise ValueError('First histogram has 0 pixels in it.')
44 raise ValueError('Second histogram has 0 pixels in it.')
124 def __init__(self, dimensions, pixels):
138 if type(pixels) is not bytearray:
139 pixels = bytearray(pixels)
140 self._popen.stdin.write(pixels)
180 def __init__(self, bpp, width, height, pixels, metadata=None):
184 assert pixels, 'Mus
217 def pixels(self): member in class:Bitmap
[all...]
H A Dbitmaptools.cc71 Bitmap() : pixels(NULL) {}
74 if (pixels)
75 delete[] pixels;
79 // bpp, width, height, box, pixels
111 pixels = new unsigned char[size];
112 if (fread(pixels, sizeof(pixels[0]), size, stdin) <
114 fprintf(stderr, "Not enough pixels found,\n");
120 data = pixels + box.top * row_stride + box.left * pixel_stride;
139 unsigned char* pixels; member in struct:Bitmap
[all...]
/external/chromium_org/ui/gfx/
H A Dgdi_util.cc123 int src_x, int src_y, int src_w, int src_h, void* pixels,
135 pixels, bitmap_info, DIB_RGB_COLORS, SRCCOPY);
140 pixels, bitmap_info, DIB_RGB_COLORS, SRCCOPY);
122 StretchDIBits(HDC hdc, int dest_x, int dest_y, int dest_w, int dest_h, int src_x, int src_y, int src_w, int src_h, void* pixels, const BITMAPINFO* bitmap_info) argument
H A Dskbitmap_operations_unittest.cc73 // Loop through the pixels of the original bitmap.
75 SkPMColor* pixels = bitmap.getAddr32(0, y); local
80 SkUnPreMultiply::PMColorToColor(pixels[x]), hsl_shift));
366 // 2x2 block of pixels is handled correctly.
541 // This region is a semi-transparent red to test non-opaque pixels.
/external/deqp/framework/delibs/deimage/
H A DdeImage.c41 return (void*)((deUint8*)image->pixels + offset);
54 image->pixels = deMalloc(width * height * bpp);
55 if (!image->pixels)
60 memset(image->pixels, 0, width * height * bpp);
67 deFree(image->pixels);
105 memcpy(converted->pixels, image->pixels, width * height * deImageFormat_getBytesPerPixel(format));
161 void deImage_copyToUint8RGBA (const deImage* image, deUint8* pixels) argument
172 pixels[4*ndx+0] = (deUint8)deARGB_getRed(pixel);
173 pixels[
[all...]
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Dintel_pixel_bitmap.c316 * - per pixel or run of pixels
330 const GLubyte * pixels)
336 unpack, pixels))
339 _mesa_meta_Bitmap(ctx, x, y, width, height, unpack, pixels);
326 intelBitmap(struct gl_context * ctx, GLint x, GLint y, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte * pixels) argument
H A Dintel_tex_image.c136 GLenum format, GLenum type, const void *pixels)
173 src_offset += (GLuint) (unsigned long) pixels;
206 GLenum format, GLenum type, const void *pixels,
216 try_pbo_upload(ctx, texImage, unpack, format, type, pixels)) {
220 DBG("%s: upload image %dx%dx%d pixels %p\n",
222 pixels);
225 format, type, pixels, unpack);
133 try_pbo_upload(struct gl_context *ctx, struct gl_texture_image *image, const struct gl_pixelstore_attrib *unpack, GLenum format, GLenum type, const void *pixels) argument
203 intelTexImage(struct gl_context * ctx, GLuint dims, struct gl_texture_image *texImage, GLenum format, GLenum type, const void *pixels, const struct gl_pixelstore_attrib *unpack) argument
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dintel_pixel_bitmap.c316 * - per pixel or run of pixels
330 const GLubyte * pixels)
336 unpack, pixels))
339 _mesa_meta_Bitmap(ctx, x, y, width, height, unpack, pixels);
326 intelBitmap(struct gl_context * ctx, GLint x, GLint y, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte * pixels) argument
H A Dintel_tex_image.c136 GLenum format, GLenum type, const void *pixels)
173 src_offset += (GLuint) (unsigned long) pixels;
206 GLenum format, GLenum type, const void *pixels,
216 try_pbo_upload(ctx, texImage, unpack, format, type, pixels)) {
220 DBG("%s: upload image %dx%dx%d pixels %p\n",
222 pixels);
225 format, type, pixels, unpack);
133 try_pbo_upload(struct gl_context *ctx, struct gl_texture_image *image, const struct gl_pixelstore_attrib *unpack, GLenum format, GLenum type, const void *pixels) argument
203 intelTexImage(struct gl_context * ctx, GLuint dims, struct gl_texture_image *texImage, GLenum format, GLenum type, const void *pixels, const struct gl_pixelstore_attrib *unpack) argument
/external/mesa3d/src/mesa/drivers/dri/intel/
H A Dintel_pixel_bitmap.c316 * - per pixel or run of pixels
330 const GLubyte * pixels)
336 unpack, pixels))
339 _mesa_meta_Bitmap(ctx, x, y, width, height, unpack, pixels);
326 intelBitmap(struct gl_context * ctx, GLint x, GLint y, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLubyte * pixels) argument
H A Dintel_tex_image.c136 GLenum format, GLenum type, const void *pixels)
173 src_offset += (GLuint) (unsigned long) pixels;
206 GLenum format, GLenum type, const void *pixels,
216 try_pbo_upload(ctx, texImage, unpack, format, type, pixels)) {
220 DBG("%s: upload image %dx%dx%d pixels %p\n",
222 pixels);
225 format, type, pixels, unpack);
133 try_pbo_upload(struct gl_context *ctx, struct gl_texture_image *image, const struct gl_pixelstore_attrib *unpack, GLenum format, GLenum type, const void *pixels) argument
203 intelTexImage(struct gl_context * ctx, GLuint dims, struct gl_texture_image *texImage, GLenum format, GLenum type, const void *pixels, const struct gl_pixelstore_attrib *unpack) argument
/external/mesa3d/src/mesa/main/
H A Dreadpix.c57 GLenum type, GLvoid *pixels,
87 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
107 * Read pixels for format=GL_DEPTH_COMPONENT.
113 GLenum type, GLvoid *pixels,
132 if (fast_read_depth_pixels(ctx, x, y, width, height, type, pixels, packing))
136 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height,
169 * Read pixels for format=GL_STENCIL_INDEX.
175 GLenum type, GLvoid *pixels,
202 dest = _mesa_image_address2d(packing, pixels, width, height,
229 GLvoid *pixels,
54 fast_read_depth_pixels( struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum type, GLvoid *pixels, const struct gl_pixelstore_attrib *packing ) argument
110 read_depth_pixels( struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum type, GLvoid *pixels, const struct gl_pixelstore_attrib *packing ) argument
172 read_stencil_pixels( struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum type, GLvoid *pixels, const struct gl_pixelstore_attrib *packing ) argument
225 fast_read_rgba_pixels_memcpy( struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels, const struct gl_pixelstore_attrib *packing, GLbitfield transferOps ) argument
318 slow_read_rgba_pixels( struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels, const struct gl_pixelstore_attrib *packing, GLbitfield transferOps ) argument
382 read_rgba_pixels( struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels, const struct gl_pixelstore_attrib *packing ) argument
597 read_depth_stencil_pixels(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum type, GLvoid *pixels, const struct gl_pixelstore_attrib *packing ) argument
641 _mesa_readpixels(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, const struct gl_pixelstore_attrib *packing, GLvoid *pixels) argument
[all...]
H A Dtexcompress_s3tc.c166 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
324 const GLubyte *pixels; local
[all...]
H A Dtexgetimage.c72 * glGetTexImage for depth/Z pixels.
76 GLenum format, GLenum type, GLvoid *pixels,
101 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
122 * glGetTexImage for depth/stencil pixels.
126 GLenum format, GLenum type, GLvoid *pixels,
146 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
167 * glGetTexImage for YCbCr pixels.
171 GLenum format, GLenum type, GLvoid *pixels,
191 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
224 GLenum format, GLenum type, GLvoid *pixels,
75 get_tex_depth(struct gl_context *ctx, GLuint dimensions, GLenum format, GLenum type, GLvoid *pixels, struct gl_texture_image *texImage) argument
125 get_tex_depth_stencil(struct gl_context *ctx, GLuint dimensions, GLenum format, GLenum type, GLvoid *pixels, struct gl_texture_image *texImage) argument
170 get_tex_ycbcr(struct gl_context *ctx, GLuint dimensions, GLenum format, GLenum type, GLvoid *pixels, struct gl_texture_image *texImage) argument
223 get_tex_rgba_compressed(struct gl_context *ctx, GLuint dimensions, GLenum format, GLenum type, GLvoid *pixels, struct gl_texture_image *texImage, GLbitfield transferOps) argument
317 get_tex_rgba_uncompressed(struct gl_context *ctx, GLuint dimensions, GLenum format, GLenum type, GLvoid *pixels, struct gl_texture_image *texImage, GLbitfield transferOps) argument
428 get_tex_rgba(struct gl_context *ctx, GLuint dimensions, GLenum format, GLenum type, GLvoid *pixels, struct gl_texture_image *texImage) argument
464 get_tex_memcpy(struct gl_context *ctx, GLenum format, GLenum type, GLvoid *pixels, struct gl_texture_image *texImage) argument
533 _mesa_get_teximage(struct gl_context *ctx, GLenum format, GLenum type, GLvoid *pixels, struct gl_texture_image *texImage) argument
[all...]
/external/mesa3d/src/mesa/swrast/
H A Ds_drawpix.c56 const GLvoid *pixels)
59 _mesa_image_address2d(unpack, pixels, width,
103 const GLvoid *pixels)
106 _mesa_image_address2d(unpack, pixels, width,
152 const GLvoid *pixels)
155 _mesa_image_address2d(unpack, pixels, width,
196 const GLvoid *pixels)
229 &unpack, pixels);
238 &unpack, pixels);
245 format, type, &unpack, pixels);
51 fast_draw_rgb_ubyte_pixels(struct gl_context *ctx, struct gl_renderbuffer *rb, GLint x, GLint y, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLvoid *pixels) argument
98 fast_draw_rgba_ubyte_pixels(struct gl_context *ctx, struct gl_renderbuffer *rb, GLint x, GLint y, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLvoid *pixels) argument
146 fast_draw_generic_pixels(struct gl_context *ctx, struct gl_renderbuffer *rb, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, const struct gl_pixelstore_attrib *unpack, const GLvoid *pixels) argument
192 fast_draw_rgba_pixels(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, const struct gl_pixelstore_attrib *userUnpack, const GLvoid *pixels) argument
509 fast_draw_depth_stencil(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, const GLvoid *pixels) argument
549 draw_depth_stencil_pixels(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height, GLenum type, const struct gl_pixelstore_attrib *unpack, const GLvoid *pixels) argument
[all...]
/external/opencv/otherlibs/highgui/
H A Dcvcap_socket.cpp186 // Helper to load pixels from a byte stream received over a socket.
187 static IplImage* loadPixels(char* pixels, int width, int height) { argument
196 IMAGE( img, x, y, 0 ) = pixels[pos + 3] & 0xFF;
198 IMAGE( img, x, y, 1 ) = pixels[pos + 2] & 0xFF;
200 IMAGE( img, x, y, 2 ) = pixels[pos + 1] & 0xFF;
261 // If we read all of the data we expected, we will load the frame from the pixels.
268 LOGV("full read of pixels failed");

Completed in 961 milliseconds

1234567891011>>