Home
last modified time | relevance | path

Searched refs:dstSize (Results 1 – 25 of 28) sorted by relevance

12

/external/skia/tests/
DPackBitsTest.cpp39 size_t dstSize = SkPackBits::Pack8(gTests[i].fSrc, in test_pack8() local
41 REPORTER_ASSERT(reporter, dstSize == 0); in test_pack8()
42 dstSize = SkPackBits::Pack8(gTests[i].fSrc, in test_pack8()
44 REPORTER_ASSERT(reporter, dstSize <= maxSize); in test_pack8()
46 int srcCount = SkPackBits::Unpack8(dst, dstSize, src, gTests[i].fCount - 1); in test_pack8()
48 srcCount = SkPackBits::Unpack8(dst, dstSize, src, sizeof(src)); in test_pack8()
61 size_t dstSize = SkPackBits::Pack8(src, size, dst, sizeof(dst)); in test_pack8() local
63 REPORTER_ASSERT(reporter, maxSize >= dstSize); in test_pack8()
65 size_t srcCount = SkPackBits::Unpack8(dst, dstSize, src2, size); in test_pack8()
/external/dng_sdk/source/
Ddng_render.cpp1271 dng_point dstSize; in Render() local
1273 dstSize.h = fNegative.DefaultFinalWidth (); in Render()
1274 dstSize.v = fNegative.DefaultFinalHeight (); in Render()
1279 if (Max_uint32 (dstSize.h, dstSize.v) > MaximumSize ()) in Render()
1286 dstSize.h = MaximumSize (); in Render()
1287 dstSize.v = Max_uint32 (1, Round_uint32 (dstSize.h / ratio)); in Render()
1292 dstSize.v = MaximumSize (); in Render()
1293 dstSize.h = Max_uint32 (1, Round_uint32 (dstSize.v * ratio)); in Render()
1302 if (srcBounds.Size () != dstSize) in Render()
1305 tempImage.Reset (fHost.Make_dng_image (dstSize, in Render()
/external/libjpeg-turbo/
Dtjunittest.c396 unsigned long *dstSize, int w, int h, int pf, char *basename, in compTest() argument
408 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize); in compTest()
433 dstSize, jpegQual, flags)); in compTest()
439 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
445 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
462 unsigned long dstSize=0; in _decompTest() local
469 dstSize=scaledWidth*scaledHeight*tjPixelSize[pf]; in _decompTest()
470 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL) in _decompTest()
472 memset(dstBuf, 0, dstSize); in _decompTest()
635 unsigned long dstSize=0; in bufSizeTest() local
[all …]
/external/skia/src/effects/
DSkPackBits.cpp38 uint8_t* SK_RESTRICT dst, size_t dstSize) { in Pack8() argument
39 if (dstSize < ComputeMaxSize8(srcSize)) { in Pack8()
82 uint8_t* SK_RESTRICT dst, size_t dstSize) { in Unpack8() argument
84 uint8_t* const endDst = dst + dstSize; in Unpack8()
DSkPackBits.h31 size_t dstSize);
42 size_t dstSize);
DSkBlurMask.cpp541 size_t dstSize = dst->computeImageSize(); in BoxBlur() local
542 if (0 == dstSize) { in BoxBlur()
549 uint8_t* dp = SkMask::AllocImage(dstSize); in BoxBlur()
553 SkAutoTMalloc<uint8_t> tmpBuffer(dstSize); in BoxBlur()
795 size_t dstSize = dst->computeImageSize(); in BlurRect() local
796 if (0 == dstSize) { in BlurRect()
800 uint8_t* dp = SkMask::AllocImage(dstSize); in BlurRect()
915 size_t dstSize = dst->computeImageSize(); in BlurGroundTruth() local
916 if (0 == dstSize) { in BlurGroundTruth()
925 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth()
DSkRRectsGaussianEdgeMaskFilter.cpp154 size_t dstSize = dst->computeImageSize(); in filterMask() local
155 if (0 == dstSize) { in filterMask()
160 uint8_t* dstPixels = dst->fImage = SkMask::AllocImage(dstSize); in filterMask()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiFillBufferTests.cpp60 VkDeviceSize dstSize; member
124 …testParams.bufferAllocator->createTestBuffer(m_params.dstSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT, c… in FillBufferTestInstance()
129 const int dstLevelWidth = (int)(m_params.dstSize / 4); in iterate()
294 const int dstLevelWidth = (int)(m_params.dstSize / 4); in iterate()
418 params.dstSize = TestParams::TEST_DATA_SIZE; in createFillAndUpdateBufferTests()
423 DE_ASSERT(params.dstSize <= TestParams::TEST_DATA_SIZE); in createFillAndUpdateBufferTests()
424 deMemset(params.testData, 0xFFu, (size_t)params.dstSize); in createFillAndUpdateBufferTests()
434 params.size = params.dstSize; in createFillAndUpdateBufferTests()
466 params.dstOffset = params.dstSize / 2; in createFillAndUpdateBufferTests()
467 params.size = params.dstSize / 2; in createFillAndUpdateBufferTests()
/external/libvncserver/test/
Dtjunittest.c239 unsigned long *dstSize, int w, int h, int pf, char *basename, in compTest() argument
252 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize); in compTest()
255 *dstSize=tjBufSize(w, h, subsamp); in compTest()
256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
263 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
280 unsigned long dstSize=0; in _decompTest() local
293 dstSize=scaledWidth*scaledHeight*tjPixelSize[pf]; in _decompTest()
294 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL) in _decompTest()
296 memset(dstBuf, 0, dstSize); in _decompTest()
/external/lz4/examples/
DframeCompress.c180 size_t dstSize = dstCapacity; in decompress_file() local
181 … ret = LZ4F_decompress(dctx, dst, &dstSize, srcPtr, &srcSize, /* LZ4F_decompressOptions_t */ NULL); in decompress_file()
187 if (dstSize != 0){ in decompress_file()
188 size_t written = fwrite(dst, 1, dstSize, out); in decompress_file()
189 printf("Writing %zu bytes\n", dstSize); in decompress_file()
190 if (written != dstSize) { in decompress_file()
/external/icu/icu4c/source/common/
Dunistr_cnv.cpp124 uint32_t dstSize) const { in extract()
125 return extract(start, length, target, dstSize, 0); in extract()
135 uint32_t dstSize, in extract() argument
139 if(/*dstSize < 0 || */(dstSize > 0 && target == 0)) { in extract()
152 if(dstSize < 0x7fffffff) { in extract()
154 capacity = (int32_t)dstSize; in extract()
Dunistr.cpp945 char *target, uint32_t dstSize) const { in extract()
947 if(/*dstSize < 0 || */(dstSize > 0 && target == 0)) { in extract()
950 return toUTF8(start, len, target, dstSize <= 0x7fffffff ? (int32_t)dstSize : 0x7fffffff); in extract()
/external/lz4/lib/
Dlz4frame.c499 typedef int (*compressFunc_t)(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int …
528 …_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level) in LZ4F_localLZ4_compressHC_limitedOutput_continue() argument
531 return LZ4_compress_HC_continue((LZ4_streamHC_t*)ctx, src, dst, srcSize, dstSize); in LZ4F_localLZ4_compressHC_limitedOutput_continue()
968 static void LZ4F_updateDict(LZ4F_dctx* dctxPtr, const BYTE* dstPtr, size_t dstSize, const BYTE* dst… in LZ4F_updateDict() argument
974 dctxPtr->dictSize += dstSize; in LZ4F_updateDict()
978 if (dstPtr - dstPtr0 + dstSize >= 64 KB) { /* dstBuffer large enough to become dictionary */ in LZ4F_updateDict()
980 dctxPtr->dictSize = dstPtr - dstPtr0 + dstSize; in LZ4F_updateDict()
986 dctxPtr->dictSize += dstSize; in LZ4F_updateDict()
1000 dctxPtr->dictSize = preserveSize + dctxPtr->tmpOutStart + dstSize; in LZ4F_updateDict()
1005 … if (dctxPtr->dictSize + dstSize > dctxPtr->maxBufferSize) { /* tmp buffer not large enough */ in LZ4F_updateDict()
[all …]
/external/deqp/framework/opengl/
DgluTextureTestUtil.cpp198 static float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, deInt32 srcSize, c… in computeNonProjectedTriLod() argument
202 float dx = (float)dstSize.x(); in computeNonProjectedTriLod()
203 float dy = (float)dstSize.y(); in computeNonProjectedTriLod()
236 static float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, const tcu::IVec2& … in computeNonProjectedTriLod() argument
242 float dx = (float)dstSize.x(); in computeNonProjectedTriLod()
243 float dy = (float)dstSize.y(); in computeNonProjectedTriLod()
277 static float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, const tcu::IVec3& … in computeNonProjectedTriLod() argument
285 float dx = (float)dstSize.x(); in computeNonProjectedTriLod()
286 float dy = (float)dstSize.y(); in computeNonProjectedTriLod()
400 tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); in sampleTextureNonProjected() local
[all …]
/external/deqp/modules/gles3/functional/
Des3fBufferCopyTests.cpp57 int dstSize, in BasicBufferCopyCase() argument
68 , m_dstSize (dstSize) in BasicBufferCopyCase()
286 int dstSize; in init() member
311 dstTarget, cases[ndx].dstSize, hint, in init()
Des3fVertexTextureTests.cpp501 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
642 float Vertex2DTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx)… in calculateLod() argument
646 const Vec2 sizeRatio = texScale*srcSize / dstSize; in calculateLod()
807 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
963 float VertexCubeTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNd… in calculateLod() argument
967 const Vec2 sizeRatio = texScale*srcSize / dstSize; in calculateLod()
1145 float calculateLod (const Mat3& transf, const Vec2& dstSize, int textureNdx) const;
1288 float Vertex2DArrayTextureCase::calculateLod (const Mat3& transf, const Vec2& dstSize, int textureN… in calculateLod() argument
1300 const float dudx = (trans10.x() - trans00.x()) * (float)texWidth / dstSize.x(); in calculateLod()
1301 const float dudy = (trans01.x() - trans00.x()) * (float)texWidth / dstSize.y(); in calculateLod()
[all …]
Des3fFramebufferBlitTests.cpp58 …eUint32 filter, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dst… in BlitRectCase() argument
63 , m_dstSize (dstSize) in BlitRectCase()
167 …nst char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dst…
172 …nst char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dst… in BlitNearestFilterConsistencyCase() argument
173 : BlitRectCase(context, name, desc, GL_NEAREST, srcSize, srcRect, dstSize, dstRect, 1) in BlitNearestFilterConsistencyCase()
459 … IVec2& srcSize, const IVec4& srcRect, deUint32 dstBuffers, const IVec2& dstSize, const IVec4& dst… in BlitDepthStencilCase() argument
466 , m_dstSize (dstSize) in BlitDepthStencilCase()
975 const IVec2 dstSize(132, 128); in init() local
990 …tCase(m_context, (name + "_nearest").c_str(), "", GL_NEAREST, srcSize, srcRect, dstSize, dstRect)); in init()
991 …ctCase(m_context, (name + "_linear").c_str(), "", GL_LINEAR, srcSize, srcRect, dstSize, dstRect)); in init()
[all …]
/external/lz4/programs/
Dbench.c51 …c, char* dst, int srcSize, int dstSize, int clevel) { (void)clevel; return LZ4_compress_default(sr… in LZ4_compress_local() argument
152 int (*compressionFunction)(const char* src, char* dst, int srcSize, int dstSize, int cLevel);
Dlz4io.c312 static int LZ4IO_LZ4_compress(const char* src, char* dst, int srcSize, int dstSize, int cLevel) in LZ4IO_LZ4_compress() argument
315 return LZ4_compress_fast(src, dst, srcSize, dstSize, 1); in LZ4IO_LZ4_compress()
323 int (*compressionFunction)(const char* src, char* dst, int srcSize, int dstSize, int cLevel); in LZ4IO_compressFilename_Legacy()
/external/deqp/modules/gles2/functional/
Des2fVertexTextureTests.cpp404 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
542 float Vertex2DTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx)… in calculateLod() argument
546 const Vec2 sizeRatio = texScale*srcSize / dstSize; in calculateLod()
707 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
860 float VertexCubeTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNd… in calculateLod() argument
864 const Vec2 sizeRatio = texScale*srcSize / dstSize; in calculateLod()
/external/lz4/tests/
Dfullbench.c307 size_t dstSize = outSize; in local_LZ4F_decompress() local
309 result = LZ4F_decompress(g_dCtx, out, &dstSize, in, &srcSize, NULL); in local_LZ4F_decompress()
312 return (int)dstSize; in local_LZ4F_decompress()
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrCopyTests.cpp619 const UVec2& dstSize, in genCopies() argument
655 const UVec2 dstPlaneSize (getPlaneSize(dstPlaneInfo, dstPlaneNdx, dstSize)); in genCopies()
1051 const UVec2 dstSize (isYCbCrFormat(dstFormat) ? UVec2(24u, 16u) : UVec2(23u, 17u)); in initTests() local
1075 …Format, srcTiling, srcDisjoint, srcSize), ImageConfig(dstFormat, dstTiling, dstDisjoint, dstSize)); in initTests()
/external/deqp/modules/gles31/functional/
Des31fPrimitiveBoundingBoxTests.cpp3419 …const tcu::IVec2 dstSize = (m_dst == TARGET_DEFAULT) ? (tcu::IVec2(m_context.getRenderTarget().get… in init() local
3424 << "dstSize = " << dstSize << "\n" in init()
3433 …tcu::IVec2 unionSize = tcu::IVec2(de::min(srcSize.x(), dstSize.x()), de::min(srcSize.y(), dstSize.… in init()
3452 const int dstWidth = rnd.getInt(1, dstSize.x()); in init()
3453 const int dstHeight = rnd.getInt(1, dstSize.y()); in init()
3454 …const int dstX = rnd.getInt(-(dstWidth / 2), dstSize.x() - (dstWidth+1) / 2); // allow dst go ou… in init()
3455 const int dstY = rnd.getInt(-(dstHeight / 2), dstSize.y() - (dstHeight+1) / 2); in init()
3548 …const tcu::IVec2 dstSize = (m_dst == TARGET_DEFAULT) ? (tcu::IVec2(m_context.getRenderTarget().… in verifyImage() local
3550 tcu::Surface viewport (dstSize.x(), dstSize.y()); in verifyImage()
3551 tcu::Surface errorMask (dstSize.x(), dstSize.y()); in verifyImage()
[all …]
Des31fCopyImageTests.cpp2076 , dstSize (dstSize_) in Copy()
2085 IVec3 dstSize; //!< used only for logging member
2129 const IVec3 dstSize = getLevelSize(dstInfo.getTarget(), dstInfo.getSize(), dstLevel); in generateCopies() local
2133 …tCompleteBlockSize = IVec3(dstSize.x() / dstBlockPixelSize.x(), dstSize.y() / dstBlockPixelSize.y(… in generateCopies()
2207 << "Size in destination format is " << copy.dstSize in copyImageIter()
2402 const IVec3 dstSize = getTestedSize(dstTarget, dstFormat, targetSize); in addCopyTests() local
2406 ImageInfo(dstFormat, dstTarget, dstSize), in addCopyTests()
/external/deqp/external/vulkancts/framework/vulkan/
DvkNullDriver.cpp541 const deUint32 dstSize = pPropertyCount ? *pPropertyCount : 0; in enumerateExtensions() local
548 for (deUint32 ndx = 0; ndx < de::min(numExtensions, dstSize); ++ndx) in enumerateExtensions()
551 if (dstSize < numExtensions) in enumerateExtensions()

12