Searched defs:srcSize (Results 1 - 19 of 19) sorted by relevance

/external/webkit/Source/WebCore/platform/
H A DDragImage.cpp36 DragImageRef fitDragImageToMaxSize(DragImageRef image, const IntSize& srcSize, const IntSize& size) argument
43 if (srcSize.width() > size.width()) {
44 widthResizeRatio = size.width() / (float)srcSize.width();
48 if (srcSize.height() > size.height()) {
49 heightResizeRatio = size.height() / (float)srcSize.height();
54 if (srcSize == originalSize)
58 float scalex = srcSize.width() / (float)originalSize.width();
59 float scaley = srcSize.height() / (float)originalSize.height();
/external/webkit/Source/WebCore/platform/graphics/win/
H A DImageCairoWin.cpp95 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
100 if (cairo_image_surface_get_height(image) == static_cast<size_t>(srcSize.height()) && cairo_image_surface_get_width(image) == static_cast<size_t>(srcSize.width())) {
103 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), ColorSpaceDeviceRGB, compositeOp);
H A DImageCGWin.cpp89 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
94 if (CGImageGetHeight(image) == static_cast<size_t>(srcSize.height()) && CGImageGetWidth(image) == static_cast<size_t>(srcSize.width())) {
97 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), styleColorSpace, compositeOp);
/external/webkit/Source/WebCore/platform/win/
H A DDragImageCGWin.cpp89 IntSize srcSize = dragImageSize(image); local
90 IntSize dstSize(static_cast<int>(srcSize.width() * scale.width()), static_cast<int>(srcSize.height() * scale.height()));
/external/skia/legacy/src/core/
H A DSkPackBits.cpp282 int SkPackBits::Unpack16(const uint8_t* SK_RESTRICT src, size_t srcSize, argument
285 const uint8_t* stop = src + srcSize;
304 int SkPackBits::Unpack8(const uint8_t* SK_RESTRICT src, size_t srcSize, argument
307 const uint8_t* stop = src + srcSize;
/external/skia/legacy/src/images/
H A DSkImageDecoder_wbmp.cpp143 size_t srcSize = height * srcRB; local
144 uint8_t* src = dst + decodedBitmap->getSize() - srcSize;
145 if (stream->read(src, srcSize) != srcSize) {
/external/skia/src/core/
H A DSkPackBits.cpp282 int SkPackBits::Unpack16(const uint8_t* SK_RESTRICT src, size_t srcSize, argument
285 const uint8_t* stop = src + srcSize;
304 int SkPackBits::Unpack8(const uint8_t* SK_RESTRICT src, size_t srcSize, argument
307 const uint8_t* stop = src + srcSize;
/external/skia/src/images/
H A DSkImageDecoder_wbmp.cpp141 size_t srcSize = height * srcRB; local
142 uint8_t* src = dst + decodedBitmap->getSize() - srcSize;
143 if (stream->read(src, srcSize) != srcSize) {
/external/webkit/Source/WebCore/platform/graphics/wince/
H A DImageWinCE.cpp91 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp) argument
96 if (!bmp || bmp->height() != static_cast<unsigned>(srcSize.height()) || bmp->width() != static_cast<unsigned>(srcSize.width()))
101 draw(ctxt, dstRect, FloatRect(0, 0, srcSize.width(), srcSize.height()), styleColorSpace, compositeOp);
/external/webkit/Source/WebCore/platform/text/brew/
H A DTextCodecBrew.cpp85 int srcSize; local
89 srcSize = length + m_numBufferedBytes;
90 prefixedBytes.grow(srcSize);
99 srcSize = length;
104 unsigned char* srcEnd = srcBegin + srcSize;
106 Vector<UChar> dstBuffer(srcSize);
114 code = ICharsetConv_CharsetConvert(m_charsetConverter, &src, &srcSize, &dst, &dstSize, &numCharsConverted);
166 int srcSize = length * sizeof(UChar); local
169 unsigned char* srcEnd = srcBegin + srcSize;
179 code = ICharsetConv_CharsetConvert(m_charsetConverter, &src, &srcSize,
[all...]
/external/webkit/Source/WebCore/platform/graphics/
H A DImage.h168 virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator) { } argument
/external/skia/legacy/src/effects/
H A DSkBlurMask.cpp648 size_t srcSize = src.computeImageSize(); local
649 if (0 == srcSize) {
652 dst->fImage = SkMask::AllocImage(srcSize);
/external/webkit/Source/WebCore/platform/graphics/skia/
H A DImageSkia.cpp73 IntSize srcSize; local
75 platformContext->getImageResamplingHint(&srcSize, &dstSize);
76 srcWidth = srcSize.width();
77 srcHeight = srcSize.height();
H A DPlatformContextSkia.cpp625 void PlatformContextSkia::getImageResamplingHint(IntSize* srcSize, FloatSize* dstSize) const argument
627 *srcSize = m_imageResamplingHintSrcSize;
631 void PlatformContextSkia::setImageResamplingHint(const IntSize& srcSize, const FloatSize& dstSize) argument
633 m_imageResamplingHintSrcSize = srcSize;
/external/skia/src/effects/
H A DSkBlurMask.cpp994 size_t srcSize = src.computeImageSize(); local
995 if (0 == srcSize) {
998 dst->fImage = SkMask::AllocImage(srcSize);
/external/opencv/cvaux/src/
H A Dcvtrifocal.cpp474 int srcSize; local
477 srcSize = srcMatr->cols;
488 if( src >=0 && src < srcSize )
/external/skia/src/ports/
H A DSkFontHost_mac_coretext.cpp1855 size_t srcSize = CFDataGetLength(srcData); local
1856 if (offset >= srcSize) {
1860 if ((offset + length) > srcSize) {
1861 length = srcSize - offset;
/external/icu4c/test/cintltst/
H A Dcbiditst.c729 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); local
730 int32_t destSize = srcSize*2;
735 pseudoToU16(srcSize,logicalOrder[i],src);
737 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec);
746 }else if(destSize!=srcSize){
747 log_err("Pre-flighting did not give expected size: Expected: %d. Got: %d \n",srcSize,destSize);
753 if(destSize!=srcSize){
754 log_err("ubidi_writeReordered() destSize and srcSize do not match\n");
764 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); local
765 int32_t destSize = srcSize*
798 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); local
829 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); local
863 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); local
991 int32_t srcSize = u_strlen(logicalOrder[i]); local
1839 int32_t srcSize, count, paraStart, paraLimit, paraIndex, length; local
[all...]
/external/skia/legacy/src/ports/
H A DSkFontHost_mac_coretext.cpp1992 size_t srcSize = CFDataGetLength(srcData); local
1993 if (offset >= srcSize) {
1997 if ((offset + length) > srcSize) {
1998 length = srcSize - offset;

Completed in 397 milliseconds