HomeSort by relevance Sort by last modified time
    Searched full:dstrect (Results 1 - 25 of 60) sorted by null

1 2 3

  /external/webkit/WebCore/platform/graphics/
GeneratedImage.cpp 37 void GeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator compositeOp)
41 context->clip(dstRect);
42 context->translate(dstRect.x(), dstRect.y());
43 if (dstRect.size() != srcRect.size())
44 context->scale(FloatSize(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height()));
Image.cpp 78 void Image::fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color, ColorSpace styleColorSpace, CompositeOperator op)
85 ctxt->fillRect(dstRect, color, styleColorSpace);
89 static inline FloatSize calculatePatternScale(const FloatRect& dstRect, const FloatRect& srcRect, Image::TileRule hRule, Image::TileRule vRule)
94 scaleX = dstRect.width() / srcRect.width();
96 scaleY = dstRect.height() / srcRect.height();
147 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, TileRule hRule, TileRule vRule, ColorSpace styleColorSpace, CompositeOperator op)
150 fillWithSolidColor(ctxt, dstRect, solidColor(), styleColorSpace, op);
160 FloatSize scale = calculatePatternScale(dstRect, srcRect, hRule, vRule);
168 hPhase -= fmodf(dstRect.width(), scale.width() * srcRect.width()) / 2.0f;
170 vPhase -= fmodf(dstRect.height(), scale.height() * srcRect.height()) / 2.0f
    [all...]
Image.h 163 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, const Color&, ColorSpace styleColorSpace, CompositeOperator);
167 virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator) { }
169 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator) = 0;
170 void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatPoint& srcPoint, const FloatSize& tileSize, ColorSpace styleColorSpace, CompositeOperator);
171 void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, TileRule hRule, TileRule vRule, ColorSpace styleColorSpace, CompositeOperator);
  /external/qemu/distrib/sdl-1.2.12/src/video/
SDL_stretch.c 174 SDL_Surface *dst, SDL_Rect *dstrect)
211 if ( dstrect ) {
212 if ( (dstrect->x < 0) || (dstrect->y < 0) ||
213 ((dstrect->x+dstrect->w) > dst->w) ||
214 ((dstrect->y+dstrect->h) > dst->h) ) {
223 dstrect = &full_dst;
250 inc = (srcrect->h << 16) / dstrect->h
    [all...]
SDL_yuv.c 83 int SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect)
89 if ( overlay == NULL || dstrect == NULL ) {
90 SDL_SetError("Passed NULL overlay or dstrect");
99 dstx = dstrect->x;
100 dsty = dstrect->y;
101 dstw = dstrect->w;
102 dsth = dstrect->h;
104 srcw += (dstx * overlay->w) / dstrect->w;
106 srcx -= (dstx * overlay->w) / dstrect->w;
111 srcw -= (extra * overlay->w) / dstrect->w
    [all...]
SDL_surface.c 408 SDL_Surface *dst, SDL_Rect *dstrect)
431 hw_dstrect = *dstrect;
434 dstrect = &hw_dstrect;
440 return(do_blit(src, srcrect, dst, dstrect));
445 SDL_Surface *dst, SDL_Rect *dstrect)
461 if ( dstrect == NULL ) {
463 dstrect = &fulldst;
474 dstrect->x -= srcx;
485 dstrect->y -= srcy;
503 dx = clip->x - dstrect->x
    [all...]
SDL_RLEaccel_c.h 28 SDL_Surface *dst, SDL_Rect *dstrect);
30 SDL_Surface *dst, SDL_Rect *dstrect);
SDL_stretch_c.h 28 SDL_Surface *dst, SDL_Rect *dstrect);
  /external/qemu/distrib/sdl-1.2.12/src/video/cybergfx/
SDL_cgxaccel.c 31 SDL_Surface *dst, SDL_Rect *dstrect);
204 SDL_Surface *dst, SDL_Rect *dstrect)
215 SDL_RastPort,dstrect->x+SDL_Window->BorderLeft,dstrect->y+SDL_Window->BorderTop,
228 &temprp,dstrect->x,dstrect->y,
235 BBRP(src->hwdata->bmap,srcrect->x,srcrect->y,SDL_RastPort,dstrect->x+SDL_Window->BorderLeft,dstrect->y+SDL_Window->BorderTop,srcrect->w,srcrect->h,0xc0);
238 BBB(src->hwdata->bmap,srcrect->x,srcrect->y,dst->hwdata->bmap,dstrect->x,dstrect->y,srcrect->w,srcrect->h,0xc0,0xff,NULL)
    [all...]
  /external/webkit/WebCore/platform/graphics/cairo/
ImageCairo.cpp 95 FloatRect dstRect(dst);
97 if (dstRect.width() == 0.0f || dstRect.height() == 0.0f ||
108 fillWithSolidColor(context, dstRect, solidColor(), styleColorSpace, op);
130 float scaleX = srcRect.width() / dstRect.width();
131 float scaleY = srcRect.height() / dstRect.height();
144 GraphicsContext::calculateShadowBufferDimensions(shadowBufferSize, shadowRect, kernelSize, dstRect, shadowSize, shadowBlur);
151 cairo_translate(shadowContext, -dstRect.x(), -dstRect.y());
152 cairo_rectangle(shadowContext, 0, 0, dstRect.width(), dstRect.height())
    [all...]
  /external/webkit/WebCore/platform/graphics/win/
GraphicsContextCairoWin.cpp 87 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap)
94 if (dstRect.isEmpty())
114 cairo_translate(m_data->cr, 0, dstRect.height());
115 cairo_scale(m_data->cr, dstRect.width(), -dstRect.height());
116 cairo_set_source_surface (m_data->cr, image, dstRect.x(), dstRect.y());
GraphicsContextWin.cpp 103 HDC GraphicsContext::getWindowsContext(const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap)
107 if (dstRect.isEmpty())
111 BitmapInfo bitmapInfo = BitmapInfo::create(dstRect.size());
129 XFORM xform = TransformationMatrix().translate(-dstRect.x(), -dstRect.y());
ImageCGWin.cpp 91 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp)
99 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), styleColorSpace, compositeOp);
107 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), styleColorSpace, compositeOp);
ImageCairoWin.cpp 95 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp)
103 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), DeviceColorSpace, compositeOp);
111 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), DeviceColorSpace, compositeOp);
  /external/qemu/distrib/sdl-1.2.12/src/video/fbcon/
