/external/chromium_org/third_party/skia/src/pdf/ |
SkPDFImage.cpp | 29 const SkIRect& srcRect) { 32 return srcRect.width() * srcRect.height(); 34 return ((srcRect.width() * 3 + 1) / 2) * srcRect.height(); 36 return srcRect.width() * 3 * srcRect.height(); 38 return srcRect.width() * 3 * srcRect.height(); 48 const SkIRect& srcRect) { [all...] |
SkPDFImage.h | 35 * @param srcRect The rectangle to cut out of bitmap. 41 const SkIRect& srcRect, 78 * @param srcRect The clipping applied to bitmap before generating 84 const SkIRect& srcRect, SkPicture::EncodeBitmap encoder);
|
/external/skia/src/pdf/ |
SkPDFImage.cpp | 29 const SkIRect& srcRect) { 32 return srcRect.width() * srcRect.height(); 34 return ((srcRect.width() * 3 + 1) / 2) * srcRect.height(); 36 return srcRect.width() * 3 * srcRect.height(); 38 return srcRect.width() * 3 * srcRect.height(); 48 const SkIRect& srcRect) { [all...] |
SkPDFImage.h | 35 * @param srcRect The rectangle to cut out of bitmap. 41 const SkIRect& srcRect, 78 * @param srcRect The clipping applied to bitmap before generating 84 const SkIRect& srcRect, SkPicture::EncodeBitmap encoder);
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
GradientGeneratedImage.cpp | 34 void GradientGeneratedImage::draw(GraphicsContext* destContext, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode) 40 if (destRect.size() != srcRect.size()) 41 destContext->scale(FloatSize(destRect.width() / srcRect.width(), destRect.height() / srcRect.height())); 42 destContext->translate(-srcRect.x(), -srcRect.y()); 47 void GradientGeneratedImage::drawPattern(GraphicsContext* destContext, const FloatRect& srcRect, const FloatSize& scale, 50 float stepX = srcRect.width() + repeatSpacing.width(); 51 float stepY = srcRect.height() + repeatSpacing.height(); 52 int firstColumn = static_cast<int>(floorf((((destRect.x() - phase.x()) / scale.width()) - srcRect.x()) / srcRect.width())) [all...] |
CrossfadeGeneratedImage.cpp | 87 void CrossfadeGeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode) 93 if (dstRect.size() != srcRect.size()) 94 context->scale(FloatSize(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height())); 95 context->translate(-srcRect.x(), -srcRect.y()); 100 void CrossfadeGeneratedImage::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& dstRect, blink::WebBlendMode blendMode, const IntSize& repeatSpacing) 111 imageBuffer->drawPattern(context, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSpacing);
|
Image.cpp | 119 void Image::draw(GraphicsContext* ctx, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator op, blink::WebBlendMode blendMode, RespectImageOrientationEnum) 121 draw(ctx, dstRect, srcRect, op, blendMode); 167 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, 187 float hRepetitions = std::max(1.0f, roundf(dstRect.width() / (tileScaleFactor.width() * srcRect.width()))); 188 tileScaleFactor.setWidth(dstRect.width() / (srcRect.width() * hRepetitions)); 191 float vRepetitions = std::max(1.0f, roundf(dstRect.height() / (tileScaleFactor.height() * srcRect.height()))); 192 tileScaleFactor.setHeight(dstRect.height() / (srcRect.height() * vRepetitions)); 203 float hPhase = tileScaleFactor.width() * srcRect.x(); 204 float vPhase = tileScaleFactor.height() * srcRect.y(); 205 float scaledTileWidth = tileScaleFactor.width() * srcRect.width() [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/ |
SVGImageForContainer.cpp | 38 const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode) 40 m_image->drawForContainer(context, m_containerSize, m_zoom, dstRect, srcRect, compositeOp, blendMode); 43 void SVGImageForContainer::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale, 46 m_image->drawPatternForContainer(context, m_containerSize, m_zoom, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSpacing);
|
/external/chromium_org/third_party/skia/src/effects/ |
SkGpuBlurUtils.cpp | 43 const SkRect& srcRect, 57 context->drawRectToRect(paint, dstRect, srcRect); 61 const SkRect& srcRect, 70 convolve_gaussian_pass(context, srcRect, dstRect, texture, 74 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; 75 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; 76 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; 80 bounds[0] = SkScalarToFloat(srcRect.left()) / texture->width(); 81 bounds[1] = SkScalarToFloat(srcRect.right()) / texture->width(); 82 size = srcRect.width() [all...] |
SkTileImageFilter.cpp | 35 SkRect srcRect; 36 ctm.mapRect(&srcRect, fSrcRect); 38 srcRect.roundOut(&srcIRect);
|
/external/skia/src/effects/ |
SkGpuBlurUtils.cpp | 43 const SkRect& srcRect, 57 context->drawRectToRect(paint, dstRect, srcRect); 61 const SkRect& srcRect, 70 convolve_gaussian_pass(context, srcRect, dstRect, texture, 74 SkRect lowerSrcRect = srcRect, lowerDstRect = dstRect; 75 SkRect middleSrcRect = srcRect, middleDstRect = dstRect; 76 SkRect upperSrcRect = srcRect, upperDstRect = dstRect; 80 bounds[0] = SkScalarToFloat(srcRect.left()) / texture->width(); 81 bounds[1] = SkScalarToFloat(srcRect.right()) / texture->width(); 82 size = srcRect.width() [all...] |
/external/chromium_org/third_party/skia/include/effects/ |
SkTileImageFilter.h | 18 @param srcRect Defines the pixels to tile 20 @param input Input from which the subregion defined by srcRect will be tiled 22 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) 23 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {}
|
/external/skia/include/effects/ |
SkTileImageFilter.h | 18 @param srcRect Defines the pixels to tile 20 @param input Input from which the subregion defined by srcRect will be tiled 22 SkTileImageFilter(const SkRect& srcRect, const SkRect& dstRect, SkImageFilter* input) 23 : INHERITED(input), fSrcRect(srcRect), fDstRect(dstRect) {}
|
/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/chromium_org/third_party/WebKit/Source/core/frame/ |
ImageBitmap.cpp | 45 IntRect srcRect = intersection(cropRect, IntRect(0, 0, image->width(), image->height())); 46 m_bitmapRect = IntRect(IntPoint(max(0, -cropRect.x()), max(0, -cropRect.y())), srcRect.size()); 47 m_bitmapOffset = srcRect.location(); 49 if (!srcRect.width() || !srcRect.height()) 63 IntRect srcRect = intersection(cropRect, videoRect); 64 IntRect dstRect(IntPoint(), srcRect.size()); 71 c->translate(-srcRect.x(), -srcRect.y()); 74 m_bitmapRect = IntRect(IntPoint(max(0, -cropRect.x()), max(0, -cropRect.y())), srcRect.size()) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGPreserveAspectRatio.cpp | 184 void SVGPreserveAspectRatio::transformRect(FloatRect& destRect, FloatRect& srcRect) 189 FloatSize imageSize = srcRect.size(); 196 float widthToHeightMultiplier = srcRect.height() / srcRect.width(); 234 float widthToHeightMultiplier = srcRect.height() / srcRect.width(); 237 float destToSrcMultiplier = srcRect.width() / destRect.width(); 238 srcRect.setHeight(destRect.height() * destToSrcMultiplier); 243 srcRect.setY(srcRect.y() + imageSize.height() / 2 - srcRect.height() / 2) [all...] |
/external/chromium/chrome/browser/ui/cocoa/ |
image_utils.h | 20 fromRect:(NSRect)srcRect
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
IconFactory.java | 86 Rect srcRect = null; 89 srcRect = new Rect(0, 0, sourceWidth, sourceHeight); 102 srcRect = new Rect(); 103 rec.roundOut(srcRect); 106 canvas.drawBitmap(sourceImage, srcRect, destRect, new Paint(Paint.FILTER_BITMAP_FLAG));
|
/external/chromium_org/third_party/WebKit/Source/core/svg/graphics/filters/ |
SVGFEImage.cpp | 69 FloatRect srcRect; 71 srcRect.setSize(m_image->size()); 72 m_preserveAspectRatio.transformRect(paintRect, srcRect); 74 srcRect = filter()->absoluteTransform().mapRect(renderer->repaintRectInLocalCoordinates()); 105 FloatRect srcRect; 107 srcRect = filter()->absoluteTransform().mapRect(renderer->repaintRectInLocalCoordinates()); 109 srcRect = FloatRect(FloatPoint(), m_image->size()); 110 m_preserveAspectRatio.transformRect(destRect, srcRect); 139 resultImage->context()->drawImage(m_image.get(), destRect, srcRect);
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/ |
NativeImageSkia.h | 129 void draw(GraphicsContext*, const SkRect& srcRect, const SkRect& destRect, PassRefPtr<SkXfermode>) const; 132 const FloatRect& srcRect, 177 SkBitmap extractScaledImageFragment(const SkRect& srcRect, float scaleX, float scaleY, SkRect* scaledSrcRect) const; 178 void drawResampledBitmap(GraphicsContext*, SkPaint&, const SkRect& srcRect, const SkRect& destRect) const;
|
/external/skia/gm/ |
bitmapsource.cpp | 56 SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30); 62 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRect(new SkBitmapSource(fBitmap, srcRect, srcRect)); 63 SkAutoTUnref<SkImageFilter> bitmapSourceSrcRectDstRect(new SkBitmapSource(fBitmap, srcRect, dstRect)); 70 // Draw an unscaled subset of the source bitmap (srcRect -> srcRect). 74 // Draw a subset of the bitmap scaled to a destination rect (srcRect -> dstRect).
|
/external/chromium_org/third_party/skia/src/core/ |
SkDevice.cpp | 85 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bitmap->width(), 88 if (!srcRect.intersect(devbounds)) { 105 SkIRect subrect = srcRect; 111 srcRect.fLeft, 112 srcRect.fTop,
|
/external/skia/src/core/ |
SkDevice.cpp | 85 SkIRect srcRect = SkIRect::MakeXYWH(x, y, bitmap->width(), 88 if (!srcRect.intersect(devbounds)) { 105 SkIRect subrect = srcRect; 111 srcRect.fLeft, 112 srcRect.fTop,
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
FrameImage2D.java | 145 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { 149 idShader.setSourceRect(srcRect); 158 FrameImage2D srcImage, FrameImage2D dstImage, RectF srcRect, RectF dstRect) { 160 Rect srcIRect = new Rect((int) srcRect.left * srcImage.getWidth(), 161 (int) srcRect.top * srcImage.getHeight(), 162 (int) srcRect.right * srcImage.getWidth(), 163 (int) srcRect.bottom * srcImage.getHeight());
|
/frameworks/av/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) {
|