/external/skia/src/effects/ |
H A D | SkPackBits.h | 19 static size_t ComputeMaxSize8(size_t srcSize); 24 @param srcSize Number of entries in src[] 30 static size_t Pack8(const uint8_t src[], size_t srcSize, uint8_t dst[], 36 @param srcSize Number of bytes of src to unpack 41 static int Unpack8(const uint8_t src[], size_t srcSize, uint8_t dst[],
|
H A D | SkPackBits.cpp | 9 size_t SkPackBits::ComputeMaxSize8(size_t srcSize) { argument 11 return ((srcSize + 127) >> 7) + srcSize; 37 size_t SkPackBits::Pack8(const uint8_t* SK_RESTRICT src, size_t srcSize, argument 39 if (dstSize < ComputeMaxSize8(srcSize)) { 44 const uint8_t* stop = src + srcSize; 81 int SkPackBits::Unpack8(const uint8_t* SK_RESTRICT src, size_t srcSize, argument 85 const uint8_t* stop = src + srcSize;
|
H A D | SkBlurMask.cpp | 588 size_t srcSize = src.computeImageSize(); local 589 if (0 == srcSize) { 592 dst->fImage = SkMask::AllocImage(srcSize); 803 size_t srcSize = (size_t)(src.width() * src.height()); local 804 if (0 == srcSize) { 807 dst->fImage = SkMask::AllocImage(srcSize); 970 size_t srcSize = src.computeImageSize(); local 971 if (0 == srcSize) { 974 dst->fImage = SkMask::AllocImage(srcSize);
|
/external/skia/bench/ |
H A D | SkLinearBitmapPipelineBench.cpp | 22 SkISize srcSize, 33 fSrcSize = srcSize; 119 SkISize srcSize, 125 : CommonBitmapFPBenchmark(srcSize, isSRGB, m, useBilerp, xTile, yTile) { } 168 SkISize srcSize, 174 : CommonBitmapFPBenchmark(srcSize, isSRGB, m, useBilerp, xTile, yTile) { } 222 static SkISize srcSize = SkISize::Make(120, 100); variable 225 srcSize, gSRGB, mI, false, 229 srcSize, gLinearRGB, mI, false, 233 srcSize, gLinearRG 21 CommonBitmapFPBenchmark( SkISize srcSize, bool isSRGB, SkMatrix m, bool useBilerp, SkShader::TileMode xTile, SkShader::TileMode yTile) argument 118 SkBitmapFPGeneral( SkISize srcSize, bool isSRGB, SkMatrix m, bool useBilerp, SkShader::TileMode xTile, SkShader::TileMode yTile) argument 167 SkBitmapFPOrigShader( SkISize srcSize, bool isSRGB, SkMatrix m, bool useBilerp, SkShader::TileMode xTile, SkShader::TileMode yTile) argument [all...] |
H A D | DrawLatticeBench.cpp | 15 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, argument 17 : fSrcSize(srcSize)
|
/external/lz4/programs/ |
H A D | bench.c | 51 static int LZ4_compress_local(const char* src, char* dst, int srcSize, int dstSize, int clevel) { (void)clevel; return LZ4_compress_default(src, dst, srcSize, dstSize); } argument 142 size_t srcSize; member in struct:__anon13976 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, argument 162 size_t const blockSize = (g_blockSize>=32 ? g_blockSize : srcSize) + (!srcSize) /* avoid div by 0 */ ; 163 U32 const maxNbBlocks = (U32) ((srcSize + (blockSize-1)) / blockSize) + nbFiles; 165 size_t const maxCompressedSize = LZ4_compressBound((int)srcSize) + (maxNbBlocks * 1024); /* add some room for safety */ 167 void* const resultBuffer = malloc(srcSize); [all...] |
/external/lz4/examples/ |
H A D | frameCompress.c | 149 size_t srcSize = fread(src, 1, BUF_SIZE, in); local 151 void* srcEnd = srcPtr + srcSize; 152 if (srcSize == 0 || ferror(in)) { 159 ret = LZ4F_getFrameInfo(dctx, &info, src, &srcSize); 170 srcPtr += srcSize; 171 srcSize = srcEnd - srcPtr; 181 ret = LZ4F_decompress(dctx, dst, &dstSize, srcPtr, &srcSize, /* LZ4F_decompressOptions_t */ NULL); 196 srcPtr += srcSize; 197 srcSize = srcEnd - srcPtr;
|
/external/lz4/lib/ |
H A D | lz4hc.c | 523 int LZ4_compress_HC_extStateHC (void* state, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel) argument 528 if (maxDstSize < LZ4_compressBound(srcSize)) 529 return LZ4HC_compress_generic (ctx, src, dst, srcSize, maxDstSize, compressionLevel, limitedOutput); 531 return LZ4HC_compress_generic (ctx, src, dst, srcSize, maxDstSize, compressionLevel, noLimit); 534 int LZ4_compress_HC(const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel) argument 542 int const cSize = LZ4_compress_HC_extStateHC(statePtr, src, dst, srcSize, maxDstSize, compressionLevel); 670 int LZ4_compressHC(const char* src, char* dst, int srcSize) { return LZ4_compress_HC (src, dst, srcSize, LZ4_compressBound(srcSize), 0); } argument 671 int LZ4_compressHC_limitedOutput(const char* src, char* dst, int srcSize, in argument 672 LZ4_compressHC2(const char* src, char* dst, int srcSize, int cLevel) argument 673 LZ4_compressHC2_limitedOutput(const char* src, char* dst, int srcSize, int maxDstSize, int cLevel) argument 674 LZ4_compressHC_withStateHC(void* state, const char* src, char* dst, int srcSize) argument 675 LZ4_compressHC_limitedOutput_withStateHC(void* state, const char* src, char* dst, int srcSize, int maxDstSize) argument 676 LZ4_compressHC2_withStateHC(void* state, const char* src, char* dst, int srcSize, int cLevel) argument 677 LZ4_compressHC2_limitedOutput_withStateHC(void* state, const char* src, char* dst, int srcSize, int maxDstSize, int cLevel) argument 678 LZ4_compressHC_continue(LZ4_streamHC_t* ctx, const char* src, char* dst, int srcSize) argument 679 LZ4_compressHC_limitedOutput_continue(LZ4_streamHC_t* ctx, const char* src, char* dst, int srcSize, int maxDstSize) argument [all...] |
H A D | lz4hc.h | 59 * Compression is guaranteed to succeed if `dstCapacity >= LZ4_compressBound(srcSize)` (see "lz4.h") 60 * Max supported `srcSize` value is LZ4_MAX_INPUT_SIZE (see "lz4.h") 66 LZ4LIB_API int LZ4_compress_HC (const char* src, char* dst, int srcSize, int dstCapacity, int compressionLevel); 79 LZ4LIB_API int LZ4_compress_HC_extStateHC(void* state, const char* src, char* dst, int srcSize, int maxDstSize, int compressionLevel); 101 LZ4LIB_API int LZ4_compress_HC_continue (LZ4_streamHC_t* streamHCPtr, const char* src, char* dst, int srcSize, int maxDstSize);
|
H A D | lz4frame.c | 244 static LZ4F_blockSizeID_t LZ4F_optimalBSID(const LZ4F_blockSizeID_t requestedBSID, const size_t srcSize) argument 249 if (srcSize <= maxBlockSize) 258 * Provides dstCapacity given a srcSize to guarantee operation success in worst case situations. 260 * Result is always the same for a srcSize and prefsPtr, so it can be trusted to size reusable buffers. 261 * When srcSize==0, LZ4F_compressBound() provides an upper bound for LZ4F_flush() and LZ4F_compressEnd() operations. 263 static size_t LZ4F_compressBound_internal(size_t srcSize, const LZ4F_preferences_t* preferencesPtr, size_t alreadyBuffered) argument 269 U32 const flush = prefsPtr->autoFlush | (srcSize==0); 274 size_t const maxSrcSize = srcSize + bufferedSize; 276 size_t const partialBlockSize = (srcSize - (srcSize 287 LZ4F_compressFrameBound(size_t srcSize, const LZ4F_preferences_t* preferencesPtr) argument 309 LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_preferences_t* preferencesPtr) argument 493 LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t* preferencesPtr) argument 501 LZ4F_compressBlock(void* dst, const void* src, size_t srcSize, compressFunc_t compress, void* lz4ctx, int level) argument 516 LZ4F_localLZ4_compress_limitedOutput_withState(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level) argument 522 LZ4F_localLZ4_compress_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level) argument 528 LZ4F_localLZ4_compressHC_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level) argument 562 LZ4F_compressUpdate(LZ4F_cctx* cctxPtr, void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_compressOptions_t* compressOptionsPtr) argument 798 LZ4F_headerSize(const void* src, size_t srcSize) argument 825 LZ4F_decodeHeader(LZ4F_dctx* dctxPtr, const void* src, size_t srcSize) argument [all...] |
H A D | lz4frame.h | 162 * Returns the maximum possible size of a frame compressed with LZ4F_compressFrame() given srcSize content and preferences. 165 LZ4FLIB_API size_t LZ4F_compressFrameBound(size_t srcSize, const LZ4F_preferences_t* preferencesPtr); 176 LZ4FLIB_API size_t LZ4F_compressFrame(void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_preferences_t* preferencesPtr); 219 LZ4FLIB_API size_t LZ4F_compressBound(size_t srcSize, const LZ4F_preferences_t* prefsPtr); 221 * Provides dstCapacity given a srcSize to guarantee operation success in worst case situations. 223 * Result is always the same for a srcSize and prefsPtr, so it can be trusted to size reusable buffers. 224 * When srcSize==0, LZ4F_compressBound() provides an upper bound for LZ4F_flush() and LZ4F_compressEnd() operations. 227 LZ4FLIB_API size_t LZ4F_compressUpdate(LZ4F_cctx* cctx, void* dstBuffer, size_t dstCapacity, const void* srcBuffer, size_t srcSize, const LZ4F_compressOptions_t* cOptPtr); 298 * @return : an hint about how many srcSize bytes LZ4F_decompress() expects for next call, 320 * @return is an hint of how many `srcSize` byte [all...] |
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
H A D | TJTransformer.java | 155 private native int[] transform(byte[] srcBuf, int srcSize, byte[][] dstBufs, argument
|
/external/deqp/framework/opengl/ |
H A D | gluTextureTestUtil.cpp | 198 static float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, deInt32 srcSize, const tcu::Vec3& sq) argument 200 float dux = (sq.z() - sq.x()) * (float)srcSize; 201 float duy = (sq.y() - sq.x()) * (float)srcSize; 236 static float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, const tcu::IVec2& srcSize, const tcu::Vec3& sq, const tcu::Vec3& tq) argument 238 float dux = (sq.z() - sq.x()) * (float)srcSize.x(); 239 float duy = (sq.y() - sq.x()) * (float)srcSize.x(); 240 float dvx = (tq.z() - tq.x()) * (float)srcSize.y(); 241 float dvy = (tq.y() - tq.x()) * (float)srcSize.y(); 277 static float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, const tcu::IVec3& srcSize, const tcu::Vec3& sq, const tcu::Vec3& tq, const tcu::Vec3& rq) argument 279 float dux = (sq.z() - sq.x()) * (float)srcSize 401 int srcSize = src.getWidth(); local 436 tcu::IVec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()); local 619 const int srcSize = src.getSize(); local 678 tcu::IVec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()); local 727 deInt32 srcSize = src.getWidth(); local 773 tcu::IVec3 srcSize = tcu::IVec3(src.getWidth(), src.getHeight(), src.getDepth()); local 1246 const int srcSize = src.getWidth(); local 1350 const tcu::IVec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()); local 1534 const int srcSize = src.getSize(); local 1714 const tcu::IVec3 srcSize = tcu::IVec3(src.getWidth(), src.getHeight(), src.getDepth()); local 1884 const float srcSize = float(src.getWidth()); // For lod computation, thus #layers is ignored. local 1992 const tcu::Vec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()).asFloat(); // For lod computation, thus #layers is ignored. local 2180 const int srcSize = src.getSize(); local 2360 const tcu::IVec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()); local 2473 const int srcSize = src.getSize(); local 2595 const tcu::IVec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()); local [all...] |
/external/lz4/tests/ |
H A D | frametest.c | 189 /* LZ4F_compressBound() : special case : srcSize == 0 */ 597 size_t const srcSize = (FUZ_rand(&randState) & ((1<<srcBits)-1)) + 1; local 598 size_t const srcStartId = FUZ_rand(&randState) % (srcDataLength - srcSize); 601 U64 const crcOrig = XXH64(srcStart, srcSize, 1); 611 prefs.frameInfo.contentSize = ((FUZ_rand(&randState) & 0xF) == 1) ? srcSize : 0; 622 FUZ_writeLE32(op+4, (U32)srcSize); 623 cSize = srcSize+8; 625 cSize = LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(srcSize, prefsPtr), srcStart, srcSize, prefsPtr); 629 const BYTE* const iend = srcStart + srcSize; [all...] |
H A D | fuzzer.c | 321 { int srcSize = blockSize; local 322 int const targetSize = srcSize * ((FUZ_rand(&randState) & 127)+1) >> 7; 325 ret = LZ4_compress_destSize(block, compressedBuffer, &srcSize, targetSize); 328 FUZ_CHECKTEST(srcSize > blockSize, "LZ4_compress_destSize() fed more than src buffer !"); 329 DISPLAYLEVEL(5, "destSize : %7i/%7i; content%7i/%7i ", ret, targetSize, srcSize, blockSize); 332 U32 const crcBase = XXH32(block, srcSize, 0); 337 decodedBuffer[srcSize] = canary; 338 ret = LZ4_decompress_safe(compressedBuffer, decodedBuffer, compressedSize, srcSize); 340 FUZ_CHECKTEST(ret!=srcSize, "LZ4_decompress_safe() failed : did not fully decompressed data"); 341 FUZ_CHECKTEST(decodedBuffer[srcSize] ! [all...] |
/external/deqp/modules/gles3/functional/ |
H A D | es3fBufferCopyTests.cpp | 54 int srcSize, 65 , m_srcSize (srcSize) 285 int srcSize; member in struct:deqp::gles3::Functional::__anon4406 292 // srcSize dstSize srcOffs dstOffs copySize 310 srcTarget, cases[ndx].srcSize, hint, 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) argument
|
H A D | es3fFramebufferBlitTests.cpp | 58 BlitRectCase (Context& context, const char* name, const char* desc, deUint32 filter, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect, int cellSize = 8) argument 61 , m_srcSize (srcSize) 167 BlitNearestFilterConsistencyCase (Context& context, const char* name, const char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect); 172 BlitNearestFilterConsistencyCase::BlitNearestFilterConsistencyCase (Context& context, const char* name, const char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dstRect) argument 173 : BlitRectCase(context, name, desc, GL_NEAREST, srcSize, srcRect, dstSize, dstRect, 1) 459 BlitDepthStencilCase (Context& context, const char* name, const char* desc, deUint32 format, deUint32 srcBuffers, const IVec2& srcSize, const IVec4& srcRect, deUint32 dstBuffers, const IVec2& dstSize, const IVec4& dstRect, deUint32 copyBuffers) argument 463 , m_srcSize (srcSize) 974 const IVec2 srcSize(127, 119); 990 rectGroup->addChild(new BlitRectCase(m_context, (name + "_nearest").c_str(), "", GL_NEAREST, srcSize, srcRect, dstSize, dstRect)); 991 rectGroup->addChild(new BlitRectCase(m_context, (name + "_linear").c_str(), "", GL_LINEAR, srcSize, srcRec [all...] |
/external/lzma/C/ |
H A D | MtCoder.h | 70 const Byte *src, size_t srcSize, int finished);
|
H A D | Lzma2Enc.c | 327 const Byte *src, size_t srcSize, int finished)
338 if (srcSize != 0)
342 RINOK(LzmaEnc_MemPrepare(p->enc, src, srcSize, LZMA2_KEEP_WINDOW_SIZE,
345 while (p->srcPos < srcSize)
326 MtCallbackImp_Code(void *pp, unsigned index, Byte *dest, size_t *destSize, const Byte *src, size_t srcSize, int finished) argument
|
/external/skia/src/core/ |
H A D | SkBitmapScaler.cpp | 47 void computeFilters(int srcSize, 111 void SkResizeFilter::computeFilters(int srcSize, argument 151 float srcEnd = SkTMin(srcSize - 1.f, SkScalarCeilToScalar(srcPixel + srcSupport)); 166 // true when srcSize is equal to srcPixel - srcSupport; this may be a bug
|
/external/icu/icu4c/source/test/cintltst/ |
H A D | cbiditst.c | 738 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); local 739 int32_t destSize = srcSize*2; 744 pseudoToU16(srcSize,logicalOrder[i],src); 746 ubidi_setPara(bidi,src,srcSize,UBIDI_DEFAULT_LTR ,NULL,&ec); 755 }else if(destSize!=srcSize){ 756 log_err("Pre-flighting did not give expected size: Expected: %d. Got: %d \n",srcSize,destSize); 762 if(destSize!=srcSize){ 763 log_err("ubidi_writeReordered() destSize and srcSize do not match\n"); 773 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); local 774 int32_t destSize = srcSize* 807 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); local 838 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); local 872 int32_t srcSize = (int32_t)strlen(logicalOrder[i]); local 1000 int32_t srcSize = u_strlen(logicalOrder[i]); local 1848 int32_t srcSize, count, paraStart, paraLimit, paraIndex, length; local [all...] |
/external/icu/icu4c/source/common/ |
H A D | ubiditransform.c | 84 uint32_t srcSize; /* input text capacity excluding the trailing zero */ member in struct:UBiDiTransform 228 if (newSize > pTransform->srcSize) { 237 //pTransform->srcLength = pTransform->srcSize = 0; 240 pTransform->srcSize = newSize; 244 pTransform->srcSize, newLength, pErrorCode);
|
/external/skia/src/codec/ |
H A D | SkWebpCodec.cpp | 268 SkISize srcSize = options.fSubset ? options.fSubset->size() : this->getInfo().dimensions(); local 269 if (srcSize != dstInfo.dimensions()) { 273 float scaleX = ((float) dstInfo.width()) / srcSize.width(); 274 float scaleY = ((float) dstInfo.height()) / srcSize.height();
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | MemCpyOptimizer.cpp | 800 uint64_t srcSize = DL.getTypeAllocSize(srcAlloca->getAllocatedType()) * local 803 if (cpyLen < srcSize) 806 // Check that accessing the first srcSize bytes of dest will not cause a 810 // The destination is an alloca. Check it is larger than srcSize. 818 if (destSize < srcSize) 825 if (A->getDereferenceableBytes() < srcSize) { 840 if (destSize < srcSize) 906 ModRefInfo MR = AA.getModRefInfo(C, cpyDest, srcSize); 909 MR = AA.callCapturesBefore(C, cpyDest, srcSize, &DT);
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
H A D | MemCpyOptimizer.cpp | 593 uint64_t srcSize = TD->getTypeAllocSize(srcAlloca->getAllocatedType()) * 596 if (cpyLen < srcSize) 599 // Check that accessing the first srcSize bytes of dest will not cause a 603 // The destination is an alloca. Check it is larger than srcSize. 611 if (destSize < srcSize) 622 if (destSize < srcSize) 665 if (AA.getModRefInfo(C, cpyDest, srcSize) != AliasAnalysis::NoModRef)
|