/third_party/lz4/ossfuzz/ |
H A D | round_trip_fuzzer.c | 36 int const dstSize = LZ4_compress_default((const char*)data, dst, in LLVMFuzzerTestOneInput() local 38 FUZZ_ASSERT(dstSize > 0); in LLVMFuzzerTestOneInput() 40 int const rtSize = LZ4_decompress_safe(dst, rt, dstSize, size); in LLVMFuzzerTestOneInput() 49 dst, partial, dstSize, partialCapacity, partialCapacity); in LLVMFuzzerTestOneInput() 60 dst, partial, dstSize, partialCapacity, partialCapacity, NULL, 0); in LLVMFuzzerTestOneInput() 71 dst, partial, dstSize, partialCapacity, partialCapacity, dstPlusSmallPrefix, smallSize); in LLVMFuzzerTestOneInput() 82 dst, partial, dstSize, partialCapacity, partialCapacity, dstPlusLargePrefix, largeSize); in LLVMFuzzerTestOneInput() 93 dst, partial, dstSize, partialCapacity, partialCapacity, smallDict, smallSize); in LLVMFuzzerTestOneInput() 104 dst, partial, dstSize, partialCapacity, partialCapacity, largeDict, largeSize); in LLVMFuzzerTestOneInput()
|
H A D | compress_hc_fuzzer.c | 35 int const dstSize = LZ4_compress_HC((const char*)data, dst, size, in LLVMFuzzerTestOneInput() local 37 if (dstSize > 0) { in LLVMFuzzerTestOneInput() 38 int const rtSize = LZ4_decompress_safe(dst, rt, dstSize, size); in LLVMFuzzerTestOneInput() 49 int const dstSize = LZ4_compress_HC_destSize(state, (const char*)data, in LLVMFuzzerTestOneInput() local 52 FUZZ_ASSERT(dstSize > 0); in LLVMFuzzerTestOneInput() 53 int const rtSize = LZ4_decompress_safe(dst, rt, dstSize, size); in LLVMFuzzerTestOneInput()
|
H A D | compress_fuzzer.c | 33 int const dstSize = LZ4_compress_default((const char*)data, dst, in LLVMFuzzerTestOneInput() local 35 if (dstSize > 0) { in LLVMFuzzerTestOneInput() 36 int const rtSize = LZ4_decompress_safe(dst, rt, dstSize, size); in LLVMFuzzerTestOneInput() 45 int const dstSize = LZ4_compress_destSize((const char*)data, dst, in LLVMFuzzerTestOneInput() local 47 FUZZ_ASSERT(dstSize > 0); in LLVMFuzzerTestOneInput() 48 int const rtSize = LZ4_decompress_safe(dst, rt, dstSize, size); in LLVMFuzzerTestOneInput()
|
H A D | compress_frame_fuzzer.c | 35 size_t const dstSize = in LLVMFuzzerTestOneInput() local 37 if (!LZ4F_isError(dstSize)) { in LLVMFuzzerTestOneInput() 38 size_t const rtSize = FUZZ_decompressFrame(rt, size, dst, dstSize); in LLVMFuzzerTestOneInput()
|
H A D | round_trip_frame_fuzzer.c | 31 size_t const dstSize = in LLVMFuzzerTestOneInput() local 33 FUZZ_ASSERT(!LZ4F_isError(dstSize)); in LLVMFuzzerTestOneInput() 34 size_t const rtSize = FUZZ_decompressFrame(rt, size, dst, dstSize); in LLVMFuzzerTestOneInput()
|
H A D | round_trip_hc_fuzzer.c | 31 int const dstSize = LZ4_compress_HC((const char*)data, dst, size, in LLVMFuzzerTestOneInput() local 33 FUZZ_ASSERT(dstSize > 0); in LLVMFuzzerTestOneInput() 35 int const rtSize = LZ4_decompress_safe(dst, rt, dstSize, size); in LLVMFuzzerTestOneInput()
|
H A D | lz4_helpers.c | 40 size_t dstSize = dstCapacity; in FUZZ_decompressFrame() local 43 LZ4F_decompress(dctx, dst, &dstSize, src, &srcConsumed, &opts); in FUZZ_decompressFrame() 50 return dstSize; in FUZZ_decompressFrame()
|
H A D | round_trip_frame_uncompressed_fuzzer.c | 28 size_t dstSize = dstCapacity; in decompress() local 30 ret = LZ4F_decompress(dctx, dstPtr, &dstSize, srcPtr, &srcSize, in decompress() 36 dstPtr = (char *) dstPtr + dstSize; in decompress()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/ |
H A D | vktApiFillBufferTests.cpp | 63 VkDeviceSize dstSize; member 77 // dstSize will be used as the buffer size. 99 testParams.bufferAllocator->createTestBuffer(m_params.dstSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT, context, memAlloc, m_destination, MemoryRequirement::HostVisible, m_destinationBufferAlloc); in FillWholeBufferTestInstance() 109 DE_ASSERT(m_params.dstSize >= sizeof(deUint32)); in iterate() 110 DE_ASSERT(m_params.dstSize < static_cast<VkDeviceSize>(std::numeric_limits<size_t>::max())); in iterate() 111 DE_ASSERT(m_params.dstOffset < m_params.dstSize); in iterate() 115 deMemset(bytes, 0xff, static_cast<size_t>(m_params.dstSize)); in iterate() 141 const VkDeviceSize startOfExtra = (m_params.dstSize / sizeof(deUint32)) * sizeof(deUint32); in iterate() 142 for (VkDeviceSize i = 0; i < m_params.dstSize; ++i) in iterate() 229 testParams.bufferAllocator->createTestBuffer(m_params.dstSize, VK_BUFFER_USAGE_TRANSFER_DST_BI in FillBufferTestInstance() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
H A D | vktApiFillBufferTests.cpp | 66 VkDeviceSize dstSize; member 167 // dstSize will be used as the buffer size. 210 testParams.bufferAllocator->createTestBuffer(vk, m_device, m_queueFamilyIndex, m_params.dstSize, VK_BUFFER_USAGE_TRANSFER_DST_BIT, context, *m_allocator, m_destination, MemoryRequirement::HostVisible, m_destinationBufferAlloc); in FillWholeBufferTestInstance() 222 DE_ASSERT(m_params.dstSize >= sizeof(deUint32)); in iterate() 223 DE_ASSERT(m_params.dstSize < static_cast<VkDeviceSize>(std::numeric_limits<size_t>::max())); in iterate() 224 DE_ASSERT(m_params.dstOffset < m_params.dstSize); in iterate() 228 deMemset(bytes, 0xff, static_cast<size_t>(m_params.dstSize)); in iterate() 310 const VkDeviceSize startOfExtra = (m_params.dstSize / sizeof(deUint32)) * sizeof(deUint32); in iterate() 311 for (VkDeviceSize i = 0; i < m_params.dstSize; ++i) in iterate() 418 testParams.bufferAllocator->createTestBuffer(vk, m_device, m_queueFamilyIndex, m_params.dstSize, VK_BUFFER_USAGE_TRANSFER_DST_BI in FillBufferTestInstance() [all...] |
/third_party/skia/src/gpu/geometry/ |
H A D | GrRect.h | 100 * Clips the srcRect and the dstPoint to the bounds of the srcSize and dstSize respectively. Returns 105 static inline bool GrClipSrcRectAndDstPoint(const SkISize& dstSize, in GrClipSrcRectAndDstPoint() argument 138 if (clippedDstPoint->fX + clippedSrcRect->width() > dstSize.width()) { in GrClipSrcRectAndDstPoint() 139 clippedSrcRect->fRight = clippedSrcRect->fLeft + dstSize.width() - clippedDstPoint->fX; in GrClipSrcRectAndDstPoint() 146 if (clippedDstPoint->fY + clippedSrcRect->height() > dstSize.height()) { in GrClipSrcRectAndDstPoint() 147 clippedSrcRect->fBottom = clippedSrcRect->fTop + dstSize.height() - clippedDstPoint->fY; in GrClipSrcRectAndDstPoint()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/ |
H A D | vktYCbCrConversionTests.cpp | 122 const UVec2& dstSize) in genTexCoords() 124 for (deUint32 y = 0; y < dstSize.y(); y++) in genTexCoords() 125 for (deUint32 x = 0; x < dstSize.x(); x++) in genTexCoords() 191 , dstSize (dstSize_) in TestConfig() 213 const UVec2 dstSize; member 731 const UVec2 dstSize = config.dstSize; in textureConversionTest() local 834 if (dstSize.x() > srcSize.x() && dstSize.y() > srcSize.y()) in textureConversionTest() 835 genTexCoords(sts, srcSize, dstSize); in textureConversionTest() 120 genTexCoords(std::vector<Vec2>& coords, const UVec2& srcSize, const UVec2& dstSize) genTexCoords() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/ |
H A D | vktYCbCrConversionTests.cpp | 122 const UVec2& dstSize) in genTexCoords() 124 for (deUint32 y = 0; y < dstSize.y(); y++) in genTexCoords() 125 for (deUint32 x = 0; x < dstSize.x(); x++) in genTexCoords() 191 , dstSize (dstSize_) in TestConfig() 213 const UVec2 dstSize; member 678 const UVec2 dstSize = config.dstSize; in textureConversionTest() local 761 if (dstSize.x() > srcSize.x() && dstSize.y() > srcSize.y()) in textureConversionTest() 762 genTexCoords(sts, srcSize, dstSize); in textureConversionTest() 120 genTexCoords(std::vector<Vec2>& coords, const UVec2& srcSize, const UVec2& dstSize) genTexCoords() argument [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | tjunittest.c | 374 unsigned long *dstSize, int w, int h, int pf, in compTest() 388 if (*dstBuf && *dstSize > 0) memset(*dstBuf, 0, *dstSize); in compTest() 413 dstSize, jpegQual, flags)); in compTest() 417 TRY_TJ(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest() 423 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest() 441 unsigned long dstSize = 0; in _decompTest() local 448 dstSize = scaledWidth * scaledHeight * tjPixelSize[pf]; in _decompTest() 449 if ((dstBuf = (unsigned char *)malloc(dstSize)) == NULL) in _decompTest() 451 memset(dstBuf, 0, dstSize); in _decompTest() 373 compTest(tjhandle handle, unsigned char **dstBuf, unsigned long *dstSize, int w, int h, int pf, char *basename, int subsamp, int jpegQual, int flags) compTest() argument 615 unsigned long dstSize = 0; bufSizeTest() local [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | unistr_cnv.cpp | 124 uint32_t dstSize) const { in extract() 125 return extract(start, length, target, dstSize, 0); in extract() 135 uint32_t dstSize, in extract() 139 if(/*dstSize < 0 || */(dstSize > 0 && target == 0)) { in extract() 146 // We need to cast dstSize to int32_t for all subsequent code. in extract() 148 // Also, dstSize==0xffffffff means "unlimited" but if we use target+dstSize in extract() 152 if(dstSize < 0x7fffffff) { in extract() 154 capacity = (int32_t)dstSize; in extract() 132 extract(int32_t start, int32_t length, char *target, uint32_t dstSize, const char *codepage) const extract() argument [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | unistr_cnv.cpp | 124 uint32_t dstSize) const { in extract() 125 return extract(start, length, target, dstSize, 0); in extract() 135 uint32_t dstSize, in extract() 139 if(/*dstSize < 0 || */(dstSize > 0 && target == 0)) { in extract() 146 // We need to cast dstSize to int32_t for all subsequent code. in extract() 148 // Also, dstSize==0xffffffff means "unlimited" but if we use target+dstSize in extract() 152 if(dstSize < 0x7fffffff) { in extract() 154 capacity = (int32_t)dstSize; in extract() 132 extract(int32_t start, int32_t length, char *target, uint32_t dstSize, const char *codepage) const extract() argument [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | unistr_cnv.cpp | 124 uint32_t dstSize) const { in extract() 125 return extract(start, length, target, dstSize, 0); in extract() 135 uint32_t dstSize, in extract() 139 if(/*dstSize < 0 || */(dstSize > 0 && target == 0)) { in extract() 146 // We need to cast dstSize to int32_t for all subsequent code. in extract() 148 // Also, dstSize==0xffffffff means "unlimited" but if we use target+dstSize in extract() 152 if(dstSize < 0x7fffffff) { in extract() 154 capacity = (int32_t)dstSize; in extract() 132 extract(int32_t start, int32_t length, char *target, uint32_t dstSize, const char *codepage) const extract() argument [all...] |
/third_party/lz4/programs/ |
H A D | bench.c | 168 const char* src, char* dst, int srcSize, int dstSize); 225 int srcSize, int dstSize) in LZ4_compressBlockNoStream() 228 return LZ4_compress_fast(src, dst, srcSize, dstSize, acceleration); in LZ4_compressBlockNoStream() 234 int srcSize, int dstSize) in LZ4_compressBlockNoStreamHC() 236 return LZ4_compress_HC(src, dst, srcSize, dstSize, pThis->cLevel); in LZ4_compressBlockNoStreamHC() 242 int srcSize, int dstSize) in LZ4_compressBlockStream() 245 return LZ4_compress_fast_continue(pThis->LZ4_stream, src, dst, srcSize, dstSize, acceleration); in LZ4_compressBlockStream() 251 int srcSize, int dstSize) in LZ4_compressBlockStreamHC() 253 return LZ4_compress_HC_continue(pThis->LZ4_streamHC, src, dst, srcSize, dstSize); in LZ4_compressBlockStreamHC() 322 size_t dstSize in LZ4F_decompress_binding() local 223 LZ4_compressBlockNoStream(const struct compressionParameters* pThis, const char* src, char* dst, int srcSize, int dstSize) LZ4_compressBlockNoStream() argument 232 LZ4_compressBlockNoStreamHC(const struct compressionParameters* pThis, const char* src, char* dst, int srcSize, int dstSize) LZ4_compressBlockNoStreamHC() argument 240 LZ4_compressBlockStream(const struct compressionParameters* pThis, const char* src, char* dst, int srcSize, int dstSize) LZ4_compressBlockStream() argument 249 LZ4_compressBlockStreamHC(const struct compressionParameters* pThis, const char* src, char* dst, int srcSize, int dstSize) LZ4_compressBlockStreamHC() argument [all...] |
/third_party/skia/src/core/ |
H A D | SkBlurMask.cpp | 227 size_t dstSize = dst->computeImageSize(); in BoxBlur() local 228 if (0 == dstSize) { in BoxBlur() 231 dst->fImage = SkMask::AllocImage(dstSize); in BoxBlur() 432 size_t dstSize = dst->computeImageSize(); in BlurRect() local 433 if (0 == dstSize) { in BlurRect() 437 uint8_t* dp = SkMask::AllocImage(dstSize); in BlurRect() 549 size_t dstSize = dst->computeImageSize(); in BlurGroundTruth() local 550 if (0 == dstSize) { in BlurGroundTruth() 559 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/ |
H A D | Framebuffer9.cpp | 260 gl::Extents dstSize(drawRenderTarget->getWidth(), drawRenderTarget->getHeight(), 1); in blitImpl() 305 if (dstRect.right > dstSize.width) in blitImpl() 307 srcRect.right -= (dstRect.right - dstSize.width); in blitImpl() 308 dstRect.right = dstSize.width; in blitImpl() 315 if (dstRect.bottom > dstSize.height) in blitImpl() 317 srcRect.bottom -= (dstRect.bottom - dstSize.height); in blitImpl() 318 dstRect.bottom = dstSize.height; in blitImpl()
|
/third_party/skia/src/image/ |
H A D | SkSurface.cpp | 113 const SkISize& dstSize, RescaleGamma rescaleGamma, RescaleMode, in onAsyncRescaleAndReadPixelsYUV420() 275 const SkISize& dstSize, in asyncRescaleAndReadPixelsYUV420() 280 if (!SkIRect::MakeWH(this->width(), this->height()).contains(srcRect) || dstSize.isZero() || in asyncRescaleAndReadPixelsYUV420() 281 (dstSize.width() & 0b1) || (dstSize.height() & 0b1)) { in asyncRescaleAndReadPixelsYUV420() 288 dstSize, in asyncRescaleAndReadPixelsYUV420() 111 onAsyncRescaleAndReadPixelsYUV420( SkYUVColorSpace yuvColorSpace, sk_sp<SkColorSpace> dstColorSpace, const SkIRect& srcRect, const SkISize& dstSize, RescaleGamma rescaleGamma, RescaleMode, ReadPixelsCallback callback, ReadPixelsContext context) onAsyncRescaleAndReadPixelsYUV420() argument 272 asyncRescaleAndReadPixelsYUV420(SkYUVColorSpace yuvColorSpace, sk_sp<SkColorSpace> dstColorSpace, const SkIRect& srcRect, const SkISize& dstSize, RescaleGamma rescaleGamma, RescaleMode rescaleMode, ReadPixelsCallback callback, ReadPixelsContext context) asyncRescaleAndReadPixelsYUV420() argument
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
H A D | vktTextureSwizzleTests.cpp | 170 const tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); in iterate() local 198 const float triLod[2] = { de::clamp(computeNonProjectedTriLod(sampleParams.lodMode, dstSize, srcSize, triS[0], triT[0]) + lodBias, sampleParams.minLod, sampleParams.maxLod), in iterate() 199 de::clamp(computeNonProjectedTriLod(sampleParams.lodMode, dstSize, srcSize, triS[1], triT[1]) + lodBias, sampleParams.minLod, sampleParams.maxLod) }; in iterate() 201 for (int y = 0; y < dstSize.y(); y++) in iterate() 202 for (int x = 0; x < dstSize.x(); x++) in iterate() 204 const float yf = ((float)y + 0.5f) / (float)dstSize.y(); in iterate() 205 const float xf = ((float)x + 0.5f) / (float)dstSize.x(); in iterate()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fBufferCopyTests.cpp | 57 int dstSize, in BasicBufferCopyCase() 68 , m_dstSize (dstSize) in BasicBufferCopyCase() 286 int dstSize; in init() member 292 // srcSize dstSize srcOffs dstOffs copySize in init() 311 dstTarget, cases[ndx].dstSize, hint, in init() 50 BasicBufferCopyCase(Context& context, const char* name, const char* desc, deUint32 srcTarget, int srcSize, deUint32 srcHint, deUint32 dstTarget, int dstSize, deUint32 dstHint, int copySrcOffset, int copyDstOffset, int copySize, VerifyType verifyType) BasicBufferCopyCase() argument
|
H A D | es3fVertexTextureTests.cpp | 501 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const; 642 float Vertex2DTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const 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 textureNdx) const 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 textureNdx) const 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 in calculateLod() 1628 calculateLod(const Mat3& transf, const Vec2& dstSize, int textureNdx) const calculateLod() argument [all...] |
/third_party/vk-gl-cts/framework/opengl/ |
H A D | gluTextureTestUtil.cpp | 198 float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, deInt32 srcSize, const tcu::Vec3& sq) in computeNonProjectedTriLod() argument 202 float dx = (float)dstSize.x(); in computeNonProjectedTriLod() 203 float dy = (float)dstSize.y(); in computeNonProjectedTriLod() 236 float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, const tcu::IVec2& srcSize, const tcu::Vec3& sq, const tcu::Vec3& tq) in computeNonProjectedTriLod() argument 242 float dx = (float)dstSize.x(); in computeNonProjectedTriLod() 243 float dy = (float)dstSize.y(); in computeNonProjectedTriLod() 277 float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, const tcu::IVec3& srcSize, const tcu::Vec3& sq, const tcu::Vec3& tq, const tcu::Vec3& rq) in computeNonProjectedTriLod() argument 285 float dx = (float)dstSize.x(); in computeNonProjectedTriLod() 286 float dy = (float)dstSize.y(); in computeNonProjectedTriLod() 400 tcu::IVec2 dstSize in sampleTextureNonProjected() local 436 tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); sampleTextureNonProjected() local 659 const tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); sampleTextureCube() local 730 tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); sampleTextureNonProjected() local 779 tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); sampleTextureNonProjected() local 825 tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); sampleTextureNonProjected() local 1309 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureLookupDiff() local 1425 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureLookupDiff() local 1642 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureLookupDiff() local 1839 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureLookupDiff() local 2016 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureLookupDiff() local 2124 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureLookupDiff() local 2322 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureLookupDiff() local 2502 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureCompareDiff() local 2617 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureCompareDiff() local 2741 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureCompareDiff() local 2855 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), 1); computeTextureCompareDiff() local 2961 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), 1); computeTextureCompareDiff() local 3070 const tcu::IVec2 dstSize = tcu::IVec2(result.getWidth(), result.getHeight()); computeTextureCompareDiff() local [all...] |