/external/lz4/programs/ |
D | bench.c | 51 …st char* src, char* dst, int srcSize, int dstSize, int clevel) { (void)clevel; return LZ4_compress… in LZ4_compress_local() argument 142 size_t srcSize; member 152 int (*compressionFunction)(const char* src, char* dst, int srcSize, int dstSize, int cLevel); 158 static int BMK_benchMem(const void* srcBuffer, size_t srcSize, in BMK_benchMem() argument 162 …size_t const blockSize = (g_blockSize>=32 ? g_blockSize : srcSize) + (!srcSize) /* avoid div by 0 … in BMK_benchMem() 163 U32 const maxNbBlocks = (U32) ((srcSize + (blockSize-1)) / blockSize) + nbFiles; in BMK_benchMem() 165 …size_t const maxCompressedSize = LZ4_compressBound((int)srcSize) + (maxNbBlocks * 1024); /* add … in BMK_benchMem() 167 void* const resultBuffer = malloc(srcSize); in BMK_benchMem() 208 blockTable[nbBlocks].srcSize = thisBlockSize; in BMK_benchMem() 221 U64 const crcOrig = XXH64(srcBuffer, srcSize, 0); in BMK_benchMem() [all …]
|
/external/skqp/src/effects/ |
D | SkPackBits.cpp | 9 size_t SkPackBits::ComputeMaxSize8(size_t srcSize) { in ComputeMaxSize8() argument 11 return ((srcSize + 127) >> 7) + srcSize; in ComputeMaxSize8() 37 size_t SkPackBits::Pack8(const uint8_t* SK_RESTRICT src, size_t srcSize, in Pack8() argument 39 if (dstSize < ComputeMaxSize8(srcSize)) { in Pack8() 44 const uint8_t* stop = src + srcSize; in Pack8() 81 int SkPackBits::Unpack8(const uint8_t* SK_RESTRICT src, size_t srcSize, in Unpack8() argument 85 const uint8_t* stop = src + srcSize; in Unpack8()
|
D | SkPackBits.h | 19 static size_t ComputeMaxSize8(size_t srcSize); 30 static size_t Pack8(const uint8_t src[], size_t srcSize, uint8_t dst[], 41 static int Unpack8(const uint8_t src[], size_t srcSize, uint8_t dst[],
|
D | SkBlurMask.cpp | 122 size_t srcSize = src.computeImageSize(); in BoxBlur() local 123 if (0 == srcSize) { in BoxBlur() 127 dst->fImage = SkMask::AllocImage(srcSize); in BoxBlur() 345 size_t srcSize = (size_t)(src.width() * src.height()); in BlurRect() local 346 if (0 == srcSize) { in BlurRect() 349 dst->fImage = SkMask::AllocImage(srcSize); in BlurRect() 512 size_t srcSize = src.computeImageSize(); in BlurGroundTruth() local 513 if (0 == srcSize) { in BlurGroundTruth() 516 dst->fImage = SkMask::AllocImage(srcSize); in BlurGroundTruth()
|
/external/skia/src/effects/ |
D | SkPackBits.cpp | 9 size_t SkPackBits::ComputeMaxSize8(size_t srcSize) { in ComputeMaxSize8() argument 11 return ((srcSize + 127) >> 7) + srcSize; in ComputeMaxSize8() 37 size_t SkPackBits::Pack8(const uint8_t* SK_RESTRICT src, size_t srcSize, in Pack8() argument 39 if (dstSize < ComputeMaxSize8(srcSize)) { in Pack8() 44 const uint8_t* stop = src + srcSize; in Pack8() 81 int SkPackBits::Unpack8(const uint8_t* SK_RESTRICT src, size_t srcSize, in Unpack8() argument 85 const uint8_t* stop = src + srcSize; in Unpack8()
|
D | SkPackBits.h | 19 static size_t ComputeMaxSize8(size_t srcSize); 30 static size_t Pack8(const uint8_t src[], size_t srcSize, uint8_t dst[], 41 static int Unpack8(const uint8_t src[], size_t srcSize, uint8_t dst[],
|
D | SkBlurMask.cpp | 123 size_t srcSize = src.computeImageSize(); in BoxBlur() local 124 if (0 == srcSize) { in BoxBlur() 128 dst->fImage = SkMask::AllocImage(srcSize); in BoxBlur() 347 size_t srcSize = (size_t)(src.width() * src.height()); in BlurRect() local 348 if (0 == srcSize) { in BlurRect() 351 dst->fImage = SkMask::AllocImage(srcSize); in BlurRect() 514 size_t srcSize = src.computeImageSize(); in BlurGroundTruth() local 515 if (0 == srcSize) { in BlurGroundTruth() 518 dst->fImage = SkMask::AllocImage(srcSize); in BlurGroundTruth()
|
/external/lz4/lib/ |
D | lz4hc.c | 523 int LZ4_compress_HC_extStateHC (void* state, const char* src, char* dst, int srcSize, int maxDstSiz… in LZ4_compress_HC_extStateHC() argument 528 if (maxDstSize < LZ4_compressBound(srcSize)) in LZ4_compress_HC_extStateHC() 529 …return LZ4HC_compress_generic (ctx, src, dst, srcSize, maxDstSize, compressionLevel, limitedOutput… in LZ4_compress_HC_extStateHC() 531 … return LZ4HC_compress_generic (ctx, src, dst, srcSize, maxDstSize, compressionLevel, noLimit); in LZ4_compress_HC_extStateHC() 534 int LZ4_compress_HC(const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel) in LZ4_compress_HC() argument 542 …int const cSize = LZ4_compress_HC_extStateHC(statePtr, src, dst, srcSize, maxDstSize, compressionL… in LZ4_compress_HC() 670 …ssHC(const char* src, char* dst, int srcSize) { return LZ4_compress_HC (src, dst, srcSize, LZ4_com… in LZ4_compressHC() argument 671 …itedOutput(const char* src, char* dst, int srcSize, int maxDstSize) { return LZ4_compress_HC(src, … in LZ4_compressHC_limitedOutput() argument 672 …onst char* src, char* dst, int srcSize, int cLevel) { return LZ4_compress_HC (src, dst, srcSize, L… in LZ4_compressHC2() argument 673 …tput(const char* src, char* dst, int srcSize, int maxDstSize, int cLevel) { return LZ4_compress_HC… in LZ4_compressHC2_limitedOutput() argument [all …]
|
D | lz4frame.c | 244 …c LZ4F_blockSizeID_t LZ4F_optimalBSID(const LZ4F_blockSizeID_t requestedBSID, const size_t srcSize) in LZ4F_optimalBSID() argument 249 if (srcSize <= maxBlockSize) in LZ4F_optimalBSID() 263 static size_t LZ4F_compressBound_internal(size_t srcSize, const LZ4F_preferences_t* preferencesPtr,… in LZ4F_compressBound_internal() argument 269 U32 const flush = prefsPtr->autoFlush | (srcSize==0); in LZ4F_compressBound_internal() 274 size_t const maxSrcSize = srcSize + bufferedSize; in LZ4F_compressBound_internal() 276 …size_t const partialBlockSize = (srcSize - (srcSize==0)) & (blockSize-1); /* 0 => -1 == MAX => b… in LZ4F_compressBound_internal() 287 size_t LZ4F_compressFrameBound(size_t srcSize, const LZ4F_preferences_t* preferencesPtr) in LZ4F_compressFrameBound() argument 296 return headerSize + LZ4F_compressBound_internal(srcSize, &prefs, 0);; in LZ4F_compressFrameBound() 309 …Frame(void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_prefe… in LZ4F_compressFrame() argument 330 … prefs.frameInfo.contentSize = (U64)srcSize; /* auto-correct content size if selected (!=0) */ in LZ4F_compressFrame() [all …]
|
D | lz4frame.h | 165 LZ4FLIB_API size_t LZ4F_compressFrameBound(size_t srcSize, const LZ4F_preferences_t* preferencesPtr… 176 …Frame(void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_prefe… 219 LZ4FLIB_API size_t LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t* prefsPtr); 227 …cctx, void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_compr…
|
D | lz4hc.h | 66 LZ4LIB_API int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compr… 79 LZ4LIB_API int LZ4_compress_HC_extStateHC(void* state, const char* src, char* dst, int srcSize, int… 101 …HC_continue (LZ4_streamHC_t* streamHCPtr, const char* src, char* dst, int srcSize, int maxDstSize);
|
/external/lz4/examples/ |
D | frameCompress.c | 149 size_t srcSize = fread(src, 1, BUF_SIZE, in); in decompress_file() local 151 void* srcEnd = srcPtr + srcSize; in decompress_file() 152 if (srcSize == 0 || ferror(in)) { in decompress_file() 159 ret = LZ4F_getFrameInfo(dctx, &info, src, &srcSize); in decompress_file() 170 srcPtr += srcSize; in decompress_file() 171 srcSize = srcEnd - srcPtr; in decompress_file() 181 … ret = LZ4F_decompress(dctx, dst, &dstSize, srcPtr, &srcSize, /* LZ4F_decompressOptions_t */ NULL); in decompress_file() 196 srcPtr += srcSize; in decompress_file() 197 srcSize = srcEnd - srcPtr; in decompress_file()
|
/external/deqp/framework/opengl/ |
D | gluTextureTestUtil.cpp | 198 static float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, deInt32 srcSize, c… in computeNonProjectedTriLod() argument 200 float dux = (sq.z() - sq.x()) * (float)srcSize; in computeNonProjectedTriLod() 201 float duy = (sq.y() - sq.x()) * (float)srcSize; in computeNonProjectedTriLod() 236 …jectedTriLod (LodMode mode, const tcu::IVec2& dstSize, const tcu::IVec2& srcSize, const tcu::Vec3&… in computeNonProjectedTriLod() argument 238 float dux = (sq.z() - sq.x()) * (float)srcSize.x(); in computeNonProjectedTriLod() 239 float duy = (sq.y() - sq.x()) * (float)srcSize.x(); in computeNonProjectedTriLod() 240 float dvx = (tq.z() - tq.x()) * (float)srcSize.y(); in computeNonProjectedTriLod() 241 float dvy = (tq.y() - tq.x()) * (float)srcSize.y(); in computeNonProjectedTriLod() 277 …jectedTriLod (LodMode mode, const tcu::IVec2& dstSize, const tcu::IVec3& srcSize, const tcu::Vec3&… in computeNonProjectedTriLod() argument 279 float dux = (sq.z() - sq.x()) * (float)srcSize.x(); in computeNonProjectedTriLod() [all …]
|
/external/lz4/tests/ |
D | frametest.c | 597 size_t const srcSize = (FUZ_rand(&randState) & ((1<<srcBits)-1)) + 1; in fuzzerTests() local 598 size_t const srcStartId = FUZ_rand(&randState) % (srcDataLength - srcSize); in fuzzerTests() 601 U64 const crcOrig = XXH64(srcStart, srcSize, 1); in fuzzerTests() 611 prefs.frameInfo.contentSize = ((FUZ_rand(&randState) & 0xF) == 1) ? srcSize : 0; in fuzzerTests() 622 FUZ_writeLE32(op+4, (U32)srcSize); in fuzzerTests() 623 cSize = srcSize+8; in fuzzerTests() 625 …F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(srcSize, prefsPtr), srcStart, srcSize, p… in fuzzerTests() 629 const BYTE* const iend = srcStart + srcSize; in fuzzerTests() 631 …BYTE* const oend = op + (neverFlush ? LZ4F_compressFrameBound(srcSize, prefsPtr) : compressedBuffe… in fuzzerTests() 632 unsigned const maxBits = FUZ_highbit((U32)srcSize); in fuzzerTests() [all …]
|
D | fuzzer.c | 321 { int srcSize = blockSize; in FUZ_test() local 322 int const targetSize = srcSize * ((FUZ_rand(&randState) & 127)+1) >> 7; in FUZ_test() 325 ret = LZ4_compress_destSize(block, compressedBuffer, &srcSize, targetSize); in FUZ_test() 328 … FUZ_CHECKTEST(srcSize > blockSize, "LZ4_compress_destSize() fed more than src buffer !"); in FUZ_test() 329 … DISPLAYLEVEL(5, "destSize : %7i/%7i; content%7i/%7i ", ret, targetSize, srcSize, blockSize); in FUZ_test() 332 U32 const crcBase = XXH32(block, srcSize, 0); in FUZ_test() 337 decodedBuffer[srcSize] = canary; in FUZ_test() 338 ret = LZ4_decompress_safe(compressedBuffer, decodedBuffer, compressedSize, srcSize); in FUZ_test() 340 … FUZ_CHECKTEST(ret!=srcSize, "LZ4_decompress_safe() failed : did not fully decompressed data"); in FUZ_test() 341 … FUZ_CHECKTEST(decodedBuffer[srcSize] != canary, "LZ4_decompress_safe() overwrite dst buffer !"); in FUZ_test() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | cbiditst.c | 740 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); in testReorder() local 741 int32_t destSize = srcSize*2; in testReorder() 746 pseudoToU16(srcSize,logicalOrder[i],src); in testReorder() 748 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec); in testReorder() 757 }else if(destSize!=srcSize){ in testReorder() 758 … log_err("Pre-flighting did not give expected size: Expected: %d. Got: %d \n",srcSize,destSize); in testReorder() 764 if(destSize!=srcSize){ in testReorder() 775 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); in testReorder() local 776 int32_t destSize = srcSize*2; in testReorder() 781 pseudoToU16(srcSize,logicalOrder[i],src); in testReorder() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fBufferCopyTests.cpp | 54 int srcSize, in BasicBufferCopyCase() argument 65 , m_srcSize (srcSize) in BasicBufferCopyCase() 285 int srcSize; in init() member 310 srcTarget, cases[ndx].srcSize, hint, in init()
|
D | es3fFramebufferBlitTests.cpp | 58 …ntext, const char* name, const char* desc, deUint32 filter, const IVec2& srcSize, const IVec4& src… in BlitRectCase() argument 61 , m_srcSize (srcSize) in BlitRectCase() 167 …Case (Context& context, const char* name, const char* desc, const IVec2& srcSize, const IVec4& src… 172 …Case (Context& context, const char* name, const char* desc, const IVec2& srcSize, const IVec4& src… in BlitNearestFilterConsistencyCase() argument 173 : BlitRectCase(context, name, desc, GL_NEAREST, srcSize, srcRect, dstSize, dstRect, 1) in BlitNearestFilterConsistencyCase() 459 …me, const char* desc, deUint32 format, deUint32 srcBuffers, const IVec2& srcSize, const IVec4& src… in BlitDepthStencilCase() argument 463 , m_srcSize (srcSize) in BlitDepthStencilCase() 974 const IVec2 srcSize(127, 119); in init() local 990 …new BlitRectCase(m_context, (name + "_nearest").c_str(), "", GL_NEAREST, srcSize, srcRect, dstSize… in init() 991 …(new BlitRectCase(m_context, (name + "_linear").c_str(), "", GL_LINEAR, srcSize, srcRect, dstSize… in init() [all …]
|
/external/skia/bench/ |
D | DrawLatticeBench.cpp | 16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench() argument 18 : fSrcSize(srcSize) in DrawLatticeBench()
|
/external/skqp/bench/ |
D | DrawLatticeBench.cpp | 16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench() argument 18 : fSrcSize(srcSize) in DrawLatticeBench()
|
/external/icu/icu4c/source/common/ |
D | ubiditransform.cpp | 84 … uint32_t srcSize; /* input text capacity excluding the trailing zero */ member 230 if (newSize > pTransform->srcSize) { in updateSrc() 242 pTransform->srcSize = newSize; in updateSrc() 246 pTransform->srcSize, newLength, pErrorCode); in updateSrc()
|
/external/lzma/C/ |
D | Lzma2Enc.c | 347 const Byte *src, size_t srcSize, int finished) in MtCallbackImp_Code() argument 358 if (srcSize != 0) in MtCallbackImp_Code() 362 RINOK(LzmaEnc_MemPrepare(p->enc, src, srcSize, LZMA2_KEEP_WINDOW_SIZE, in MtCallbackImp_Code() 365 while (p->srcPos < srcSize) in MtCallbackImp_Code()
|
/external/skqp/src/codec/ |
D | SkWebpCodec.cpp | 493 SkISize srcSize = options.fSubset ? options.fSubset->size() : srcInfo.dimensions(); in onGetPixels() local 494 if (srcSize != dstInfo.dimensions()) { in onGetPixels() 498 float scaleX = ((float) dstInfo.width()) / srcSize.width(); in onGetPixels() 499 float scaleY = ((float) dstInfo.height()) / srcSize.height(); in onGetPixels()
|
/external/skia/src/codec/ |
D | SkWebpCodec.cpp | 493 SkISize srcSize = options.fSubset ? options.fSubset->size() : srcInfo.dimensions(); in onGetPixels() local 494 if (srcSize != dstInfo.dimensions()) { in onGetPixels() 498 float scaleX = ((float) dstInfo.width()) / srcSize.width(); in onGetPixels() 499 float scaleY = ((float) dstInfo.height()) / srcSize.height(); in onGetPixels()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | MemCpyOptimizer.cpp | 593 uint64_t srcSize = TD->getTypeAllocSize(srcAlloca->getAllocatedType()) * in performCallSlotOptzn() local 596 if (cpyLen < srcSize) in performCallSlotOptzn() 611 if (destSize < srcSize) in performCallSlotOptzn() 622 if (destSize < srcSize) in performCallSlotOptzn() 665 if (AA.getModRefInfo(C, cpyDest, srcSize) != AliasAnalysis::NoModRef) in performCallSlotOptzn()
|