/external/chromium_org/third_party/skia/tests/ |
H A D | BlendTest.cpp | 13 // We want a single channel blend, src over dst, assuming src is premultiplied by srcAlpha. 14 typedef uint8_t(*Blend)(uint8_t dst, uint8_t src, uint8_t srcAlpha); 17 static uint8_t blend_double_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) { 19 return double_to_u8(0.5 + src + dst * (255.0 - srcAlpha) / 255.0); 28 uint8_t dst, uint8_t src, uint8_t alpha) { 29 const uint8_t golden = blend_double_round(dst, src, alpha); 30 const uint8_t blend = algorithm(dst, src, alpha); 32 SkDebugf("dst %02x, src %02x, alpha %02x, |%02x - %02x| > %d\n", 33 dst, src, alpha, blend, golden, maxDiff); 43 for (unsigned dst 8 SkASSERT(d < 256); return uint8_t(d); } typedef uint8_t(*Blend)(uint8_t dst, uint8_t src, uint8_t srcAlpha); static uint8_t blend_double_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) { SkASSERT(src <= srcAlpha); return double_to_u8(0.5 + src + dst * (255.0 - srcAlpha) / 255.0); } static uint8_t abs_diff(uint8_t a, uint8_t b) { const int diff = a - b; return diff > 0 ? diff : -diff; } static void test(skiatest::Reporter* r, int maxDiff, Blend algorithm, uint8_t dst, uint8_t src, uint8_t alpha) { const uint8_t golden = blend_double_round(dst, src, alpha); const uint8_t blend = algorithm(dst, src, alpha); if (abs_diff(blend, golden) > maxDiff) argument 50 test_dst(skiatest::Reporter* r, uint8_t dst, int maxDiff, Blend algorithm) argument 60 blend_double_trunc(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 64 blend_float_trunc(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 68 blend_float_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 72 blend_255_trunc(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 78 blend_255_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 84 blend_256_trunc(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 90 blend_256_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 96 blend_256_round_alt(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 103 blend_256_plus1_trunc(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 109 blend_256_plus1_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 115 blend_perfect(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 144 const uint8_t dst = 0x00; local 184 const uint8_t dst = 0xFF; local [all...] |
/external/skia/tests/ |
H A D | BlendTest.cpp | 13 // We want a single channel blend, src over dst, assuming src is premultiplied by srcAlpha. 14 typedef uint8_t(*Blend)(uint8_t dst, uint8_t src, uint8_t srcAlpha); 17 static uint8_t blend_double_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) { 19 return double_to_u8(0.5 + src + dst * (255.0 - srcAlpha) / 255.0); 28 uint8_t dst, uint8_t src, uint8_t alpha) { 29 const uint8_t golden = blend_double_round(dst, src, alpha); 30 const uint8_t blend = algorithm(dst, src, alpha); 32 SkDebugf("dst %02x, src %02x, alpha %02x, |%02x - %02x| > %d\n", 33 dst, src, alpha, blend, golden, maxDiff); 43 for (unsigned dst 8 SkASSERT(d < 256); return uint8_t(d); } typedef uint8_t(*Blend)(uint8_t dst, uint8_t src, uint8_t srcAlpha); static uint8_t blend_double_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) { SkASSERT(src <= srcAlpha); return double_to_u8(0.5 + src + dst * (255.0 - srcAlpha) / 255.0); } static uint8_t abs_diff(uint8_t a, uint8_t b) { const int diff = a - b; return diff > 0 ? diff : -diff; } static void test(skiatest::Reporter* r, int maxDiff, Blend algorithm, uint8_t dst, uint8_t src, uint8_t alpha) { const uint8_t golden = blend_double_round(dst, src, alpha); const uint8_t blend = algorithm(dst, src, alpha); if (abs_diff(blend, golden) > maxDiff) argument 50 test_dst(skiatest::Reporter* r, uint8_t dst, int maxDiff, Blend algorithm) argument 60 blend_double_trunc(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 64 blend_float_trunc(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 68 blend_float_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 72 blend_255_trunc(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 78 blend_255_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 84 blend_256_trunc(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 90 blend_256_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 96 blend_256_round_alt(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 103 blend_256_plus1_trunc(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 109 blend_256_plus1_round(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 115 blend_perfect(uint8_t dst, uint8_t src, uint8_t srcAlpha) argument 144 const uint8_t dst = 0x00; local 184 const uint8_t dst = 0xFF; local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/ |
H A D | SDL_audiocvt.c | 41 Uint8 *src, *dst; local 44 dst = cvt->buf; 47 *dst = (Uint8)(sample / 2); 49 dst += 1; 55 Sint8 *src, *dst; local 58 dst = (Sint8 *)cvt->buf; 61 *dst = (Sint8)(sample / 2); 63 dst += 1; 69 Uint8 *src, *dst; local 72 dst 100 Uint8 *src, *dst; local 148 Uint8 *src, *dst; local 162 Sint8 *src, *dst; local 176 Uint8 *src, *dst; local 211 Uint8 *src, *dst; local 264 Uint8 *src, *dst; local 278 Sint8 *src, *dst; local 292 Uint8 *src, *dst; local 327 Uint8 *src, *dst; local 376 Uint16 *src, *dst; local 387 Uint8 *src, *dst; local 416 Uint8 *src, *dst, lf, rf, ce; local 437 Sint8 *src, *dst, lf, rf, ce; local 458 Uint8 *src, *dst; local 517 Uint8 *src, *dst; local 593 Uint8 *src, *dst, lf, rf, ce; local 612 Sint8 *src, *dst, lf, rf, ce; local 631 Uint8 *src, *dst; local 680 Uint8 *src, *dst; local 739 Uint8 *src, *dst; local 762 Uint8 *src, *dst; local 786 Uint8 *src, *dst; local 863 Uint8 *src, *dst; local 901 Uint8 *src, *dst; local 944 Uint8 *src, *dst; local 1000 Uint8 *src, *dst; local 1067 Uint8 *src, *dst; local 1102 Uint8 *src, *dst; local 1140 Uint8 *src, *dst; local 1183 Uint8 *src, *dst; local [all...] |
/external/chromium_org/media/base/ |
H A D | gmock_callback_support_unittest.cc | 17 typedef base::Callback<void(const bool& src, bool* dst)> TestCallback; 19 void SetBool(const bool& src, bool* dst) { argument 20 *dst = src; 37 bool dst = false; local 40 check.Call(base::Bind(&SetBool, true, &dst)); 41 EXPECT_TRUE(dst); 46 bool dst = false; local 48 .WillOnce(RunCallback<0>(true, &dst)); 50 EXPECT_TRUE(dst); 55 bool dst local 64 bool dst = false; local 75 bool dst = false; local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
H A D | pack_tmp.h | 26 DST_TYPE *dst, 36 dst[i] = SRC_CONVERT(rgba[i][RCOMP]); 42 dst[i] = SRC_CONVERT(rgba[i][GCOMP]); 48 dst[i] = SRC_CONVERT(rgba[i][BCOMP]); 54 dst[i] = SRC_CONVERT(rgba[i][ACOMP]); 60 dst[i*2+0] = SRC_CONVERT(rgba[i][RCOMP]); 61 dst[i*2+1] = SRC_CONVERT(rgba[i][GCOMP]); 67 dst[i*3+0] = SRC_CONVERT(rgba[i][RCOMP]); 68 dst[i*3+1] = SRC_CONVERT(rgba[i][GCOMP]); 69 dst[ 25 FN_NAME(struct gl_context *ctx, DST_TYPE *dst, GLenum dstFormat, SRC_TYPE rgba[][4], int n) argument [all...] |
H A D | format_pack.h | 33 typedef void (*gl_pack_ubyte_rgba_func)(const GLubyte src[4], void *dst); 36 typedef void (*gl_pack_float_rgba_func)(const GLfloat src[4], void *dst); 39 typedef void (*gl_pack_float_z_func)(const GLfloat *src, void *dst); 42 typedef void (*gl_pack_uint_z_func)(const GLuint *src, void *dst); 45 typedef void (*gl_pack_ubyte_stencil_func)(const GLubyte *src, void *dst); 73 const GLfloat src[][4], void *dst); 77 const GLubyte src[][4], void *dst); 83 void *dst, GLint dstRowStride); 87 const GLfloat *src, void *dst); 91 const GLuint *src, void *dst); [all...] |
H A D | format_unpack.h | 29 const void *src, GLfloat dst[][4]); 33 const void *src, GLubyte dst[][4]); 37 const void *src, GLuint dst[][4]); 42 GLfloat dst[][4], GLint dstRowStride, 47 const void *src, GLfloat *dst); 52 const void *src, GLuint *dst); 56 const void *src, GLubyte *dst); 60 const void *src, GLuint *dst);
|
/external/mesa3d/src/mesa/main/ |
H A D | pack_tmp.h | 26 DST_TYPE *dst, 36 dst[i] = SRC_CONVERT(rgba[i][RCOMP]); 42 dst[i] = SRC_CONVERT(rgba[i][GCOMP]); 48 dst[i] = SRC_CONVERT(rgba[i][BCOMP]); 54 dst[i] = SRC_CONVERT(rgba[i][ACOMP]); 60 dst[i*2+0] = SRC_CONVERT(rgba[i][RCOMP]); 61 dst[i*2+1] = SRC_CONVERT(rgba[i][GCOMP]); 67 dst[i*3+0] = SRC_CONVERT(rgba[i][RCOMP]); 68 dst[i*3+1] = SRC_CONVERT(rgba[i][GCOMP]); 69 dst[ 25 FN_NAME(struct gl_context *ctx, DST_TYPE *dst, GLenum dstFormat, SRC_TYPE rgba[][4], int n) argument [all...] |
H A D | format_pack.h | 33 typedef void (*gl_pack_ubyte_rgba_func)(const GLubyte src[4], void *dst); 36 typedef void (*gl_pack_float_rgba_func)(const GLfloat src[4], void *dst); 39 typedef void (*gl_pack_float_z_func)(const GLfloat *src, void *dst); 42 typedef void (*gl_pack_uint_z_func)(const GLuint *src, void *dst); 45 typedef void (*gl_pack_ubyte_stencil_func)(const GLubyte *src, void *dst); 73 const GLfloat src[][4], void *dst); 77 const GLubyte src[][4], void *dst); 83 void *dst, GLint dstRowStride); 87 const GLfloat *src, void *dst); 91 const GLuint *src, void *dst); [all...] |
H A D | format_unpack.h | 29 const void *src, GLfloat dst[][4]); 33 const void *src, GLubyte dst[][4]); 37 const void *src, GLuint dst[][4]); 42 GLfloat dst[][4], GLint dstRowStride, 47 const void *src, GLfloat *dst); 52 const void *src, GLuint *dst); 56 const void *src, GLubyte *dst); 60 const void *src, GLuint *dst);
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
H A D | lp_bld_blend_logicop.c | 47 LLVMValueRef dst) 59 res = LLVMBuildNot(builder, LLVMBuildOr(builder, src, dst, ""), ""); 62 res = LLVMBuildAnd(builder, LLVMBuildNot(builder, src, ""), dst, ""); 68 res = LLVMBuildAnd(builder, src, LLVMBuildNot(builder, dst, ""), ""); 71 res = LLVMBuildNot(builder, dst, ""); 74 res = LLVMBuildXor(builder, src, dst, ""); 77 res = LLVMBuildNot(builder, LLVMBuildAnd(builder, src, dst, ""), ""); 80 res = LLVMBuildAnd(builder, src, dst, ""); 83 res = LLVMBuildNot(builder, LLVMBuildXor(builder, src, dst, ""), ""); 86 res = dst; 44 lp_build_logicop(LLVMBuilderRef builder, unsigned logicop_func, LLVMValueRef src, LLVMValueRef dst) argument [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_bld_blend_logicop.c | 47 LLVMValueRef dst) 59 res = LLVMBuildNot(builder, LLVMBuildOr(builder, src, dst, ""), ""); 62 res = LLVMBuildAnd(builder, LLVMBuildNot(builder, src, ""), dst, ""); 68 res = LLVMBuildAnd(builder, src, LLVMBuildNot(builder, dst, ""), ""); 71 res = LLVMBuildNot(builder, dst, ""); 74 res = LLVMBuildXor(builder, src, dst, ""); 77 res = LLVMBuildNot(builder, LLVMBuildAnd(builder, src, dst, ""), ""); 80 res = LLVMBuildAnd(builder, src, dst, ""); 83 res = LLVMBuildNot(builder, LLVMBuildXor(builder, src, dst, ""), ""); 86 res = dst; 44 lp_build_logicop(LLVMBuilderRef builder, unsigned logicop_func, LLVMValueRef src, LLVMValueRef dst) argument [all...] |
/external/opencv/cv/src/ |
H A D | _cvmatrix.h | 45 #define icvCopyVector( src, dst, len ) memcpy( (dst), (src), (len)*sizeof((dst)[0])) 46 #define icvSetZero( dst, len ) memset( (dst), 0, (len)*sizeof((dst)[0])) 48 #define icvCopyVector_32f( src, len, dst ) memcpy((dst),(src),(len)*sizeof(float)) 49 #define icvSetZero_32f( dst, cols, rows ) memset((dst), 113 icvMulVectors_32f( const float* src1, const float* src2, float* dst, int len ) argument 123 icvMulVectors_64d( const double* src1, const double* src2, double* dst, int len ) argument 134 icvAddVector_32f( const float* src1, const float* src2, float* dst, int len ) argument 144 icvAddVector_64d( const double* src1, const double* src2, double* dst, int len ) argument 155 icvSubVector_32f( const float* src1, const float* src2, float* dst, int len ) argument 165 icvSubVector_64d( const double* src1, const double* src2, double* dst, int len ) argument 183 icvSetIdentity_32f( float* dst, int w, int h ) argument 192 icvSetIdentity_64d( double* dst, int w, int h ) argument 225 icvScaleVector_32f( const float* src, float* dst, int len, double scale ) argument 236 icvScaleVector_64d( const double* src, double* dst, int len, double scale ) argument 389 icvCvt_32f_64d( const float* src, double* dst, int len ) argument 396 icvCvt_64d_32f( const double* src, float* dst, int len ) argument [all...] |
/external/chromium_org/third_party/skia/src/core/ |
H A D | SkPackBits.cpp | 12 static inline void small_memcpy(void* SK_RESTRICT dst, argument 15 uint8_t* d = (uint8_t*)dst; 37 static inline void small_memset(void* dst, uint8_t value, size_t n) { argument 39 uint8_t* d = (uint8_t*)dst; 71 #define PB_MEMCPY(dst, src, count) \ 74 memcpy(dst, src, count); \ 76 small_memcpy(dst, src, count); \ 134 static uint8_t* flush_same16(uint8_t dst[], uint16_t value, int count) { argument 140 *dst++ = (uint8_t)(n - 1); 141 *dst 148 flush_same8(uint8_t dst[], uint8_t value, int count) argument 161 flush_diff16(uint8_t* SK_RESTRICT dst, const uint16_t* SK_RESTRICT src, int count) argument 177 flush_diff8(uint8_t* SK_RESTRICT dst, const uint8_t* SK_RESTRICT src, int count) argument 193 Pack16(const uint16_t* SK_RESTRICT src, int count, uint8_t* SK_RESTRICT dst) argument 236 Pack8(const uint8_t* SK_RESTRICT src, int count, uint8_t* SK_RESTRICT dst) argument 282 Unpack16(const uint8_t* SK_RESTRICT src, size_t srcSize, uint16_t* SK_RESTRICT dst) argument 304 Unpack8(const uint8_t* SK_RESTRICT src, size_t srcSize, uint8_t* SK_RESTRICT dst) argument 331 Unpack8(uint8_t* SK_RESTRICT dst, size_t dstSkip, size_t dstWrite, const uint8_t* SK_RESTRICT src) argument [all...] |
H A D | SkUtils.cpp | 14 #define assign_16_longs(dst, value) \ 16 (dst)[0] = value; (dst)[1] = value; \ 17 (dst)[2] = value; (dst)[3] = value; \ 18 (dst)[4] = value; (dst)[5] = value; \ 19 (dst)[6] = value; (dst)[7] = value; \ 20 (dst)[ 41 sk_memset16_portable(uint16_t dst[], uint16_t value, int count) argument 94 sk_memset32_portable(uint32_t dst[], uint32_t value, int count) argument 112 sk_memcpy32_portable(uint32_t dst[], const uint32_t src[], int count) argument 137 sk_memset16(uint16_t dst[], uint16_t value, int count) argument 142 sk_memset32(uint32_t dst[], uint32_t value, int count) argument 147 sk_memcpy32(uint32_t dst[], const uint32_t src[], int count) argument [all...] |
/external/skia/src/core/ |
H A D | SkPackBits.cpp | 12 static inline void small_memcpy(void* SK_RESTRICT dst, argument 15 uint8_t* d = (uint8_t*)dst; 37 static inline void small_memset(void* dst, uint8_t value, size_t n) { argument 39 uint8_t* d = (uint8_t*)dst; 71 #define PB_MEMCPY(dst, src, count) \ 74 memcpy(dst, src, count); \ 76 small_memcpy(dst, src, count); \ 134 static uint8_t* flush_same16(uint8_t dst[], uint16_t value, int count) { argument 140 *dst++ = (uint8_t)(n - 1); 141 *dst 148 flush_same8(uint8_t dst[], uint8_t value, int count) argument 161 flush_diff16(uint8_t* SK_RESTRICT dst, const uint16_t* SK_RESTRICT src, int count) argument 177 flush_diff8(uint8_t* SK_RESTRICT dst, const uint8_t* SK_RESTRICT src, int count) argument 193 Pack16(const uint16_t* SK_RESTRICT src, int count, uint8_t* SK_RESTRICT dst) argument 236 Pack8(const uint8_t* SK_RESTRICT src, int count, uint8_t* SK_RESTRICT dst) argument 282 Unpack16(const uint8_t* SK_RESTRICT src, size_t srcSize, uint16_t* SK_RESTRICT dst) argument 304 Unpack8(const uint8_t* SK_RESTRICT src, size_t srcSize, uint8_t* SK_RESTRICT dst) argument 331 Unpack8(uint8_t* SK_RESTRICT dst, size_t dstSkip, size_t dstWrite, const uint8_t* SK_RESTRICT src) argument [all...] |
/external/chromium_org/third_party/cld/encodings/compact_lang_det/win/ |
H A D | cld_htmlutils_google3.cc | 18 // Writes entity value to dst. Returns take(src), put(dst) byte counts 19 void EntityToBuffer(const char* src, int len, char* dst, argument 25 *plen = runetochar(dst, &entval);
|
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/ |
H A D | vp9_extend.h | 23 YV12_BUFFER_CONFIG *dst); 26 YV12_BUFFER_CONFIG *dst,
|
/external/chromium_org/third_party/skia/src/opts/ |
H A D | SkMorphology_opts_neon.h | 8 void SkDilateX_neon(const SkPMColor* src, SkPMColor* dst, int radius, 10 void SkDilateY_neon(const SkPMColor* src, SkPMColor* dst, int radius, 12 void SkErodeX_neon(const SkPMColor* src, SkPMColor* dst, int radius, 14 void SkErodeY_neon(const SkPMColor* src, SkPMColor* dst, int radius,
|
/external/deqp/framework/egl/ |
H A D | egluConfigInfo.cpp | 21 * \brief EGL config dst-> 69 void queryConfigInfo (EGLDisplay display, EGLConfig config, ConfigInfo* dst) argument 71 eglGetConfigAttrib(display, config, EGL_BUFFER_SIZE, &dst->bufferSize); 72 eglGetConfigAttrib(display, config, EGL_RED_SIZE, &dst->redSize); 73 eglGetConfigAttrib(display, config, EGL_GREEN_SIZE, &dst->greenSize); 74 eglGetConfigAttrib(display, config, EGL_BLUE_SIZE, &dst->blueSize); 75 eglGetConfigAttrib(display, config, EGL_LUMINANCE_SIZE, &dst->luminanceSize); 76 eglGetConfigAttrib(display, config, EGL_ALPHA_SIZE, &dst->alphaSize); 77 eglGetConfigAttrib(display, config, EGL_ALPHA_MASK_SIZE, &dst->alphaMaskSize); 78 eglGetConfigAttrib(display, config, EGL_BIND_TO_TEXTURE_RGB, (EGLint*)&dst [all...] |
/external/e2fsprogs/lib/uuid/ |
H A D | copy.c | 37 void uuid_copy(uuid_t dst, const uuid_t src) argument 43 for (i=0, cp1 = dst, cp2 = src; i < 16; i++)
|
/external/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_extend.h | 23 YV12_BUFFER_CONFIG *dst); 26 YV12_BUFFER_CONFIG *dst,
|
/external/qemu/distrib/sdl-1.2.15/src/video/ |
H A D | SDL_stretch_c.h | 28 SDL_Surface *dst, SDL_Rect *dstrect);
|
/external/skia/src/opts/ |
H A D | SkMorphology_opts_neon.h | 8 void SkDilateX_neon(const SkPMColor* src, SkPMColor* dst, int radius, 10 void SkDilateY_neon(const SkPMColor* src, SkPMColor* dst, int radius, 12 void SkErodeX_neon(const SkPMColor* src, SkPMColor* dst, int radius, 14 void SkErodeY_neon(const SkPMColor* src, SkPMColor* dst, int radius,
|
/external/tcpdump/missing/ |
H A D | inet_pton.c | 51 inet_pton(int af, const char *src, void *dst) argument 57 return inet_aton (src, dst);
|