Home
last modified time | relevance | path

Searched refs:sourceSize (Results 1 – 25 of 43) sorted by relevance

12

/third_party/flutter/flutter/packages/flutter/lib/src/painting/
Dbox_fit.dart132 Size sourceSize, destinationSize;
135 sourceSize = inputSize;
139 sourceSize = inputSize;
140 if (outputSize.width / outputSize.height > sourceSize.width / sourceSize.height)
141 …destinationSize = Size(sourceSize.width * outputSize.height / sourceSize.height, outputSize.height…
143 … destinationSize = Size(outputSize.width, sourceSize.height * outputSize.width / sourceSize.width);
147 sourceSize = Size(inputSize.width, inputSize.width * outputSize.height / outputSize.width);
149sourceSize = Size(inputSize.height * outputSize.width / outputSize.height, inputSize.height);
154 sourceSize = Size(inputSize.width, inputSize.width * outputSize.height / outputSize.width);
155 … destinationSize = Size(outputSize.width, sourceSize.height * outputSize.width / sourceSize.width);
[all …]
Ddecoration_image.dart400 final Size sourceSize = fittedSizes.source * scale;
407 …assert(sourceSize == inputSize, 'centerSlice was used with a BoxFit that does not guarantee that t…
417 if (sourceSize != destinationSize) {
440 sourceSize, Offset.zero & inputSize,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DBlit11.cpp55 const gl::Extents &sourceSize, in StretchedBlitNearest_RowByRow() argument
87 const gl::Extents &sourceSize, in StretchedBlitNearest_PixelByPixel() argument
108 static_cast<unsigned int>(gl::clamp(sourceArea.y + yRounded, 0, sourceSize.height - 1)); in StretchedBlitNearest_PixelByPixel()
117 gl::clamp(sourceArea.x + xRounded, 0, sourceSize.width - 1)); in StretchedBlitNearest_PixelByPixel()
133 const gl::Extents &sourceSize, in StretchedBlitNearest() argument
153 sourceArea.x + sourceArea.width <= sourceSize.width && copySize == srcPixelStride && in StretchedBlitNearest()
156 StretchedBlitNearest_RowByRow(sourceArea, destArea, clippedDestArea, sourceSize, in StretchedBlitNearest()
162 StretchedBlitNearest_PixelByPixel(sourceArea, destArea, clippedDestArea, sourceSize, in StretchedBlitNearest()
218 const gl::Extents &sourceSize, in CopyDepthStencil() argument
231 ASSERT(sourceSize.width == sourceArea.width && sourceSize.height == sourceArea.height && in CopyDepthStencil()
[all …]
DBlit11.h40 const gl::Extents &sourceSize,
57 const gl::Extents &sourceSize,
67 const gl::Extents &sourceSize,
77 const gl::Extents &sourceSize,
96 const gl::Extents &sourceSize,
128 const gl::Extents &sourceSize,
186 const gl::Extents &sourceSize,
198 const gl::Extents &sourceSize,
214 const gl::Extents &sourceSize,
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DBlit11.cpp55 const gl::Extents &sourceSize, in StretchedBlitNearest_RowByRow() argument
86 const gl::Extents &sourceSize, in StretchedBlitNearest_PixelByPixel() argument
107 static_cast<unsigned int>(gl::clamp(sourceArea.y + yRounded, 0, sourceSize.height - 1)); in StretchedBlitNearest_PixelByPixel()
116 gl::clamp(sourceArea.x + xRounded, 0, sourceSize.height - 1)); in StretchedBlitNearest_PixelByPixel()
132 const gl::Extents &sourceSize, in StretchedBlitNearest() argument
149 sourceArea.x + sourceArea.width <= sourceSize.width && copySize == srcPixelStride && in StretchedBlitNearest()
152 StretchedBlitNearest_RowByRow(sourceArea, destArea, clippedDestArea, sourceSize, in StretchedBlitNearest()
158 StretchedBlitNearest_PixelByPixel(sourceArea, destArea, clippedDestArea, sourceSize, in StretchedBlitNearest()
214 const gl::Extents &sourceSize, in CopyDepthStencil() argument
227 ASSERT(sourceSize.width == sourceArea.width && sourceSize.height == sourceArea.height && in CopyDepthStencil()
[all …]
DBlit11.h40 const gl::Extents &sourceSize,
57 const gl::Extents &sourceSize,
67 const gl::Extents &sourceSize,
77 const gl::Extents &sourceSize,
96 const gl::Extents &sourceSize,
128 const gl::Extents &sourceSize,
186 const gl::Extents &sourceSize,
198 const gl::Extents &sourceSize,
214 const gl::Extents &sourceSize,
/third_party/skia/third_party/externals/brotli/java/org/brotli/enc/
DPreparedDictionaryGenerator.java61 int sourceSize = src.capacity(); in generate() local
62 if (sourceSize < 8) { in generate()
69 int[] nextBucket = new int[sourceSize]; in generate()
77 for (int i = 0; i + 7 < sourceSize; ++i) { in generate()
129 int allocSize = part0 + part1 + part2 + part3 + sourceSize; in generate()
146 /* source_size */ struct.put(2, sourceSize); in generate()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DBlit9.cpp362 gl::Extents sourceSize(sourceDesc.Width, sourceDesc.Height, 1); in copy() local
375 sourceSize.width = sourceRect.right - sourceRect.left; in copy()
376 sourceSize.height = sourceRect.bottom - sourceRect.top; in copy()
379 ANGLE_TRY(formatConvert(context9, texture.Get(), adjustedSourceRect, sourceSize, destFormat, in copy()
387 const gl::Extents &sourceSize, in formatConvert() argument
410 setViewportAndShaderConstants(sourceRect, sourceSize, destRect, flipY); in formatConvert()
614 const gl::Extents &sourceSize, in setViewportAndShaderConstants() argument
636 static_cast<float>(sourceRect.left) / sourceSize.width, in setViewportAndShaderConstants()
637 static_cast<float>(flipY ? sourceRect.bottom : sourceRect.top) / sourceSize.height, in setViewportAndShaderConstants()
638 static_cast<float>(sourceRect.right - sourceRect.left) / sourceSize.width, in setViewportAndShaderConstants()
[all …]
DBlit9.h92 const gl::Extents &sourceSize,
120 const gl::Extents &sourceSize,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DBlit9.cpp362 gl::Extents sourceSize(sourceDesc.Width, sourceDesc.Height, 1); in copy() local
375 sourceSize.width = sourceRect.right - sourceRect.left; in copy()
376 sourceSize.height = sourceRect.bottom - sourceRect.top; in copy()
379 ANGLE_TRY(formatConvert(context9, texture.Get(), adjustedSourceRect, sourceSize, destFormat, in copy()
387 const gl::Extents &sourceSize, in formatConvert() argument
410 setViewportAndShaderConstants(sourceRect, sourceSize, destRect, flipY); in formatConvert()
614 const gl::Extents &sourceSize, in setViewportAndShaderConstants() argument
636 static_cast<float>(sourceRect.left) / sourceSize.width, in setViewportAndShaderConstants()
637 static_cast<float>(flipY ? sourceRect.bottom : sourceRect.top) / sourceSize.height, in setViewportAndShaderConstants()
638 static_cast<float>(sourceRect.right - sourceRect.left) / sourceSize.width, in setViewportAndShaderConstants()
[all …]
DBlit9.h92 const gl::Extents &sourceSize,
120 const gl::Extents &sourceSize,
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DBlitGL.cpp415 gl::Extents sourceSize = readAttachment->getSize(); in blitColorBufferWithShader() local
416 gl::Rectangle sourceBounds(0, 0, sourceSize.width, sourceSize.height); in blitColorBufferWithShader()
509 const gl::Extents &sourceSize, in copySubTexture() argument
580 scale.x() /= static_cast<float>(sourceSize.width); in copySubTexture()
581 scale.y() /= static_cast<float>(sourceSize.height); in copySubTexture()
582 offset.x() /= static_cast<float>(sourceSize.width); in copySubTexture()
583 offset.y() /= static_cast<float>(sourceSize.height); in copySubTexture()
623 const gl::Extents &sourceSize, in copySubTextureCPUReadback() argument
668 sourceInternalFormatInfo.componentType, sourceSize, sourceArea, gl::Offset(0, 0, 0), in copySubTextureCPUReadback()
DBlitGL.h82 const gl::Extents &sourceSize,
101 const gl::Extents &sourceSize,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DBlitGL.h103 const gl::Extents &sourceSize,
122 const gl::Extents &sourceSize,
DBlitGL.cpp465 gl::Extents sourceSize = readAttachment->getSize(); in blitColorBufferWithShader() local
466 gl::Rectangle sourceBounds(0, 0, sourceSize.width, sourceSize.height); in blitColorBufferWithShader()
567 const gl::Extents &sourceSize, in copySubTexture() argument
638 scale.x() /= static_cast<float>(sourceSize.width); in copySubTexture()
639 scale.y() /= static_cast<float>(sourceSize.height); in copySubTexture()
640 offset.x() /= static_cast<float>(sourceSize.width); in copySubTexture()
641 offset.y() /= static_cast<float>(sourceSize.height); in copySubTexture()
684 const gl::Extents &sourceSize, in copySubTextureCPUReadback() argument
737 sourceInternalFormatInfo.componentType, sourceSize, sourceArea, gl::Offset(0, 0, 0), in copySubTextureCPUReadback()
/third_party/skia/experimental/graphite/src/mtl/
DMtlBlitCommandEncoder.h52 sourceSize: MTLSizeMake(srcRect.width(), srcRect.height(), 1) in copyFromTexture()
/third_party/flutter/skia/third_party/externals/icu/source/common/
Drbbitblb.cpp980 int32_t sourceSize = source->size(); in setAdd() local
994 if (sourceSize > sourceArray.getCapacity()) { in setAdd()
995 if (sourceArray.resize(sourceSize) == NULL) { in setAdd()
1000 sourceLim = sourcePtr + sourceSize; // sourceArray.getArrayLimit()? in setAdd()
1006 dest->setSize(sourceSize+destOriginalSize, *fStatus); in setAdd()
/third_party/node/deps/icu-small/source/common/
Drbbitblb.cpp1049 int32_t sourceSize = source->size(); in setAdd() local
1063 if (sourceSize > sourceArray.getCapacity()) { in setAdd()
1064 if (sourceArray.resize(sourceSize) == NULL) { in setAdd()
1069 sourceLim = sourcePtr + sourceSize; // sourceArray.getArrayLimit()? in setAdd()
1075 dest->setSize(sourceSize+destOriginalSize, *fStatus); in setAdd()
/third_party/icu/icu4c/source/common/
Drbbitblb.cpp1046 int32_t sourceSize = source->size(); in setAdd() local
1060 if (sourceSize > sourceArray.getCapacity()) { in setAdd()
1061 if (sourceArray.resize(sourceSize) == NULL) { in setAdd()
1066 sourceLim = sourcePtr + sourceSize; // sourceArray.getArrayLimit()? in setAdd()
1072 dest->setSize(sourceSize+destOriginalSize, *fStatus); in setAdd()
/third_party/skia/third_party/externals/icu/source/common/
Drbbitblb.cpp1046 int32_t sourceSize = source->size(); in setAdd() local
1060 if (sourceSize > sourceArray.getCapacity()) { in setAdd()
1061 if (sourceArray.resize(sourceSize) == NULL) { in setAdd()
1066 sourceLim = sourcePtr + sourceSize; // sourceArray.getArrayLimit()? in setAdd()
1072 dest->setSize(sourceSize+destOriginalSize, *fStatus); in setAdd()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/metal/
DCommandBufferMTL.mm186 sourceSize:MTLSizeMake(width, height, 1)
358 // format, the sourceSize must be a multiple of the pixel format's block size or be
500 sourceSize:copyInfo.copyExtent
528 sourceSize:copyInfo.copyExtent
548 sourceSize:MakeMTLSize(copy->copySize)
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlGpu.mm269 sourceSize: MTLSizeMake(currentWidth, currentHeight, 1)
359 sourceSize: MTLSizeMake(currentWidth, currentHeight, 1)
770 sourceSize: MTLSizeMake(currentWidth, currentHeight, 1)
913 sourceSize: MTLSizeMake(srcRect.width(), srcRect.height(), 1)
1028 sourceSize: MTLSizeMake(width, height, 1)
/third_party/icu/docs/userguide/collation/
Dexamples.md290 uint32_t sourceSize, uint8_t **buffer,
310 for(i = 0; i < sourceSize; i++) {
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DCommandBufferMTL.mm262 sourceSize:MTLSizeMake(width, height, 1)
630 sourceSize:copyExtent
646 sourceSize:MTLSizeMake(copyInfo.copyExtent.width,
815 sourceSize:copyExtent
833 sourceSize:MTLSizeMake(copyInfo.copyExtent.width,
906 sourceSize:sizeOneSlice
/third_party/skia/src/gpu/mtl/
DGrMtlGpu.mm395 sourceSize: MTLSizeMake(currentWidth, currentHeight, 1)
496 sourceSize: MTLSizeMake(currentWidth, currentHeight, 1)
670 sourceSize: MTLSizeMake(levelDimensions.width(),
988 sourceSize: MTLSizeMake(levelDimensions.width(),
1089 sourceSize: MTLSizeMake(levelDimensions.width(),
1233 sourceSize: MTLSizeMake(srcRect.width(), srcRect.height(), 1)
1431 sourceSize: MTLSizeMake(rect.width(), rect.height(), 1)
1518 sourceSize: MTLSizeMake(rect.width(), rect.height(), 1)

12