Home
last modified time | relevance | path

Searched refs:dstSize (Results 1 – 22 of 22) sorted by relevance

/external/skia/tests/
DPackBitsTest.cpp39 size_t dstSize = SkPackBits::Pack8(gTests[i].fSrc, in test_pack8() local
41 REPORTER_ASSERT(reporter, dstSize == 0); in test_pack8()
42 dstSize = SkPackBits::Pack8(gTests[i].fSrc, in test_pack8()
44 REPORTER_ASSERT(reporter, dstSize <= maxSize); in test_pack8()
46 int srcCount = SkPackBits::Unpack8(dst, dstSize, src, gTests[i].fCount - 1); in test_pack8()
48 srcCount = SkPackBits::Unpack8(dst, dstSize, src, sizeof(src)); in test_pack8()
61 size_t dstSize = SkPackBits::Pack8(src, size, dst, sizeof(dst)); in test_pack8() local
63 REPORTER_ASSERT(reporter, maxSize >= dstSize); in test_pack8()
65 size_t srcCount = SkPackBits::Unpack8(dst, dstSize, src2, size); in test_pack8()
/external/dng_sdk/source/
Ddng_render.cpp1271 dng_point dstSize; in Render() local
1273 dstSize.h = fNegative.DefaultFinalWidth (); in Render()
1274 dstSize.v = fNegative.DefaultFinalHeight (); in Render()
1279 if (Max_uint32 (dstSize.h, dstSize.v) > MaximumSize ()) in Render()
1286 dstSize.h = MaximumSize (); in Render()
1287 dstSize.v = Max_uint32 (1, Round_uint32 (dstSize.h / ratio)); in Render()
1292 dstSize.v = MaximumSize (); in Render()
1293 dstSize.h = Max_uint32 (1, Round_uint32 (dstSize.v * ratio)); in Render()
1302 if (srcBounds.Size () != dstSize) in Render()
1305 tempImage.Reset (fHost.Make_dng_image (dstSize, in Render()
Ddng_negative.cpp4067 dng_point dstSize = info.DstSize (downScale); in DoInterpolateStage3() local
4069 fStage3Image.Reset (host.Make_dng_image (dng_rect (dstSize), in DoInterpolateStage3()
/external/libjpeg-turbo/
Dtjunittest.c396 unsigned long *dstSize, int w, int h, int pf, char *basename, in compTest() argument
408 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize); in compTest()
433 dstSize, jpegQual, flags)); in compTest()
439 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
445 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
462 unsigned long dstSize=0; in _decompTest() local
469 dstSize=scaledWidth*scaledHeight*tjPixelSize[pf]; in _decompTest()
470 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL) in _decompTest()
472 memset(dstBuf, 0, dstSize); in _decompTest()
601 unsigned long dstSize=0; in bufSizeTest() local
[all …]
/external/skia/src/effects/
DSkPackBits.cpp38 uint8_t* SK_RESTRICT dst, size_t dstSize) { in Pack8() argument
39 if (dstSize < ComputeMaxSize8(srcSize)) { in Pack8()
82 uint8_t* SK_RESTRICT dst, size_t dstSize) { in Unpack8() argument
84 uint8_t* const endDst = dst + dstSize; in Unpack8()
DSkPackBits.h32 size_t dstSize);
43 size_t dstSize);
DSkBlurMask.cpp536 size_t dstSize = dst->computeImageSize(); in BoxBlur() local
537 if (0 == dstSize) { in BoxBlur()
544 uint8_t* dp = SkMask::AllocImage(dstSize); in BoxBlur()
548 SkAutoTMalloc<uint8_t> tmpBuffer(dstSize); in BoxBlur()
775 size_t dstSize = dst->computeImageSize(); in BlurRect() local
776 if (0 == dstSize) { in BlurRect()
780 uint8_t* dp = SkMask::AllocImage(dstSize); in BlurRect()
895 size_t dstSize = dst->computeImageSize(); in BlurGroundTruth() local
896 if (0 == dstSize) { in BlurGroundTruth()
905 uint8_t* dstPixels = SkMask::AllocImage(dstSize); in BlurGroundTruth()
/external/libvncserver/test/
Dtjunittest.c239 unsigned long *dstSize, int w, int h, int pf, char *basename, in compTest() argument
252 if(*dstBuf && *dstSize>0) memset(*dstBuf, 0, *dstSize); in compTest()
255 *dstSize=tjBufSize(w, h, subsamp); in compTest()
256 _tj(tjCompress2(handle, srcBuf, w, 0, h, pf, dstBuf, dstSize, subsamp, in compTest()
263 writeJPEG(*dstBuf, *dstSize, tempStr); in compTest()
280 unsigned long dstSize=0; in _decompTest() local
293 dstSize=scaledWidth*scaledHeight*tjPixelSize[pf]; in _decompTest()
294 if((dstBuf=(unsigned char *)malloc(dstSize))==NULL) in _decompTest()
296 memset(dstBuf, 0, dstSize); in _decompTest()
/external/lz4/lib/
Dlz4frame.c453 typedef int (*compressFunc_t)(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int …
472 …limitedOutput_withState(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level) in LZ4F_localLZ4_compress_limitedOutput_withState() argument
475 return LZ4_compress_limitedOutput_withState(ctx, src, dst, srcSize, dstSize); in LZ4F_localLZ4_compress_limitedOutput_withState()
478 …_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level) in LZ4F_localLZ4_compress_limitedOutput_continue() argument
481 return LZ4_compress_limitedOutput_continue((LZ4_stream_t*)ctx, src, dst, srcSize, dstSize); in LZ4F_localLZ4_compress_limitedOutput_continue()
484 …_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level) in LZ4F_localLZ4_compressHC_limitedOutput_continue() argument
487 return LZ4_compressHC_limitedOutput_continue((LZ4_streamHC_t*)ctx, src, dst, srcSize, dstSize); in LZ4F_localLZ4_compressHC_limitedOutput_continue()
856 static void LZ4F_updateDict(LZ4F_dctx_internal_t* dctxPtr, const BYTE* dstPtr, size_t dstSize, cons… in LZ4F_updateDict() argument
863 dctxPtr->dictSize += dstSize; in LZ4F_updateDict()
867 if (dstPtr - dstPtr0 + dstSize >= 64 KB) /* dstBuffer large enough to become dictionary */ in LZ4F_updateDict()
[all …]
/external/icu/icu4c/source/common/
Dunistr_cnv.cpp122 uint32_t dstSize) const { in extract()
123 return extract(start, length, target, dstSize, 0); in extract()
133 uint32_t dstSize, in extract() argument
137 if(/*dstSize < 0 || */(dstSize > 0 && target == 0)) { in extract()
150 if(dstSize < 0x7fffffff) { in extract()
152 capacity = (int32_t)dstSize; in extract()
Dunistr.cpp916 char *target, uint32_t dstSize) const { in extract()
918 if(/*dstSize < 0 || */(dstSize > 0 && target == 0)) { in extract()
921 return toUTF8(start, len, target, dstSize <= 0x7fffffff ? (int32_t)dstSize : 0x7fffffff); in extract()
/external/deqp/modules/glshared/
DglsTextureTestUtil.cpp235 static float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, deInt32 srcSize, c… in computeNonProjectedTriLod() argument
239 float dx = (float)dstSize.x(); in computeNonProjectedTriLod()
240 float dy = (float)dstSize.y(); in computeNonProjectedTriLod()
273 static float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, const tcu::IVec2& … in computeNonProjectedTriLod() argument
279 float dx = (float)dstSize.x(); in computeNonProjectedTriLod()
280 float dy = (float)dstSize.y(); in computeNonProjectedTriLod()
314 static float computeNonProjectedTriLod (LodMode mode, const tcu::IVec2& dstSize, const tcu::IVec3& … in computeNonProjectedTriLod() argument
322 float dx = (float)dstSize.x(); in computeNonProjectedTriLod()
323 float dy = (float)dstSize.y(); in computeNonProjectedTriLod()
437 tcu::IVec2 dstSize = tcu::IVec2(dst.getWidth(), dst.getHeight()); in sampleTextureNonProjected() local
[all …]
/external/deqp/modules/gles3/functional/
Des3fBufferCopyTests.cpp57 int dstSize, in BasicBufferCopyCase() argument
68 , m_dstSize (dstSize) in BasicBufferCopyCase()
286 int dstSize; in init() member
311 dstTarget, cases[ndx].dstSize, hint, in init()
Des3fVertexTextureTests.cpp499 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
640 float Vertex2DTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx)… in calculateLod() argument
644 const Vec2 sizeRatio = texScale*srcSize / dstSize; in calculateLod()
805 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
961 float VertexCubeTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNd… in calculateLod() argument
965 const Vec2 sizeRatio = texScale*srcSize / dstSize; in calculateLod()
1143 float calculateLod (const Mat3& transf, const Vec2& dstSize, int textureNdx) const;
1286 float Vertex2DArrayTextureCase::calculateLod (const Mat3& transf, const Vec2& dstSize, int textureN… in calculateLod() argument
1298 const float dudx = (trans10.x() - trans00.x()) * (float)texWidth / dstSize.x(); in calculateLod()
1299 const float dudy = (trans01.x() - trans00.x()) * (float)texWidth / dstSize.y(); in calculateLod()
[all …]
Des3fFramebufferBlitTests.cpp58 …eUint32 filter, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dst… in BlitRectCase() argument
63 , m_dstSize (dstSize) in BlitRectCase()
167 …nst char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dst…
172 …nst char* desc, const IVec2& srcSize, const IVec4& srcRect, const IVec2& dstSize, const IVec4& dst… in BlitNearestFilterConsistencyCase() argument
173 : BlitRectCase(context, name, desc, GL_NEAREST, srcSize, srcRect, dstSize, dstRect, 1) in BlitNearestFilterConsistencyCase()
459 … IVec2& srcSize, const IVec4& srcRect, deUint32 dstBuffers, const IVec2& dstSize, const IVec4& dst… in BlitDepthStencilCase() argument
466 , m_dstSize (dstSize) in BlitDepthStencilCase()
975 const IVec2 dstSize(132, 128); in init() local
990 …tCase(m_context, (name + "_nearest").c_str(), "", GL_NEAREST, srcSize, srcRect, dstSize, dstRect)); in init()
991 …ctCase(m_context, (name + "_linear").c_str(), "", GL_LINEAR, srcSize, srcRect, dstSize, dstRect)); in init()
[all …]
/external/deqp/modules/gles2/functional/
Des2fVertexTextureTests.cpp401 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
539 float Vertex2DTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx)… in calculateLod() argument
543 const Vec2 sizeRatio = texScale*srcSize / dstSize; in calculateLod()
704 float calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNdx) const;
857 float VertexCubeTextureCase::calculateLod (const Vec2& texScale, const Vec2& dstSize, int textureNd… in calculateLod() argument
861 const Vec2 sizeRatio = texScale*srcSize / dstSize; in calculateLod()
/external/skia/src/core/
DSkBitmap.cpp459 static bool copy_pixels_to(const SkPixmap& src, void* const dst, size_t dstSize, in copy_pixels_to() argument
472 if (safeSize > dstSize || safeSize == 0) in copy_pixels_to()
483 if (info.getSafeSize(dstRowBytes) > dstSize) { in copy_pixels_to()
501 bool SkBitmap::copyPixelsTo(void* dst, size_t dstSize, size_t dstRB, bool preserveDstPad) const { in copyPixelsTo() argument
509 return copy_pixels_to(result.pixmap(), dst, dstSize, dstRB, preserveDstPad); in copyPixelsTo()
/external/lz4/programs/
Dfullbench.c392 size_t dstSize = outSize; in local_LZ4F_decompress() local
394 result = LZ4F_decompress(g_dCtx, out, &dstSize, in, &srcSize, NULL); in local_LZ4F_decompress()
397 return (int)dstSize; in local_LZ4F_decompress()
/external/deqp/modules/gles31/functional/
Des31fPrimitiveBoundingBoxTests.cpp3298 …const tcu::IVec2 dstSize = (m_dst == TARGET_DEFAULT) ? (tcu::IVec2(m_context.getRenderTarget().get… in init() local
3303 << "dstSize = " << dstSize << "\n" in init()
3312 …tcu::IVec2 unionSize = tcu::IVec2(de::min(srcSize.x(), dstSize.x()), de::min(srcSize.y(), dstSize.… in init()
3331 const int dstWidth = rnd.getInt(1, dstSize.x()); in init()
3332 const int dstHeight = rnd.getInt(1, dstSize.y()); in init()
3333 …const int dstX = rnd.getInt(-(dstWidth / 2), dstSize.x() - (dstWidth+1) / 2); // allow dst go ou… in init()
3334 const int dstY = rnd.getInt(-(dstHeight / 2), dstSize.y() - (dstHeight+1) / 2); in init()
3427 …const tcu::IVec2 dstSize = (m_dst == TARGET_DEFAULT) ? (tcu::IVec2(m_context.getRenderTarget().… in verifyImage() local
3429 tcu::Surface viewport (dstSize.x(), dstSize.y()); in verifyImage()
3430 tcu::Surface errorMask (dstSize.x(), dstSize.y()); in verifyImage()
[all …]
Des31fCopyImageTests.cpp1919 , dstSize (dstSize_) in Copy()
1928 IVec3 dstSize; //!< used only for logging member
1972 const IVec3 dstSize = getLevelSize(dstInfo.getTarget(), dstInfo.getSize(), dstLevel); in generateCopies() local
1976 …tCompleteBlockSize = IVec3(dstSize.x() / dstBlockPixelSize.x(), dstSize.y() / dstBlockPixelSize.y(… in generateCopies()
2050 << "Size in destination format is " << copy.dstSize in copyImageIter()
2211 const IVec3 dstSize = getTestedSize(dstTarget, dstFormat, targetSize); in addCopyTests() local
2215 ImageInfo(dstFormat, dstTarget, dstSize), in addCopyTests()
/external/skia/include/core/
DSkBitmap.h354 bool copyPixelsTo(void* const dst, size_t dstSize, size_t dstRowBytes = 0,
/external/skia/src/utils/
DSkTextureCompressor_ASTC.cpp763 int dstSize, // The maximum size of the array in decode_integer_sequence() argument
774 if (nVals > dstSize) { in decode_integer_sequence()