Home
last modified time | relevance | path

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

12

/external/skqp/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/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/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrConversionTests.cpp103 const UVec2& dstSize) in genTexCoords() argument
105 for (deUint32 y = 0; y < dstSize.y(); y++) in genTexCoords()
106 for (deUint32 x = 0; x < dstSize.x(); x++) in genTexCoords()
171 , dstSize (dstSize_) in TestConfig()
192 const UVec2 dstSize; member
597 const UVec2 dstSize = config.dstSize; in textureConversionTest() local
680 if (dstSize.x() > srcSize.x() && dstSize.y() > srcSize.y()) in textureConversionTest()
681 genTexCoords(sts, srcSize, dstSize); in textureConversionTest()
683 genOneToOneTexCoords(sts, dstSize); in textureConversionTest()
743 …tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::FLOAT), dstSize.x(), dstSize.y()); in textureConversionTest()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiFillBufferTests.cpp62 VkDeviceSize dstSize; member
122 …testParams.bufferAllocator->createTestBuffer(m_params.dstSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT, c… in FillBufferTestInstance()
127 const int dstLevelWidth = (int)(m_params.dstSize / 4); in iterate()
269 const int dstLevelWidth = (int)(m_params.dstSize / 4); in iterate()
370 params.dstSize = TestParams::TEST_DATA_SIZE; in createFillAndUpdateBufferTests()
375 DE_ASSERT(params.dstSize <= TestParams::TEST_DATA_SIZE); in createFillAndUpdateBufferTests()
377 for (deUint32 b = 0u; b < (params.dstSize * sizeof(params.testData[0])); b++) in createFillAndUpdateBufferTests()
388 params.size = params.dstSize; in createFillAndUpdateBufferTests()
420 params.dstOffset = params.dstSize / 2; in createFillAndUpdateBufferTests()
421 params.size = params.dstSize / 2; in createFillAndUpdateBufferTests()
/external/skqp/src/effects/
DSkPackBits.cpp42 uint8_t* SK_RESTRICT dst, size_t dstSize) { in Pack8() argument
43 if (dstSize < ComputeMaxSize8(srcSize)) { in Pack8()
86 uint8_t* SK_RESTRICT dst, size_t dstSize) { in Unpack8() argument
88 uint8_t* const endDst = dst + dstSize; in Unpack8()
DSkPackBits.h31 size_t dstSize);
42 size_t dstSize);
/external/skia/src/effects/
DSkPackBits.cpp42 uint8_t* SK_RESTRICT dst, size_t dstSize) { in Pack8() argument
43 if (dstSize < ComputeMaxSize8(srcSize)) { in Pack8()
86 uint8_t* SK_RESTRICT dst, size_t dstSize) { in Unpack8() argument
88 uint8_t* const endDst = dst + dstSize; in Unpack8()
DSkPackBits.h31 size_t dstSize);
42 size_t dstSize);
/external/libjpeg-turbo/
Dtjunittest.c359 void compTest(tjhandle handle, unsigned char **dstBuf, unsigned long *dstSize, in compTest() argument
374 if (*dstBuf && *dstSize > 0) memset(*dstBuf, 0, *dstSize); in compTest()
397 _tj(tjCompressFromYUV(handle, yuvBuf, w, pad, h, subsamp, dstBuf, dstSize, in compTest()
402 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
408 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
425 unsigned long dstSize = 0; in _decompTest() local
432 dstSize = scaledWidth * scaledHeight * tjPixelSize[pf]; in _decompTest()
433 if ((dstBuf = (unsigned char *)malloc(dstSize)) == NULL) in _decompTest()
435 memset(dstBuf, 0, dstSize); in _decompTest()
560 unsigned long dstSize = 0; in bufSizeTest() local
[all …]
Dtjexample.c285 unsigned long dstSize = 0; in main() local
290 if (tjTransform(tjInstance, jpegBuf, jpegSize, 1, &dstBuf, &dstSize, in main()
295 jpegSize = dstSize; in main()
/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()
/external/skqp/src/core/
DSkBlurMask.cpp226 size_t dstSize = dst->computeImageSize(); in BoxBlur() local
227 if (0 == dstSize) { in BoxBlur()
230 dst->fImage = SkMask::AllocImage(dstSize); in BoxBlur()
434 size_t dstSize = dst->computeImageSize(); in BlurRect() local
435 if (0 == dstSize) { in BlurRect()
439 uint8_t* dp = SkMask::AllocImage(dstSize); in BlurRect()
554 size_t dstSize = dst->computeImageSize(); in BlurGroundTruth() local
555 if (0 == dstSize) { in BlurGroundTruth()
564 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth()
/external/skia/src/core/
DSkBlurMask.cpp226 size_t dstSize = dst->computeImageSize(); in BoxBlur() local
227 if (0 == dstSize) { in BoxBlur()
230 dst->fImage = SkMask::AllocImage(dstSize); in BoxBlur()
434 size_t dstSize = dst->computeImageSize(); in BlurRect() local
435 if (0 == dstSize) { in BlurRect()
439 uint8_t* dp = SkMask::AllocImage(dstSize); in BlurRect()
554 size_t dstSize = dst->computeImageSize(); in BlurGroundTruth() local
555 if (0 == dstSize) { in BlurGroundTruth()
564 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth()
/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/examples/
DframeCompress.c200 size_t dstSize = dstCapacity; in decompress_file_internal() local
202 … ret = LZ4F_decompress(dctx, dst, &dstSize, srcPtr, &srcSize, /* LZ4F_decompressOptions_t */ NULL); in decompress_file_internal()
208 if (dstSize != 0) safe_fwrite(dst, 1, dstSize, f_out); in decompress_file_internal()
/external/lz4/lib/
Dlz4frame.c711 typedef int (*compressFunc_t)(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int …
1227 const BYTE* dstPtr, size_t dstSize, const BYTE* dstBufferStart, in LZ4F_updateDict() argument
1234 dctx->dictSize += dstSize; in LZ4F_updateDict()
1238 …if (dstPtr - dstBufferStart + dstSize >= 64 KB) { /* history in dstBuffer becomes large enough to… in LZ4F_updateDict()
1240 dctx->dictSize = dstPtr - dstBufferStart + dstSize; in LZ4F_updateDict()
1244 …assert(dstSize < 64 KB); /* if dstSize >= 64 KB, dictionary would be set into dstBuffer directly… in LZ4F_updateDict()
1251 dctx->dictSize += dstSize; in LZ4F_updateDict()
1265 dctx->dictSize = preserveSize + dctx->tmpOutStart + dstSize; in LZ4F_updateDict()
1270 if (dctx->dictSize + dstSize > dctx->maxBufferSize) { /* tmp buffer not large enough */ in LZ4F_updateDict()
1271 size_t const preserveSize = 64 KB - dstSize; in LZ4F_updateDict()
[all …]
/external/vulkan-validation-layers/layers/
Dvk_format_utils.cpp1316 size_t srcSize = 0, dstSize = 0; in FormatSizesAreEqual() local
1328 dstSize = FormatElementSize(planeFormat); in FormatSizesAreEqual()
1330 dstSize = FormatElementSize(dstFormat); in FormatSizesAreEqual()
1332 if (dstSize != srcSize) return false; in FormatSizesAreEqual()
1337 dstSize = FormatElementSize(dstFormat); in FormatSizesAreEqual()
1338 return (dstSize == srcSize); in FormatSizesAreEqual()
/external/lz4/programs/
Dbench.c52 static int LZ4_compress_local(const char* src, char* dst, int srcSize, int dstSize, int clevel) { in LZ4_compress_local() argument
54 return LZ4_compress_fast(src, dst, srcSize, dstSize, acceleration); in LZ4_compress_local()
157 int (*compressionFunction)(const char* src, char* dst, int srcSize, int dstSize, int cLevel);
/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;
869 float VertexCubeTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNd… in calculateLod() argument
873 const Vec2 sizeRatio = texScale*srcSize / dstSize; in calculateLod()
/external/lz4/tests/
Dfullbench.c337 size_t dstSize = outSize; in local_LZ4F_decompress() local
339 result = LZ4F_decompress(g_dCtx, out, &dstSize, in, &srcSize, NULL); in local_LZ4F_decompress()
342 return (int)dstSize; in local_LZ4F_decompress()
DroundTripTest.c90 typedef int (*compressFn)(const char* src, char* dst, int srcSize, int dstSize, int cLevel);

12