SDL_fb3dfx.c 94 SDL_Surface *dst, SDL_Rect *dstrect)
125 dstX = dstrect->x;
126 dstY = dstrect->y;
132 srcX += (dstrect->w - 1);
133 dstX += (dstrect->w - 1);
137 srcY += (dstrect->h - 1);
138 dstY += (dstrect->h - 1);
158 tdfx_out32(DSTSIZE, dstrect->w | (dstrect->h << 16));
SDL_fbmatrox.c 121 SDL_Surface *dst, SDL_Rect *dstrect)
134 return(src->map->sw_blit(src, srcrect, dst, dstrect));
146 w = dstrect->w;
147 h = dstrect->h;
154 dstX += dstrect->x;
155 dstY += dstrect->y;
SDL_fbriva.c 112 SDL_Surface *dst, SDL_Rect *dstrect)
122 return(src->map->sw_blit(src, srcrect, dst, dstrect));
134 dstW = dstrect->w;
135 dstH = dstrect->h;
142 dstX += dstrect->x;
143 dstY += dstrect->y;
  /external/webkit/WebCore/platform/graphics/haiku/
ImageHaiku.cpp 111 BRect dstRect(dst);
116 ctxt->platformContext()->DrawBitmapAsync(image, srcRect, dstRect);
123 void Image::drawPattern(GraphicsContext* context, const FloatRect& tileRect, const AffineTransform& patternTransform, const FloatPoint& srcPoint, ColorSpace, CompositeOperator op, const FloatRect& dstRect)
151 context->clip(enclosingIntRect(dstRect));
154 while (currentW < dstRect.x() + dstRect.width()) {
156 while (currentH < dstRect.y() + dstRect.height()) {
  /external/qemu/distrib/sdl-1.2.12/src/video/windx5/
SDL_dx5yuv.c 254 RECT srcrect, dstrect; local
261 dstrect.top = SDL_bounds.top+dst->y;
262 dstrect.left = SDL_bounds.left+dst->x;
263 dstrect.bottom = dstrect.top+dst->h;
264 dstrect.right = dstrect.left+dst->w;
267 SDL_primary, &dstrect, DDOVER_SHOW, NULL);
273 result = IDirectDrawSurface3_Blt(SDL_primary, &dstrect, surface, &srcrect,
  /external/webkit/WebCore/platform/graphics/wx/
ImageWx.cpp 179 void Image::drawPattern(GraphicsContext* ctxt, const FloatRect& srcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace, CompositeOperator, const FloatRect& dstRect)
195 ctxt->clip(IntRect(dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height()));
217 while ( currentW < dstRect.width() && currentW < clientSize.x - origin.x ) {
218 while ( currentH < dstRect.height() && currentH < clientSize.y - origin.y) {
226 context->Blit((wxCoord)dstRect.x() + currentW, (wxCoord)dstRect.y() + currentH,
GraphicsContextWx.cpp 575 HDC GraphicsContext::getWindowsContext(const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap)
577 if (dstRect.isEmpty())
583 bitmapInfo.bmiHeader.biWidth = dstRect.width();
584 bitmapInfo.bmiHeader.biHeight = dstRect.height();
615 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap)
619 if (!dstRect.isEmpty()) {
632 m_data->context->DrawBitmap(bmp, dstRect.x(), dstRect.y(), supportAlphaBlend);
  /external/webkit/WebCore/platform/graphics/cg/
PDFDocumentImage.cpp 149 void PDFDocumentImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator op)
158 float hScale = dstRect.width() / srcRect.width();
159 float vScale = dstRect.height() / srcRect.height();
164 CGContextTranslateCTM(context->platformContext(), dstRect.x() - srcRect.x() * hScale, dstRect.y() - srcRect.y() * vScale);
  /external/webkit/WebCore/svg/graphics/
SVGImage.cpp 177 void SVGImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator compositeOp)
186 context->clip(enclosingIntRect(dstRect));
189 context->translate(dstRect.location().x(), dstRect.location().y());
190 context->scale(FloatSize(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height()));
  /external/webkit/WebCore/svg/graphics/filters/
SVGFEOffset.cpp 89 FloatRect dstRect = FloatRect(m_dx + m_in->scaledSubRegion().x() - scaledSubRegion().x(),
94 filterContext->drawImage(m_in->resultImage()->image(), DeviceColorSpace, dstRect);
  /external/qemu/distrib/sdl-1.2.12/src/video/photon/
SDL_ph_image_c.h 51 extern int ph_HWAccelBlit(SDL_Surface* src, SDL_Rect *srcrect, SDL_Surface* dst, SDL_Rect* dstrect);

Completed in 1817 milliseconds

1 2 3