/external/chromium_org/chrome/common/extensions/docs/examples/api/fontSettings/js/cr/ |
H A D | ui.js | 162 * @param {number} pixels The number of pixels. 165 function toCssPx(pixels) { 166 if (!window.isFinite(pixels)) 167 console.error('Pixel value is not a number: ' + pixels); 168 return Math.round(pixels) + 'px';
|
/external/chromium_org/content/common/ |
H A D | host_shared_bitmap_manager_unittest.cc | 53 EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), 4), 0); 61 EXPECT_TRUE(shared_bitmap2->pixels() == shared_bitmap->pixels()); 63 EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), size_in_bytes), 70 EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), size_in_bytes), 94 memcmp(bitmap->memory(), shared_bitmap->pixels(), size_in_bytes) == 0); 122 EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), size_in_bytes), 155 EXPECT_EQ(memcmp(shared_bitmap->pixels(), bitmap->memory(), size_in_bytes),
|
/external/chromium_org/content/renderer/media/ |
H A D | renderer_gpu_video_accelerator_factories.cc | 192 const SkBitmap& pixels) { 209 static_cast<unsigned char*>(pixels.pixelRef()->pixels()); 211 if (gl_helper->IsReadbackConfigSupported(pixels.colorType())) { 213 tmp_texture, visible_rect, pixel_data, pixels.colorType()); 214 } else if (pixels.colorType() == kN32_SkColorType) { 219 uint32_t* pixels_ptr = static_cast<uint32_t*>(pixels.pixelRef()->pixels()); 189 ReadPixels( uint32 texture_id, const gfx::Rect& visible_rect, const SkBitmap& pixels) argument
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
H A D | Length.cpp | 185 const float pixels = blink::blend(fromPixelsAndPercent.pixels, toPixelsAndPercent.pixels, progress); local 187 return Length(CalculationValue::create(PixelsAndPercent(pixels, percent), range)); 208 result.pixels = -result.pixels; 210 if (result.pixels && result.percent) 214 return Length(result.pixels, Fixed);
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
H A D | DecodingImageGenerator.cpp | 70 bool DecodingImageGenerator::onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount) argument 82 bool decoded = m_frameGenerator->decodeAndScale(m_imageInfo, m_frameIndex, pixels, rowBytes);
|
/external/chromium_org/third_party/angle/tests/angle_tests/ |
H A D | MaxTextureSizeTest.cpp | 126 std::vector<GLubyte> pixels(getWindowWidth() * getWindowHeight() * 4); 127 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, pixels.data()); 133 const GLubyte* prevPixel = pixels.data() + (((y - 1) * getWindowWidth() + (x - 1)) * 4); 134 const GLubyte* curPixel = pixels.data() + ((y * getWindowWidth() + x) * 4); 196 std::vector<GLubyte> pixels(getWindowWidth() * getWindowHeight() * 4); 197 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, pixels.data()); 203 const GLubyte* prevPixel = pixels.data() + (((y - 1) * getWindowWidth() + (x - 1)) * 4); 204 const GLubyte* curPixel = pixels.data() + ((y * getWindowWidth() + x) * 4);
|
/external/chromium_org/third_party/mesa/src/src/glx/apple/ |
H A D | apple_xgl_api.h | 33 GLenum format, GLenum type, void *pixels);
|
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
H A D | pbo.c | 333 GLenum format, GLenum type, const GLvoid *pixels, 341 return pixels; 344 format, type, INT_MAX, pixels)) { 358 return ADD_POINTERS(buf, pixels); 371 GLsizei imageSize, const GLvoid *pixels, 379 return pixels; 381 if ((const GLubyte *) pixels + imageSize > 397 return ADD_POINTERS(buf, pixels); 331 _mesa_validate_pbo_teximage(struct gl_context *ctx, GLuint dimensions, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels, const struct gl_pixelstore_attrib *unpack, const char *funcName) argument 370 _mesa_validate_pbo_compressed_teximage(struct gl_context *ctx, GLsizei imageSize, const GLvoid *pixels, const struct gl_pixelstore_attrib *packing, const char *funcName) argument
|
H A D | texgetimage.c | 72 * 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...] |
H A D | readpix.c | 57 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...] |
/external/chromium_org/third_party/skia/gm/tests/ |
H A D | run.sh | 149 THIS_IMAGE_DIR=$IMAGES_DIR/identical-pixels 152 echo "more bytes that do not change the image pixels" \ 154 echo "more bytes that do not change the image pixels" \ 157 --writeJsonSummaryPath $JSON_DIR/identical-pixels.json 159 THIS_IMAGE_DIR=$IMAGES_DIR/different-pixels 165 --writeJsonSummaryPath $JSON_DIR/different-pixels.json 168 # different-pixels.json, but in which the *first* ignore-failure is changed 172 sed -e "0,/$OLD/{s/$OLD/$NEW/}" $JSON_DIR/different-pixels.json \ 173 >$JSON_DIR/different-pixels-ignore-some-failures.json 175 THIS_IMAGE_DIR=$IMAGES_DIR/different-pixels [all...] |
/external/chromium_org/third_party/skia/include/core/ |
H A D | SkImage.h | 25 * SkImage is an abstraction for drawing a rectagle of pixels, though the 40 static SkImage* NewRasterCopy(const Info&, const void* pixels, size_t rowBytes); 41 static SkImage* NewRasterData(const Info&, SkData* pixels, size_t rowBytes); 64 * Return the GrTexture that stores the image pixels. Calling getTexture 75 * If the image has direct access to its pixels (i.e. they are in local 76 * RAM) return the (const) address of those pixels, and if not null, return 86 * Encode the image's pixels and return the result as a new SkData, which 100 * filled with transparent black pixels. 126 * Return a copy of the image's pixels, limiting them to the subset 130 * If the bitmap's pixels hav [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/ |
H A D | bitmaptools.cc | 71 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/android/ |
H A D | java_bitmap.h | 27 // handles locking and unlocking of the underlying pixels, along with wrapping 34 inline void* pixels() { return pixels_; } function in class:gfx::JavaBitmap 35 inline const void* pixels() const { return pixels_; } function in class:gfx::JavaBitmap
|
/external/chromium_org/ui/webui/resources/js/cr/ |
H A D | ui.js | 163 * @param {number} pixels The number of pixels. 166 function toCssPx(pixels) { 167 if (!window.isFinite(pixels)) 168 console.error('Pixel value is not a number: ' + pixels); 169 return Math.round(pixels) + 'px';
|
/external/mesa3d/src/glx/apple/ |
H A D | apple_xgl_api.h | 33 GLenum format, GLenum type, void *pixels);
|
/external/mesa3d/src/mesa/main/ |
H A D | pbo.c | 333 GLenum format, GLenum type, const GLvoid *pixels, 341 return pixels; 344 format, type, INT_MAX, pixels)) { 358 return ADD_POINTERS(buf, pixels); 371 GLsizei imageSize, const GLvoid *pixels, 379 return pixels; 381 if ((const GLubyte *) pixels + imageSize > 397 return ADD_POINTERS(buf, pixels); 331 _mesa_validate_pbo_teximage(struct gl_context *ctx, GLuint dimensions, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels, const struct gl_pixelstore_attrib *unpack, const char *funcName) argument 370 _mesa_validate_pbo_compressed_teximage(struct gl_context *ctx, GLsizei imageSize, const GLvoid *pixels, const struct gl_pixelstore_attrib *packing, const char *funcName) argument
|
H A D | texgetimage.c | 72 * 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...] |
H A D | readpix.c | 57 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...] |
/external/skia/gm/tests/ |
H A D | run.sh | 149 THIS_IMAGE_DIR=$IMAGES_DIR/identical-pixels 152 echo "more bytes that do not change the image pixels" \ 154 echo "more bytes that do not change the image pixels" \ 157 --writeJsonSummaryPath $JSON_DIR/identical-pixels.json 159 THIS_IMAGE_DIR=$IMAGES_DIR/different-pixels 165 --writeJsonSummaryPath $JSON_DIR/different-pixels.json 168 # different-pixels.json, but in which the *first* ignore-failure is changed 172 sed -e "0,/$OLD/{s/$OLD/$NEW/}" $JSON_DIR/different-pixels.json \ 173 >$JSON_DIR/different-pixels-ignore-some-failures.json 175 THIS_IMAGE_DIR=$IMAGES_DIR/different-pixels [all...] |
/external/skia/include/core/ |
H A D | SkImage.h | 27 * SkImage is an abstraction for drawing a rectagle of pixels, though the 42 static SkImage* NewRasterCopy(const Info&, const void* pixels, size_t rowBytes); 43 static SkImage* NewRasterData(const Info&, SkData* pixels, size_t rowBytes); 58 * Return the GrTexture that stores the image pixels. Calling getTexture 72 * filled with transparent black pixels. 79 * If the image has direct access to its pixels (i.e. they are in local 80 * RAM) return the (const) address of those pixels, and if not null, return 90 * Encode the image's pixels and return the result as a new SkData, which 119 * Return a copy of the image's pixels, limiting them to the subset 123 * If the bitmap's pixels hav [all...] |
/external/qemu/distrib/sdl-1.2.15/test/ |
H A D | testoverlay2.c | 105 p=((Uint8 *) s->pixels)+s->pitch*y; 106 op[0]=o->pixels[0]+o->pitches[0]*y; 107 op[1]=o->pixels[1]+o->pitches[1]*(y/2); 108 op[2]=o->pixels[2]+o->pitches[2]*(y/2); 138 p=((Uint8 *) s->pixels)+s->pitch*y; 139 op[0]=o->pixels[0]+o->pitches[0]*y; 140 op[1]=o->pixels[1]+o->pitches[1]*(y/2); 141 op[2]=o->pixels[2]+o->pitches[2]*(y/2); 170 p=((Uint8 *) s->pixels)+s->pitch*y; 171 op=o->pixels[ [all...] |
H A D | 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[pinde [all...] |
/external/icu/icu4c/source/layout/ |
H A D | 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/skia/src/image/ |
H A D | SkSurface_Raster.cpp | 79 SkSurface_Raster::SkSurface_Raster(const SkImageInfo& info, void* pixels, size_t rb) argument 82 fBitmap.installPixels(info, pixels, rb); 131 // this as its backend, so we can't modify the image's pixels anymore. 139 SkSurface* SkSurface::NewRasterDirect(const SkImageInfo& info, void* pixels, size_t rowBytes) { argument 143 if (NULL == pixels) { 147 return SkNEW_ARGS(SkSurface_Raster, (info, pixels, rowBytes));
|