Searched defs:srcSize (Results 1 - 25 of 36) sorted by relevance

12

/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
H A DTJTransformer.java155 private native int[] transform(byte[] srcBuf, int srcSize, byte[][] dstBufs, argument
/external/skia/bench/
H A DDrawLatticeBench.cpp16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, argument
18 : fSrcSize(srcSize)
/external/skia/src/effects/
H A DSkPackBits.cpp9 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 DSkBlurMask.cpp123 size_t srcSize = src.computeImageSize(); local
124 if (0 == srcSize) {
128 dst->fImage = SkMask::AllocImage(srcSize);
347 size_t srcSize = (size_t)(src.width() * src.height()); local
348 if (0 == srcSize) {
351 dst->fImage = SkMask::AllocImage(srcSize);
514 size_t srcSize = src.computeImageSize(); local
515 if (0 == srcSize) {
518 dst->fImage = SkMask::AllocImage(srcSize);
/external/skqp/bench/
H A DDrawLatticeBench.cpp16 DrawLatticeBench(int* xDivs, int xCount, int* yDivs, int yCount, const SkISize& srcSize, argument
18 : fSrcSize(srcSize)
/external/skqp/src/effects/
H A DSkPackBits.cpp9 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 DSkBlurMask.cpp122 size_t srcSize = src.computeImageSize(); local
123 if (0 == srcSize) {
127 dst->fImage = SkMask::AllocImage(srcSize);
345 size_t srcSize = (size_t)(src.width() * src.height()); local
346 if (0 == srcSize) {
349 dst->fImage = SkMask::AllocImage(srcSize);
512 size_t srcSize = src.computeImageSize(); local
513 if (0 == srcSize) {
516 dst->fImage = SkMask::AllocImage(srcSize);
/external/deqp/modules/gles3/functional/
H A Des3fBufferCopyTests.cpp54 int srcSize,
65 , m_srcSize (srcSize)
285 int srcSize; member in struct:deqp::gles3::Functional::__anon5057
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 Des3fFramebufferBlitTests.cpp58 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/lz4/examples/
H A DframeCompress.c149 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/icu/icu4c/source/common/
H A Dubiditransform.cpp84 uint32_t srcSize; /* input text capacity excluding the trailing zero */ member in struct:UBiDiTransform
230 if (newSize > pTransform->srcSize) {
239 //pTransform->srcLength = pTransform->srcSize = 0;
242 pTransform->srcSize = newSize;
246 pTransform->srcSize, newLength, pErrorCode);
/external/lzma/C/
H A DLzma2Enc.c347 const Byte *src, size_t srcSize, int finished)
358 if (srcSize != 0)
362 RINOK(LzmaEnc_MemPrepare(p->enc, src, srcSize, LZMA2_KEEP_WINDOW_SIZE,
365 while (p->srcPos < srcSize)
346 MtCallbackImp_Code(void *pp, unsigned index, Byte *dest, size_t *destSize, const Byte *src, size_t srcSize, int finished) argument
/external/skia/src/codec/
H A DSkWebpCodec.cpp493 SkISize srcSize = options.fSubset ? options.fSubset->size() : srcInfo.dimensions(); local
494 if (srcSize != dstInfo.dimensions()) {
498 float scaleX = ((float) dstInfo.width()) / srcSize.width();
499 float scaleY = ((float) dstInfo.height()) / srcSize.height();
/external/skqp/src/codec/
H A DSkWebpCodec.cpp493 SkISize srcSize = options.fSubset ? options.fSubset->size() : srcInfo.dimensions(); local
494 if (srcSize != dstInfo.dimensions()) {
498 float scaleX = ((float) dstInfo.width()) / srcSize.width();
499 float scaleY = ((float) dstInfo.height()) / srcSize.height();
/external/llvm/lib/Transforms/Scalar/
H A DMemCpyOptimizer.cpp800 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/lz4/lib/
H A Dlz4hc.c523 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 Dlz4.c1405 int LZ4_compress_limitedOutput_withState (void* state, const char* src, char* dst, int srcSize, int dstSize) { return LZ4_compress_fast_extState(state, src, dst, srcSize, dstSize, 1); } argument
1406 int LZ4_compress_withState (void* state, const char* src, char* dst, int srcSize) { return LZ4_compress_fast_extState(state, src, dst, srcSize, LZ4_compressBound(srcSize), 1); } argument
1407 int LZ4_compress_limitedOutput_continue (LZ4_stream_t* LZ4_stream, const char* src, char* dst, int srcSize, int maxDstSize) { return LZ4_compress_fast_continue(LZ4_stream, src, dst, srcSize, maxDstSize, 1); } argument
H A Dlz4frame.c244 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...]
/external/lz4/programs/
H A Dbench.c51 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:__anon15330
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/tests/
H A Dframetest.c189 /* 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 Dfullbench.c306 size_t srcSize = inSize; local
309 result = LZ4F_decompress(g_dCtx, out, &dstSize, in, &srcSize, NULL);
311 if (srcSize != (size_t)inSize) { DISPLAY("Error decompressing frame : read size incorrect\n"); exit(9); }
H A Dfuzzer.c321 { 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/lzma/CPP/7zip/UI/FileManager/
H A DExtractCallback.cpp685 const FILETIME *srcTime, const UInt64 *srcSize,
737 srcTime, srcSize,
683 AskWrite( const wchar_t *srcPath, Int32 srcIsFolder, const FILETIME *srcTime, const UInt64 *srcSize, const wchar_t *destPath, BSTR *destPathResult, Int32 *writeAnswer) argument
/external/deqp/framework/opengl/
H A DgluTextureTestUtil.cpp198 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
1550 const int srcSize = src.getSize(); local
1730 const tcu::IVec3 srcSize = tcu::IVec3(src.getWidth(), src.getHeight(), src.getDepth()); local
1900 const float srcSize = float(src.getWidth()); // For lod computation, thus #layers is ignored. local
2008 const tcu::Vec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()).asFloat(); // For lod computation, thus #layers is ignored. local
2196 const int srcSize = src.getSize(); local
2376 const tcu::IVec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()); local
2489 const int srcSize = src.getSize(); local
2611 const tcu::IVec2 srcSize = tcu::IVec2(src.getWidth(), src.getHeight()); local
[all...]
/external/deqp/modules/gles2/functional/
H A Des2fVertexTextureTests.cpp545 const Vec2 srcSize = Vec2((float)refTexture.getWidth(), (float)refTexture.getHeight()); local
546 const Vec2 sizeRatio = texScale*srcSize / dstSize;
863 const Vec2 srcSize = Vec2((float)refTexture.getSize(), (float)refTexture.getSize()); local
864 const Vec2 sizeRatio = texScale*srcSize / dstSize;

Completed in 3667 milliseconds

12