/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/lite_cv/ |
D | lite_mat.cc | 425 inline bool CheckSubstract(const LiteMat &src_a, const LiteMat &src_b, LiteMat *dst) { in CheckSubstract() argument 430 …if (src_a.width_ != src_b.width_ || src_a.height_ != src_b.height_ || src_a.channel_ != src_b.chan… in CheckSubstract() 434 return src_a.data_type_ == src_b.data_type_; in CheckSubstract() 437 bool Subtract(const LiteMat &src_a, const LiteMat &src_b, LiteMat *dst) { in Subtract() argument 438 if (!CheckSubstract(src_a, src_b, dst)) { in Subtract() 443 dst->Init(src_a.width_, src_a.height_, src_a.channel_, src_a.data_type_); in Subtract() 444 …} else if (src_a.width_ != dst->width_ || src_a.height_ != dst->height_ || src_a.channel_ != dst->… in Subtract() 446 } else if (src_a.data_type_ != dst->data_type_) { in Subtract() 450 int64_t total_size = src_a.height_ * src_a.width_ * src_a.channel_; in Subtract() 451 if (src_a.data_type_ == LDataType::BOOL) { in Subtract() [all …]
|
D | lite_mat.h | 353 bool Subtract(const LiteMat &src_a, const LiteMat &src_b, LiteMat *dst); 356 bool Divide(const LiteMat &src_a, const LiteMat &src_b, LiteMat *dst); 359 bool Multiply(const LiteMat &src_a, const LiteMat &src_b, LiteMat *dst);
|
/third_party/flutter/skia/third_party/externals/libwebp/src/demux/ |
D | anim_decode.c | 197 static uint8_t BlendChannelNonPremult(uint32_t src, uint8_t src_a, in BlendChannelNonPremult() argument 202 const uint32_t blend_unscaled = src_channel * src_a + dst_channel * dst_a; in BlendChannelNonPremult() 209 const uint8_t src_a = (src >> 24) & 0xff; in BlendPixelNonPremult() local 211 if (src_a == 0) { in BlendPixelNonPremult() 217 const uint8_t dst_factor_a = (dst_a * (256 - src_a)) >> 8; in BlendPixelNonPremult() 218 const uint8_t blend_a = src_a + dst_factor_a; in BlendPixelNonPremult() 222 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 0); in BlendPixelNonPremult() 224 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 8); in BlendPixelNonPremult() 226 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 16); in BlendPixelNonPremult() 227 assert(src_a + dst_factor_a < 256); in BlendPixelNonPremult() [all …]
|
/third_party/openh264/test/processing/ |
D | ProcessUT_DownSample.cpp | 201 ENFORCE_STACK_ALIGN_1D (uint8_t, src_a, 50000, 16); \ 212 src_c[j] = src_a[j] = rand() % 256; \ 215 func (dst_a, dst_stride_a, src_a, src_stride_a, src_width_a, src_height_a); \ 243 ENFORCE_STACK_ALIGN_1D (uint8_t, src_a, 50000, 16); \ 254 src_c[j] = src_a[j] = rand() % 256; \ 257 func (dst_a, dst_stride_a, src_a, src_stride_a, src_width_a, src_height_a/3); \ 280 ENFORCE_STACK_ALIGN_1D (uint8_t, src_a, 50000, 16); \ 291 src_c[j] = src_a[j] = rand() % 256; \ 294 func (dst_a, dst_stride_a, src_a, src_stride_a, src_width_a, src_height_a); \ 318 ENFORCE_STACK_ALIGN_1D (uint8_t, src_a, 70000, 16); \ [all …]
|
/third_party/skia/third_party/externals/libwebp/src/demux/ |
D | anim_decode.c | 205 static uint8_t BlendChannelNonPremult(uint32_t src, uint8_t src_a, in BlendChannelNonPremult() argument 210 const uint32_t blend_unscaled = src_channel * src_a + dst_channel * dst_a; in BlendChannelNonPremult() 217 const uint8_t src_a = (src >> 24) & 0xff; in BlendPixelNonPremult() local 219 if (src_a == 0) { in BlendPixelNonPremult() 225 const uint8_t dst_factor_a = (dst_a * (256 - src_a)) >> 8; in BlendPixelNonPremult() 226 const uint8_t blend_a = src_a + dst_factor_a; in BlendPixelNonPremult() 230 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 0); in BlendPixelNonPremult() 232 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 8); in BlendPixelNonPremult() 234 BlendChannelNonPremult(src, src_a, dst, dst_factor_a, scale, 16); in BlendPixelNonPremult() 235 assert(src_a + dst_factor_a < 256); in BlendPixelNonPremult() [all …]
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_nir_lower_blend.c | 144 nir_ssa_def *src_a, in vc4_blend_channel_i() argument 155 return src_a; in vc4_blend_channel_i() 163 src_a, in vc4_blend_channel_i() 176 return nir_inot(b, src_a); in vc4_blend_channel_i() 306 nir_ssa_def *src_a = nir_pack_unorm_4x8(b, src_float_a); in vc4_do_blending_i() local 323 src_a, dst_a, in vc4_do_blending_i() 328 src_a, dst_a, in vc4_do_blending_i() 337 src_a, dst_a, in vc4_do_blending_i() 349 src_a, dst_a, in vc4_do_blending_i()
|
/third_party/skia/third_party/externals/libwebp/examples/ |
D | anim_diff.c | 43 const int src_a = (src >> 24) & 0xff; in PixelsAreSimilar() local 52 return (abs(src_r * src_a - dst_r * dst_a) <= (max_allowed_diff * 255)) && in PixelsAreSimilar() 53 (abs(src_g * src_a - dst_g * dst_a) <= (max_allowed_diff * 255)) && in PixelsAreSimilar() 54 (abs(src_b * src_a - dst_b * dst_a) <= (max_allowed_diff * 255)) && in PixelsAreSimilar() 55 (abs(src_a - dst_a) <= max_allowed_diff); in PixelsAreSimilar()
|
D | cwebp.c | 314 const uint8_t* src_a = picture->a; in DumpPicture() local 333 if (fwrite(src_a, picture->width, 1, f) != 1) return 0; in DumpPicture() 335 src_a += picture->a_stride; in DumpPicture()
|
/third_party/flutter/skia/third_party/externals/libwebp/examples/ |
D | anim_diff.c | 43 const int src_a = (src >> 24) & 0xff; in PixelsAreSimilar() local 52 return (abs(src_r * src_a - dst_r * dst_a) <= (max_allowed_diff * 255)) && in PixelsAreSimilar() 53 (abs(src_g * src_a - dst_g * dst_a) <= (max_allowed_diff * 255)) && in PixelsAreSimilar() 54 (abs(src_b * src_a - dst_b * dst_a) <= (max_allowed_diff * 255)) && in PixelsAreSimilar() 55 (abs(src_a - dst_a) <= max_allowed_diff); in PixelsAreSimilar()
|
D | cwebp.c | 311 const uint8_t* src_a = picture->a; in DumpPicture() local 330 if (fwrite(src_a, picture->width, 1, f) != 1) return 0; in DumpPicture() 332 src_a += picture->a_stride; in DumpPicture()
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
D | image_enc.c | 474 const uint8_t* src_a = yuv->a; in WebPWritePGM() local 477 const int a_height = (src_a != NULL) ? height : 0; in WebPWritePGM() 497 ok &= (fwrite(src_a, width, 1, fout) == 1); in WebPWritePGM() 499 src_a += yuv->a_stride; in WebPWritePGM() 518 const uint8_t* src_a = yuv->a; in WebPWriteYUV() local 521 const int a_height = (src_a != NULL) ? height : 0; in WebPWriteYUV() 540 ok &= (fwrite(src_a, width, 1, fout) == 1); in WebPWriteYUV() 541 src_a += yuv->a_stride; in WebPWriteYUV()
|
/third_party/flutter/skia/third_party/externals/libwebp/imageio/ |
D | image_enc.c | 474 const uint8_t* src_a = yuv->a; in WebPWritePGM() local 477 const int a_height = (src_a != NULL) ? height : 0; in WebPWritePGM() 497 ok &= (fwrite(src_a, width, 1, fout) == 1); in WebPWritePGM() 499 src_a += yuv->a_stride; in WebPWritePGM() 518 const uint8_t* src_a = yuv->a; in WebPWriteYUV() local 521 const int a_height = (src_a != NULL) ? height : 0; in WebPWriteYUV() 540 ok &= (fwrite(src_a, width, 1, fout) == 1); in WebPWriteYUV() 541 src_a += yuv->a_stride; in WebPWriteYUV()
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/draw_buffers_indexed/ |
D | esextcDrawBuffersIndexedBase.cpp | 256 glw::GLenum dst_rgb, glw::GLenum src_a, in SetBlendFuncSeparatei() argument 259 gl.blendFuncSeparatei(idx, src_rgb, dst_rgb, src_a, dst_a); in SetBlendFuncSeparatei() 261 state[idx].func_src_a = src_a; in SetBlendFuncSeparatei() 336 glw::GLenum src_a, glw::GLenum dst_a) in SetBlendFuncSeparate() argument 339 gl.blendFuncSeparate(src_rgb, dst_rgb, src_a, dst_a); in SetBlendFuncSeparate() 343 state[i].func_src_a = src_a; in SetBlendFuncSeparate()
|
D | esextcDrawBuffersIndexedBase.hpp | 105 void SetBlendFuncSeparatei(int idx, glw::GLenum src_rgb, glw::GLenum dst_rgb, glw::GLenum src_a, 113 …void SetBlendFuncSeparate(glw::GLenum src_rgb, glw::GLenum dst_rgb, glw::GLenum src_a, glw::GLenum…
|
/third_party/mesa3d/src/panfrost/bifrost/ |
D | bi_packer.c.py | 245 for ((src_a, src_b), cond, remap) in st[1].get("swaps", []): 254 if mod[-1] in str(src_a): 263 … {{ unsigned temp = {}{}; {}{} = {}{}; {}{} = temp; }}'.format(v, src_a, v, src_a, v, src_b, v,…
|
/third_party/skia/gm/ |
D | hsl.cpp | 240 for (SkScalar src_a : {1.0f, 0.5f}) { 249 p.setAlphaf(src_a); 255 str.printf("alpha %g", src_a);
|
/third_party/boost/boost/geometry/srs/projections/impl/ |
D | pj_transform.hpp | 901 calc_t src_a, src_es, dst_a, dst_es; in pj_datum_transform() local 919 src_a = srcdefn.a_orig; in pj_datum_transform() 945 src_a = wgs84_a; in pj_datum_transform() 958 if( src_es != dst_es || src_a != dst_a in pj_datum_transform() 967 int err = pj_geodetic_to_geocentric( src_a, src_es, z_range ); in pj_datum_transform()
|
/third_party/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | format_utils.h | 585 simd4scalari src_a = _simd_extractf128_si(src_ba, 1); in Transpose() local 589 simd4scalari ba0 = SIMD128::unpacklo_epi16(src_b, src_a); in Transpose() 590 simd4scalari ba1 = SIMD128::unpackhi_epi16(src_b, src_a); in Transpose() 660 simd4scalari src_a = SIMD128::setzero_si(); in Transpose() local 664 simd4scalari ba0 = SIMD128::unpacklo_epi16(src_b, src_a); in Transpose() 665 simd4scalari ba1 = SIMD128::unpackhi_epi16(src_b, src_a); in Transpose()
|
/third_party/ffmpeg/libpostproc/ |
D | postprocess_altivec_template.c | 26 #define ALTIVEC_TRANSPOSE_8x8_SHORT(src_a,src_b,src_c,src_d,src_e,src_f,src_g,src_h) \ argument 28 __typeof__(src_a) tempA1, tempB1, tempC1, tempD1; \ 29 __typeof__(src_a) tempE1, tempF1, tempG1, tempH1; \ 30 __typeof__(src_a) tempA2, tempB2, tempC2, tempD2; \ 31 __typeof__(src_a) tempE2, tempF2, tempG2, tempH2; \ 32 tempA1 = vec_mergeh (src_a, src_e); \ 33 tempB1 = vec_mergel (src_a, src_e); \ 48 src_a = vec_mergeh (tempA2, tempE2); \
|
/third_party/pixman/pixman/ |
D | pixman-vmx.c | 1324 uint32_t src_a = ALPHA_8 (s); in vmx_combine_atop_reverse_u_no_mask() local 1327 UN8x4_MUL_UN8_ADD_UN8x4_MUL_UN8 (s, dest_ia, d, src_a); in vmx_combine_atop_reverse_u_no_mask() 1353 uint32_t src_a = ALPHA_8 (s); in vmx_combine_atop_reverse_u_no_mask() local 1356 UN8x4_MUL_UN8_ADD_UN8x4_MUL_UN8 (s, dest_ia, d, src_a); in vmx_combine_atop_reverse_u_no_mask() 1378 uint32_t src_a; in vmx_combine_atop_reverse_u_mask() local 1383 src_a = ALPHA_8 (s); in vmx_combine_atop_reverse_u_mask() 1385 UN8x4_MUL_UN8_ADD_UN8x4_MUL_UN8 (s, dest_ia, d, src_a); in vmx_combine_atop_reverse_u_mask() 1413 uint32_t src_a; in vmx_combine_atop_reverse_u_mask() local 1418 src_a = ALPHA_8 (s); in vmx_combine_atop_reverse_u_mask() 1420 UN8x4_MUL_UN8_ADD_UN8x4_MUL_UN8 (s, dest_ia, d, src_a); in vmx_combine_atop_reverse_u_mask()
|
D | pixman-combine32.c | 388 uint32_t src_a = ALPHA_8 (s); in combine_atop_reverse_u() local 391 UN8x4_MUL_UN8_ADD_UN8x4_MUL_UN8 (s, dest_ia, d, src_a); in combine_atop_reverse_u()
|
/third_party/ffmpeg/libavutil/x86/ |
D | x86util.asm | 993 %macro BLENDVPS 3 ; dst/src_a, src_b, mask 1012 %macro PBLENDVB 3 ; dst/src_a, src_b, mask
|
/third_party/ffmpeg/libavcodec/ |
D | proresenc_anatoliy.c | 433 static av_always_inline int encode_alpha_slice_data(AVCodecContext *avctx, int8_t * src_a, in encode_alpha_slice_data() argument 442 int16_t * blocks = (int16_t *)src_a; in encode_alpha_slice_data()
|
/third_party/flutter/skia/third_party/externals/libwebp/src/mux/ |
D | anim_encode.c | 372 const int src_a = (src >> 24) & 0xff; in PixelsAreSimilar() local 381 return (src_a == dst_a) && in PixelsAreSimilar()
|
/third_party/skia/third_party/externals/libwebp/src/mux/ |
D | anim_encode.c | 369 const int src_a = (src >> 24) & 0xff; in PixelsAreSimilar() local 378 return (src_a == dst_a) && in PixelsAreSimilar()
|