Home
last modified time | relevance | path

Searched refs:srcSize (Results 1 – 25 of 56) sorted by relevance

123

/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()
147 size_t srcSize; member
157 int (*compressionFunction)(const char* src, char* dst, int srcSize, int dstSize, int cLevel);
163 static int BMK_benchMem(const void* srcBuffer, size_t srcSize, in BMK_benchMem() argument
167 …size_t const blockSize = (g_blockSize>=32 ? g_blockSize : srcSize) + (!srcSize) /* avoid div by 0 … in BMK_benchMem()
168 U32 const maxNbBlocks = (U32) ((srcSize + (blockSize-1)) / blockSize) + nbFiles; in BMK_benchMem()
170 …size_t const maxCompressedSize = LZ4_compressBound((int)srcSize) + (maxNbBlocks * 1024); /* add … in BMK_benchMem()
172 void* const resultBuffer = malloc(srcSize); in BMK_benchMem()
211 blockTable[nbBlocks].srcSize = thisBlockSize; in BMK_benchMem()
[all …]
/external/lz4/tests/
DroundTripTest.c90 typedef int (*compressFn)(const char* src, char* dst, int srcSize, int dstSize, int cLevel);
103 const void* srcBuff, size_t srcSize, in roundTripTest() argument
106 int const proposed_clevel = clevel ? clevel : select_clevel(srcBuff, srcSize); in roundTripTest()
109 …int const cSize = compress((const char*)srcBuff, (char*)compressedBuff, (int)srcSize, (int)compres… in roundTripTest()
114 … CONTROL_MSG(dSize != (int)srcSize, "Decompression corruption error : wrong decompressed size !"); in roundTripTest()
118 assert(resultBuffCapacity >= srcSize); in roundTripTest()
119 { size_t const errorPos = checkBuffers(srcBuff, resultBuff, srcSize); in roundTripTest()
120 CONTROL_MSG(errorPos != srcSize, in roundTripTest()
127 static void roundTripCheck(const void* srcBuff, size_t srcSize, int clevel) in roundTripCheck() argument
129 size_t const cBuffSize = LZ4_compressBound((int)srcSize); in roundTripCheck()
[all …]
Dfuzzer.c386 { int srcSize = blockSize; in FUZ_test() local
387 int const targetSize = srcSize * ((FUZ_rand(&randState) & 127)+1) >> 7; in FUZ_test()
390 ret = LZ4_compress_destSize(block, compressedBuffer, &srcSize, targetSize); in FUZ_test()
393 … FUZ_CHECKTEST(srcSize > blockSize, "LZ4_compress_destSize() fed more than src buffer !"); in FUZ_test()
394 … DISPLAYLEVEL(5, "destSize : %7i/%7i; content%7i/%7i ", ret, targetSize, srcSize, blockSize); in FUZ_test()
397 U32 const crcBase = XXH32(block, srcSize, 0); in FUZ_test()
402 decodedBuffer[srcSize] = canary; in FUZ_test()
403 ret = LZ4_decompress_safe(compressedBuffer, decodedBuffer, compressedSize, srcSize); in FUZ_test()
405 … FUZ_CHECKTEST(ret!=srcSize, "LZ4_decompress_safe() failed : did not fully decompressed data"); in FUZ_test()
406 … FUZ_CHECKTEST(decodedBuffer[srcSize] != canary, "LZ4_decompress_safe() overwrite dst buffer !"); in FUZ_test()
[all …]
Dframetest.c795 size_t const srcSize = (FUZ_rand(&randState) & ((1<<srcBits)-1)) + 1; in fuzzerTests() local
796 size_t const srcStartId = FUZ_rand(&randState) % (srcDataLength - srcSize); in fuzzerTests()
799 U64 const crcOrig = XXH64(srcStart, srcSize, 1); in fuzzerTests()
810 prefs.frameInfo.contentSize = ((FUZ_rand(&randState) & 0xF) == 1) ? srcSize : 0; in fuzzerTests()
821 FUZ_writeLE32(op+4, (U32)srcSize); in fuzzerTests()
822 cSize = srcSize+8; in fuzzerTests()
824 …F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(srcSize, prefsPtr), srcStart, srcSize, p… in fuzzerTests()
828 const BYTE* const iend = srcStart + srcSize; in fuzzerTests()
830 …BYTE* const oend = op + (neverFlush ? LZ4F_compressFrameBound(srcSize, prefsPtr) : compressedBuffe… in fuzzerTests()
831 unsigned const maxBits = FUZ_highbit((U32)srcSize); in fuzzerTests()
[all …]
/external/skqp/src/effects/
DSkPackBits.cpp13 size_t SkPackBits::ComputeMaxSize8(size_t srcSize) { in ComputeMaxSize8() argument
15 return ((srcSize + 127) >> 7) + srcSize; in ComputeMaxSize8()
41 size_t SkPackBits::Pack8(const uint8_t* SK_RESTRICT src, size_t srcSize, in Pack8() argument
43 if (dstSize < ComputeMaxSize8(srcSize)) { in Pack8()
48 const uint8_t* stop = src + srcSize; in Pack8()
85 int SkPackBits::Unpack8(const uint8_t* SK_RESTRICT src, size_t srcSize, in Unpack8() argument
89 const uint8_t* stop = src + srcSize; in Unpack8()
DSkPackBits.h19 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[],
/external/skia/src/effects/
DSkPackBits.cpp13 size_t SkPackBits::ComputeMaxSize8(size_t srcSize) { in ComputeMaxSize8() argument
15 return ((srcSize + 127) >> 7) + srcSize; in ComputeMaxSize8()
41 size_t SkPackBits::Pack8(const uint8_t* SK_RESTRICT src, size_t srcSize, in Pack8() argument
43 if (dstSize < ComputeMaxSize8(srcSize)) { in Pack8()
48 const uint8_t* stop = src + srcSize; in Pack8()
85 int SkPackBits::Unpack8(const uint8_t* SK_RESTRICT src, size_t srcSize, in Unpack8() argument
89 const uint8_t* stop = src + srcSize; in Unpack8()
DSkPackBits.h19 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[],
/external/lz4/lib/
Dlz4frame.c288 const size_t srcSize) in LZ4F_optimalBSID() argument
293 if (srcSize <= maxBlockSize) in LZ4F_optimalBSID()
307 static size_t LZ4F_compressBound_internal(size_t srcSize, in LZ4F_compressBound_internal() argument
315 U32 const flush = prefsPtr->autoFlush | (srcSize==0); in LZ4F_compressBound_internal()
320 size_t const maxSrcSize = srcSize + bufferedSize; in LZ4F_compressBound_internal()
335 size_t LZ4F_compressFrameBound(size_t srcSize, const LZ4F_preferences_t* preferencesPtr) in LZ4F_compressFrameBound() argument
344 return headerSize + LZ4F_compressBound_internal(srcSize, &prefs, 0);; in LZ4F_compressFrameBound()
359 const void* srcBuffer, size_t srcSize, in LZ4F_compressFrame_usingCDict() argument
374 … prefs.frameInfo.contentSize = (U64)srcSize; /* auto-correct content size if selected (!=0) */ in LZ4F_compressFrame_usingCDict()
376 prefs.frameInfo.blockSizeID = LZ4F_optimalBSID(prefs.frameInfo.blockSizeID, srcSize); in LZ4F_compressFrame_usingCDict()
[all …]
Dlz4hc.c822 int LZ4_compress_HC_extStateHC_fastReset (void* state, const char* src, char* dst, int srcSize, int… in LZ4_compress_HC_extStateHC_fastReset() argument
828 if (dstCapacity < LZ4_compressBound(srcSize)) in LZ4_compress_HC_extStateHC_fastReset()
829 …return LZ4HC_compress_generic (ctx, src, dst, &srcSize, dstCapacity, compressionLevel, limitedOutp… in LZ4_compress_HC_extStateHC_fastReset()
831 … return LZ4HC_compress_generic (ctx, src, dst, &srcSize, dstCapacity, compressionLevel, noLimit); in LZ4_compress_HC_extStateHC_fastReset()
834 int LZ4_compress_HC_extStateHC (void* state, const char* src, char* dst, int srcSize, int dstCapaci… in LZ4_compress_HC_extStateHC() argument
838 …return LZ4_compress_HC_extStateHC_fastReset(state, src, dst, srcSize, dstCapacity, compressionLeve… in LZ4_compress_HC_extStateHC()
841 int LZ4_compress_HC(const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel) in LZ4_compress_HC() argument
849 …int const cSize = LZ4_compress_HC_extStateHC(statePtr, src, dst, srcSize, dstCapacity, compression… in LZ4_compress_HC()
990 …ontinue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* src, char* dst, int srcSize, int dstCapacity) in LZ4_compress_HC_continue() argument
992 if (dstCapacity < LZ4_compressBound(srcSize)) in LZ4_compress_HC_continue()
[all …]
Dlz4.h139 LZ4LIB_API int LZ4_compress_default(const char* src, char* dst, int srcSize, int dstCapacity);
178 LZ4LIB_API int LZ4_compress_fast (const char* src, char* dst, int srcSize, int dstCapacity, int acc…
189 LZ4LIB_API int LZ4_compress_fast_extState (void* state, const char* src, char* dst, int srcSize, in…
252 LZ4LIB_API int LZ4_decompress_safe_partial (const char* src, char* dst, int srcSize, int targetOutp…
304 …_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity,…
377 …e (LZ4_streamDecode_t* LZ4_streamDecode, const char* src, char* dst, int srcSize, int dstCapacity);
387 LZ4LIB_API int LZ4_decompress_safe_usingDict (const char* src, char* dst, int srcSize, int dstCapci…
450 …ss_fast_extState_fastReset (void* state, const char* src, char* dst, int srcSize, int dstCapacity,…
Dlz4.c1041 int LZ4_compress_fast_extState_fastReset(void* state, const char* src, char* dst, int srcSize, int … in LZ4_compress_fast_extState_fastReset() argument
1046 if (dstCapacity >= LZ4_compressBound(srcSize)) { in LZ4_compress_fast_extState_fastReset()
1047 if (srcSize < LZ4_64Klimit) { in LZ4_compress_fast_extState_fastReset()
1049 LZ4_prepareTable(ctx, srcSize, tableType); in LZ4_compress_fast_extState_fastReset()
1051 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, 0, notLimited, tableType, noDict, dictSm… in LZ4_compress_fast_extState_fastReset()
1053 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, 0, notLimited, tableType, noDict, noDict… in LZ4_compress_fast_extState_fastReset()
1057 LZ4_prepareTable(ctx, srcSize, tableType); in LZ4_compress_fast_extState_fastReset()
1058 …return LZ4_compress_generic(ctx, src, dst, srcSize, NULL, 0, notLimited, tableType, noDict, noDict… in LZ4_compress_fast_extState_fastReset()
1061 if (srcSize < LZ4_64Klimit) { in LZ4_compress_fast_extState_fastReset()
1063 LZ4_prepareTable(ctx, srcSize, tableType); in LZ4_compress_fast_extState_fastReset()
[all …]
Dlz4frame.h206 LZ4FLIB_API size_t LZ4F_compressFrameBound(size_t srcSize, const LZ4F_preferences_t* preferencesPtr…
216 const void* srcBuffer, size_t srcSize,
273 LZ4FLIB_API size_t LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t* prefsPtr);
288 const void* srcBuffer, size_t srcSize,
507 const void* src, size_t srcSize,
Dlz4hc.h66 LZ4LIB_API int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compr…
80 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);
321 int LZ4_compress_HC_extStateHC_fastReset (void* state, const char* src, char* dst, int srcSize, int…
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrConversionTests.cpp102 const UVec2& srcSize, in genTexCoords() argument
111 const float fw = (float)srcSize.x(); in genTexCoords()
112 const float fh = (float)srcSize.y(); in genTexCoords()
170 , srcSize (srcSize_) in TestConfig()
191 const UVec2 srcSize; member
596 const UVec2 srcSize = config.srcSize; in textureConversionTest() local
626 MultiPlaneImageData src (config.format, srcSize); in textureConversionTest()
629 …cess (tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT, 1u, IVec3(srcSize.x(), srcSize.y(), 1), IV… in textureConversionTest()
631 …Alpha (tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT, 1u, IVec3(srcSize.x(), srcSize.y(), 1), IV… in textureConversionTest()
632 …lAccess (planeInfo.hasChannelNdx(0) ? getChannelAccess(src, planeInfo, srcSize, 0) : nullAccess); in textureConversionTest()
[all …]
/external/lzma/C/
DLzma2DecMt.c241 PRF_STR_INT_2("Parse", coderIndex, cc->srcSize); in Lzma2DecMt_MtCallback_Parse()
300 const SizeT srcOrig = cc->srcSize; in Lzma2DecMt_MtCallback_Parse()
304 cc->srcSize = 0; in Lzma2DecMt_MtCallback_Parse()
309 SizeT srcCur = srcOrig - cc->srcSize; in Lzma2DecMt_MtCallback_Parse()
313 cc->src + cc->srcSize, &srcCur, in Lzma2DecMt_MtCallback_Parse()
316 cc->srcSize += srcCur; in Lzma2DecMt_MtCallback_Parse()
336 srcSize_Point = cc->srcSize; in Lzma2DecMt_MtCallback_Parse()
362 cc->srcSize = srcSize_Point; in Lzma2DecMt_MtCallback_Parse()
367 t->inPreSize += cc->srcSize; in Lzma2DecMt_MtCallback_Parse()
381 cc->srcSize--; // we don't need control byte of next block in Lzma2DecMt_MtCallback_Parse()
[all …]
DMtDec.c416 parse.srcSize = size; in ThreadFunc2()
456 memcpy(data, parseData, parse.srcSize); in ThreadFunc2()
457 p->crossStart += parse.srcSize; in ThreadFunc2()
470 if (parse.srcSize == size) in ThreadFunc2()
484 … memcpy(data + parse.srcSize, parseData + parse.srcSize, size - parse.srcSize); // we need all data in ThreadFunc2()
485 afterEndData_Size = size - parse.srcSize; in ThreadFunc2()
486 afterEndData = parseData + parse.srcSize; in ThreadFunc2()
489 inDataSize -= (size - parse.srcSize); in ThreadFunc2()
491 inDataSize_Start = parse.srcSize; in ThreadFunc2()
498 inDataSize = parse.srcSize; // it's only parsed now in ThreadFunc2()
[all …]
DMtDec.h72 size_t srcSize; member
92 const Byte *src, size_t srcSize, int srcFinished,
111 const Byte *src, size_t srcSize,
DXzDec.c1636 size_t srcSize = cc->srcSize; in XzDecMt_Callback_Parse() local
1638 cc->srcSize = 0; in XzDecMt_Callback_Parse()
1690 size_t srcSize2 = srcSize; in XzDecMt_Callback_Parse()
1707 cc->srcSize += srcSize2; in XzDecMt_Callback_Parse()
1708 srcSize -= srcSize2; in XzDecMt_Callback_Parse()
1773 size_t cur = srcSize; in XzDecMt_Callback_Parse()
1776 cc->srcSize += cur; in XzDecMt_Callback_Parse()
1778 srcSize -= cur; in XzDecMt_Callback_Parse()
1782 if (srcSize == 0) in XzDecMt_Callback_Parse()
1788 else if ((cc->src)[cc->srcSize] == 0) // we check control byte of next block in XzDecMt_Callback_Parse()
[all …]
/external/deqp/framework/opengl/
DgluTextureTestUtil.cpp198 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/icu/icu4c/source/test/cintltst/
Dcbiditst.c743 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); in testReorder() local
744 int32_t destSize = srcSize*2; in testReorder()
749 pseudoToU16(srcSize,logicalOrder[i],src); in testReorder()
751 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec); in testReorder()
760 }else if(destSize!=srcSize){ in testReorder()
761 … log_err("Pre-flighting did not give expected size: Expected: %d. Got: %d \n",srcSize,destSize); in testReorder()
767 if(destSize!=srcSize){ in testReorder()
778 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); in testReorder() local
779 int32_t destSize = srcSize*2; in testReorder()
784 pseudoToU16(srcSize,logicalOrder[i],src); in testReorder()
[all …]
/external/deqp/modules/gles3/functional/
Des3fBufferCopyTests.cpp54 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()
/external/skqp/bench/
DDrawLatticeBench.cpp16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench() argument
18 : fSrcSize(srcSize) in DrawLatticeBench()
/external/skia/bench/
DDrawLatticeBench.cpp16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, in DrawLatticeBench() argument
18 : fSrcSize(srcSize) in DrawLatticeBench()
/external/skqp/src/core/
DSkBlurMask.cpp463 size_t srcSize = (size_t)(src.width() * src.height()); in BlurRect() local
464 if (0 == srcSize) { in BlurRect()
467 dst->fImage = SkMask::AllocImage(srcSize); in BlurRect()
643 size_t srcSize = src.computeImageSize(); in BlurGroundTruth() local
644 if (0 == srcSize) { in BlurGroundTruth()
647 dst->fImage = SkMask::AllocImage(srcSize); in BlurGroundTruth()

123