/external/skia/src/pdf/ |
SkPDFImage.cpp | 32 void extractImageData(const SkBitmap& bitmap, const SkIRect& srcRect, 42 const int rowBytes = srcRect.width(); 43 image = new SkMemoryStream(rowBytes * srcRect.height()); 45 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) { 46 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes); 52 const int rowBytes = srcRect.width(); 53 image = new SkMemoryStream(rowBytes * srcRect.height()); 57 for (int y = srcRect.fTop; y < srcRect.fBottom; y++) [all...] |
/external/skia/gm/ |
nocolorbleed.cpp | 44 SkIRect srcRect; 49 srcRect.setXYWH(0, 0, 4, 4); 52 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint); 55 canvas->drawBitmapRect(sprite, &srcRect, dstRect); 57 srcRect.setXYWH(1, 1, 2, 2); 60 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint); 63 canvas->drawBitmapRect(sprite, &srcRect, dstRect);
|
/external/skia/samplecode/ |
SampleTextureDomain.cpp | 41 SkIRect srcRect; 48 srcRect.setXYWH(1, 1, 3, 3); 50 canvas->drawBitmapRect(fBM, &srcRect, dstRect, &paint); 62 srcRect.setXYWH(1, 1, 3, 3); 64 secondCanvas.drawBitmapRect(fBM, &srcRect, dstRect, &paint); 68 srcRect.setXYWH(1, 1, 3, 3); 70 canvas->drawBitmapRect(deviceBitmap, &srcRect, dstRect, &paint);
|
/external/webkit/Source/WebCore/platform/graphics/ |
GeneratedImage.cpp | 37 void GeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator compositeOp) 43 if (dstRect.size() != srcRect.size()) 44 context->scale(FloatSize(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height())); 45 context->translate(-srcRect.x(), -srcRect.y()); 50 void GeneratedImage::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const AffineTransform& patternTransform, 55 FloatRect adjustedSrcRect = srcRect;
|
Image.cpp | 90 static inline FloatSize calculatePatternScale(const FloatRect& dstRect, const FloatRect& srcRect, Image::TileRule hRule, Image::TileRule vRule) 95 scaleX = dstRect.width() / srcRect.width(); 97 scaleY = dstRect.height() / srcRect.height(); 148 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, TileRule hRule, TileRule vRule, ColorSpace styleColorSpace, CompositeOperator op) 161 FloatSize scale = calculatePatternScale(dstRect, srcRect, hRule, vRule); 166 float hPhase = scale.width() * srcRect.x(); 167 float vPhase = scale.height() * srcRect.y(); 169 hPhase -= fmodf(dstRect.width(), scale.width() * srcRect.width()) / 2.0f; 171 vPhase -= fmodf(dstRect.height(), scale.height() * srcRect.height()) / 2.0f; 174 drawPattern(ctxt, srcRect, patternTransform, patternPhase, styleColorSpace, op, dstRect) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ |
SDL_stretch.c | 173 int SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect, 197 if ( srcrect ) { 198 if ( (srcrect->x < 0) || (srcrect->y < 0) || 199 ((srcrect->x+srcrect->w) > src->w) || 200 ((srcrect->y+srcrect->h) > src->h) ) { 209 srcrect = &full_src; 250 inc = (srcrect->h << 16) / dstrect->h [all...] |
SDL_RLEaccel_c.h | 27 extern int SDL_RLEBlit(SDL_Surface *src, SDL_Rect *srcrect, 29 extern int SDL_RLEAlphaBlit(SDL_Surface *src, SDL_Rect *srcrect,
|
/external/qemu/distrib/sdl-1.2.12/src/video/cybergfx/ |
SDL_cgxaccel.c | 30 static int CGX_HWAccelBlit(SDL_Surface *src, SDL_Rect *srcrect, 203 static int CGX_HWAccelBlit(SDL_Surface *src, SDL_Rect *srcrect, 214 BMKBRP(src->hwdata->bmap,srcrect->x,srcrect->y, 216 srcrect->w,srcrect->h,0xc0,src->hwdata->mask); 227 BMKBRP(src->hwdata->bmap,srcrect->x,srcrect->y, 229 srcrect->w,srcrect->h,0xc0,src->hwdata->mask) [all...] |
/external/webkit/Source/WebKit2/Shared/qt/ |
ShareableBitmapQt.cpp | 50 void ShareableBitmap::paint(GraphicsContext& context, const IntPoint& dstPoint, const IntRect& srcRect) 54 painter->translate(-srcRect.x(), -srcRect.y()); 55 painter->drawImage(dstPoint, image, QRect(srcRect)); 56 painter->translate(srcRect.x(), srcRect.y());
|
/hardware/ti/omap4xxx/libI420colorconvert/ |
ColorConvert.cpp | 26 void* srcBits, int srcWidth, int srcHeight, ARect srcRect, void* dstBits) { 29 srcWidth * srcRect.top + srcRect.left; 31 srcWidth * (srcHeight - srcRect.top / 2); 33 int dstWidth = srcRect.right - srcRect.left + 1; 34 int dstHeight = srcRect.bottom - srcRect.top + 1;
|
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
TilingData.cpp | 191 IntRect TilingData::overlappedTileIndices(const WebCore::IntRect &srcRect) const 193 int x = tileXIndexFromSrcCoord(srcRect.x()); 194 int y = tileYIndexFromSrcCoord(srcRect.y()); 195 int r = tileXIndexFromSrcCoord(srcRect.maxX()); 196 int b = tileYIndexFromSrcCoord(srcRect.maxY()); 200 IntRect TilingData::overlappedTileIndices(const WebCore::FloatRect &srcRect) const 202 return overlappedTileIndices(enclosingIntRect(srcRect)); 205 void TilingData::intersectDrawQuad(const FloatRect& srcRect, const FloatRect& dstRect, int tile, 210 FloatRect srcRectIntersected = srcRect; 218 float srcRectIntersectedNormX = (srcRectIntersected.x() - srcRect.x()) / srcRect.width() [all...] |
/external/webkit/Source/WebCore/svg/graphics/filters/ |
SVGFEImage.cpp | 52 FloatRect srcRect(FloatPoint(), m_image->size()); 54 m_preserveAspectRatio.transformRect(paintRect, srcRect); 68 FloatRect srcRect(FloatPoint(), m_image->size()); 70 m_preserveAspectRatio.transformRect(destRect, srcRect); 75 resultImage->context()->drawImage(m_image.get(), ColorSpaceDeviceRGB, destRect, srcRect);
|
/external/webkit/Source/WebCore/platform/graphics/openvg/ |
ImageOpenVG.cpp | 115 static void adjustSourceRectForDownSampling(FloatRect& srcRect, const IntSize& origSize, const IntSize& scaledSize) 123 double temp = srcRect.right() * rate; 124 srcRect.setX(srcRect.x() * rate); 125 srcRect.setWidth(temp - srcRect.x()); 126 temp = srcRect.bottom() * rate; 127 srcRect.setY(srcRect.y() * rate); 128 srcRect.setHeight(temp - srcRect.y()) [all...] |
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
GLES2Canvas.cpp | 395 void GLES2Canvas::drawTexturedRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace colorSpace, CompositeOperator compositeOp) 405 drawTexturedQuad(textureSize, srcRect, dstRect, m_state->m_ctm, m_state->m_alpha); 408 void GLES2Canvas::drawTexturedRect(Texture* texture, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace colorSpace, CompositeOperator compositeOp) 410 drawTexturedRect(texture, srcRect, dstRect, m_state->m_ctm, m_state->m_alpha, colorSpace, compositeOp, m_state->clippingEnabled()); 414 void GLES2Canvas::drawTexturedRect(Texture* texture, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform& transform, float alpha, ColorSpace colorSpace, CompositeOperator compositeOp, bool clip) 420 IntRect tileIdxRect = tiles.overlappedTileIndices(srcRect); 426 drawTexturedRectTile(texture, tiles.tileIndex(x, y), srcRect, dstRect, transform, alpha); 430 void GLES2Canvas::drawTexturedRectTile(Texture* texture, int tile, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform& transform, float alpha) 441 tiles.intersectDrawQuad(srcRect, dstRect, tile, &srcRectClippedInTileSpace, &dstRectIntersected); 448 void GLES2Canvas::convolveRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, float imageIncrement[2], const float* kernel, int kernelWidth [all...] |
GLES2Canvas.h | 88 void drawTexturedRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace, CompositeOperator); 90 void drawTexturedRect(Texture*, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace, CompositeOperator); 92 void drawTexturedRect(Texture*, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha, ColorSpace, CompositeOperator, bool clip); 105 void drawTexturedRectTile(Texture* texture, int tile, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha); 106 void drawTexturedQuad(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha); 107 void drawTexturedQuadMitchell(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha); 108 void convolveRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, float imageIncrement[2], const float* kernel, int kernelWidth);
|
/external/webkit/Source/WebCore/svg/ |
SVGPreserveAspectRatio.cpp | 159 void SVGPreserveAspectRatio::transformRect(FloatRect& destRect, FloatRect& srcRect) 161 FloatSize imageSize = srcRect.size(); 168 float widthToHeightMultiplier = srcRect.height() / srcRect.width(); 206 float widthToHeightMultiplier = srcRect.height() / srcRect.width(); 209 float destToSrcMultiplier = srcRect.width() / destRect.width(); 210 srcRect.setHeight(destRect.height() * destToSrcMultiplier); 215 srcRect.setY(destRect.y() + imageSize.height() / 2 - srcRect.height() / 2) [all...] |
/external/webkit/Source/WebCore/platform/graphics/wx/ |
ImageWx.cpp | 180 void Image::drawPattern(GraphicsContext* ctxt, const FloatRect& srcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace, CompositeOperator, const FloatRect& dstRect) 204 float adjustedX = phase.x() + srcRect.x() * 206 float adjustedY = phase.y() + srcRect.y() * 222 gc->DrawBitmap(*bitmap, adjustedX + currentW, adjustedY + currentH, (wxDouble)srcRect.width(), (wxDouble)srcRect.height()); 224 gc->DrawGraphicsBitmap(*bitmap, adjustedX + currentW, adjustedY + currentH, (wxDouble)srcRect.width(), (wxDouble)srcRect.height()); 228 (wxCoord)srcRect.width(), (wxCoord)srcRect.height(), &mydc, 229 (wxCoord)srcRect.x(), (wxCoord)srcRect.y(), wxCOPY, true); [all...] |
/frameworks/base/media/libstagefright/yuv/ |
YUVCanvas.cpp | 52 const Rect& srcRect, 58 srcRect, 64 int32_t srcStartX = srcRect.left; 65 int32_t srcStartY = srcRect.top; 66 for (int32_t offsetY = 0; offsetY < srcRect.height(); ++offsetY) { 67 for (int32_t offsetX = 0; offsetX < srcRect.width(); ++offsetX) {
|
YUVImage.cpp | 196 const Rect& srcRect, 202 int32_t srcStartX = srcRect.left; 203 int32_t srcStartY = srcRect.top; 204 int32_t width = srcRect.width(); 205 int32_t height = srcRect.height(); 278 const Rect& srcRect, 284 int32_t srcStartX = srcRect.left; 285 int32_t srcStartY = srcRect.top; 286 int32_t width = srcRect.width(); 287 int32_t height = srcRect.height() [all...] |
/external/chromium/chrome/browser/ui/cocoa/ |
image_utils.mm | 10 fromRect:(NSRect)srcRect 29 fromRect:srcRect
|
/frameworks/base/core/java/android/view/ |
FocusFinderHelper.java | 44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { 45 return mFocusFinder.isCandidate(srcRect, destRect, direction);
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
GLExtras.cpp | 77 void GLExtras::drawRing(SkRect& srcRect, int* texture, int r, int g, int b, float a) 82 if (srcRect.fRight <= srcRect.fLeft || srcRect.fBottom <= srcRect.fTop) { 86 XLOG("drawQuad [%fx%f, %f, %f]", srcRect.fLeft, srcRect.fTop, 87 srcRect.width(), srcRect.height()); 88 TilesManager::instance()->shader()->drawQuad(srcRect, *texture, a) [all...] |
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
ImageCairo.cpp | 98 FloatRect srcRect(src); 102 srcRect.width() == 0.0f || srcRect.height() == 0.0f) 134 float scaleX = srcRect.width() / dstRect.width(); 135 float scaleY = srcRect.height() / dstRect.height(); 136 cairo_matrix_t matrix = { scaleX, 0, 0, scaleY, srcRect.x(), srcRect.y() };
|
/external/webkit/Source/WebCore/platform/graphics/cg/ |
PDFDocumentImage.cpp | 156 void PDFDocumentImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator op) 165 float hScale = dstRect.width() / srcRect.width(); 166 float vScale = dstRect.height() / srcRect.height(); 171 CGContextTranslateCTM(context->platformContext(), dstRect.x() - srcRect.x() * hScale, dstRect.y() - srcRect.y() * vScale); 174 CGContextTranslateCTM(context->platformContext(), 0, -srcRect.height()); 175 CGContextClipToRect(context->platformContext(), CGRectIntegral(srcRect));
|
/external/qemu/distrib/sdl-1.2.12/src/video/windx5/ |
SDL_dx5yuv.c | 254 RECT srcrect, dstrect; local 257 srcrect.top = src->y; 258 srcrect.bottom = srcrect.top+src->h; 259 srcrect.left = src->x; 260 srcrect.right = srcrect.left+src->w; 266 result = IDirectDrawSurface3_UpdateOverlay(surface, &srcrect, 273 result = IDirectDrawSurface3_Blt(SDL_primary, &dstrect, surface, &srcrect,
|