/third_party/flutter/skia/src/codec/ |
D | SkMaskSwizzler.cpp | 13 void* dstRow, const uint8_t* srcRow, int width, SkMasks* masks, in swizzle_mask16_to_rgba_opaque() argument 21 uint8_t red = masks->getRed(p); in swizzle_mask16_to_rgba_opaque() 22 uint8_t green = masks->getGreen(p); in swizzle_mask16_to_rgba_opaque() 23 uint8_t blue = masks->getBlue(p); in swizzle_mask16_to_rgba_opaque() 30 void* dstRow, const uint8_t* srcRow, int width, SkMasks* masks, in swizzle_mask16_to_bgra_opaque() argument 38 uint8_t red = masks->getRed(p); in swizzle_mask16_to_bgra_opaque() 39 uint8_t green = masks->getGreen(p); in swizzle_mask16_to_bgra_opaque() 40 uint8_t blue = masks->getBlue(p); in swizzle_mask16_to_bgra_opaque() 47 void* dstRow, const uint8_t* srcRow, int width, SkMasks* masks, in swizzle_mask16_to_rgba_unpremul() argument 55 uint8_t red = masks->getRed(p); in swizzle_mask16_to_rgba_unpremul() [all …]
|
D | SkMasks.cpp | 127 SkMasks* SkMasks::CreateMasks(InputMasks masks, int bytesPerPixel) { in CreateMasks() argument 133 masks.red &= (1 << bitsPerPixel) - 1; in CreateMasks() 134 masks.green &= (1 << bitsPerPixel) - 1; in CreateMasks() 135 masks.blue &= (1 << bitsPerPixel) - 1; in CreateMasks() 136 masks.alpha &= (1 << bitsPerPixel) - 1; in CreateMasks() 140 if (((masks.red & masks.green) | in CreateMasks() 141 (masks.red & masks.blue ) | in CreateMasks() 142 (masks.red & masks.alpha) | in CreateMasks() 143 (masks.green & masks.blue ) | in CreateMasks() 144 (masks.green & masks.alpha) | in CreateMasks() [all …]
|
D | SkMaskSwizzler.h | 29 SkMasks* masks, 55 SkMasks* masks, uint32_t startX, uint32_t sampleX); 57 SkMaskSwizzler(SkMasks* masks, RowProc proc, int subsetWidth, int srcOffset);
|
/third_party/skia/src/codec/ |
D | SkMaskSwizzler.cpp | 13 void* dstRow, const uint8_t* srcRow, int width, SkMasks* masks, in swizzle_mask16_to_rgba_opaque() argument 21 uint8_t red = masks->getRed(p); in swizzle_mask16_to_rgba_opaque() 22 uint8_t green = masks->getGreen(p); in swizzle_mask16_to_rgba_opaque() 23 uint8_t blue = masks->getBlue(p); in swizzle_mask16_to_rgba_opaque() 30 void* dstRow, const uint8_t* srcRow, int width, SkMasks* masks, in swizzle_mask16_to_bgra_opaque() argument 38 uint8_t red = masks->getRed(p); in swizzle_mask16_to_bgra_opaque() 39 uint8_t green = masks->getGreen(p); in swizzle_mask16_to_bgra_opaque() 40 uint8_t blue = masks->getBlue(p); in swizzle_mask16_to_bgra_opaque() 47 void* dstRow, const uint8_t* srcRow, int width, SkMasks* masks, in swizzle_mask16_to_rgba_unpremul() argument 55 uint8_t red = masks->getRed(p); in swizzle_mask16_to_rgba_unpremul() [all …]
|
D | SkMasks.cpp | 127 SkMasks* SkMasks::CreateMasks(InputMasks masks, int bytesPerPixel) { in CreateMasks() argument 133 masks.red &= (1 << bitsPerPixel) - 1; in CreateMasks() 134 masks.green &= (1 << bitsPerPixel) - 1; in CreateMasks() 135 masks.blue &= (1 << bitsPerPixel) - 1; in CreateMasks() 136 masks.alpha &= (1 << bitsPerPixel) - 1; in CreateMasks() 140 if (((masks.red & masks.green) | in CreateMasks() 141 (masks.red & masks.blue ) | in CreateMasks() 142 (masks.red & masks.alpha) | in CreateMasks() 143 (masks.green & masks.blue ) | in CreateMasks() 144 (masks.green & masks.alpha) | in CreateMasks() [all …]
|
D | SkMaskSwizzler.h | 29 SkMasks* masks, 55 SkMasks* masks, uint32_t startX, uint32_t sampleX); 57 SkMaskSwizzler(SkMasks* masks, RowProc proc, int subsetWidth, int srcOffset);
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/ |
D | SDL_pixels.c | 137 Uint32 masks[4]; in SDL_PixelFormatEnumToMasks() local 188 masks[0] = 0x00000000; in SDL_PixelFormatEnumToMasks() 189 masks[1] = 0x000000E0; in SDL_PixelFormatEnumToMasks() 190 masks[2] = 0x0000001C; in SDL_PixelFormatEnumToMasks() 191 masks[3] = 0x00000003; in SDL_PixelFormatEnumToMasks() 194 masks[0] = 0x0000F000; in SDL_PixelFormatEnumToMasks() 195 masks[1] = 0x00000F00; in SDL_PixelFormatEnumToMasks() 196 masks[2] = 0x000000F0; in SDL_PixelFormatEnumToMasks() 197 masks[3] = 0x0000000F; in SDL_PixelFormatEnumToMasks() 200 masks[0] = 0x00008000; in SDL_PixelFormatEnumToMasks() [all …]
|
/third_party/mesa3d/src/mesa/drivers/dri/common/ |
D | utils.c | 181 uint32_t masks[4]; in driCreateConfigs() member 219 const uint32_t * masks; in driCreateConfigs() local 235 masks = format_table[0].masks; in driCreateConfigs() 240 masks = format_table[1].masks; in driCreateConfigs() 245 masks = format_table[2].masks; in driCreateConfigs() 250 masks = format_table[5].masks; in driCreateConfigs() 255 masks = format_table[6].masks; in driCreateConfigs() 259 masks = format_table[3].masks; in driCreateConfigs() 263 masks = format_table[4].masks; in driCreateConfigs() 267 masks = format_table[9].masks; in driCreateConfigs() [all …]
|
/third_party/mindspore/mindspore/explainer/explanation/_attribution/_perturbation/ |
D | ablation.py | 63 masks: np.array 73 num_perturbations = masks.shape[1] 80 Ablation._assign(perturbations, reference, masks) 85 def _assign(original_array: np.ndarray, replacement: np.ndarray, masks: np.ndarray): 87 if masks.dtype != bool: 88 …raise TypeError('The param "masks" should be an array of bool, but receive {}'.format(masks.dtype)) 90 if not np.array_equal(original_array.shape, masks.shape): 92 'but receive {}.'.format(original_array.shape, masks.shape)) 94 original_array[masks] = replacement[masks] 163 …masks = np.zeros((batch_size, num_perturbations, num_channels, saliency_rank.shape[1], saliency_ra… [all …]
|
D | rise.py | 124 masks = [sample[:, x_i: x_i + height, y_i: y_i + width] for sample, x_i, y_i 126 masks = Tensor(np.array(masks), data.dtype) 127 return masks 151 masks = self._generate_masks(data, bs) 153 weights = masks * data + (1 - masks) * bg_data 160 attr_np[idx] += np.sum(weights * masks.asnumpy(), axis=0)
|
D | occlusion.py | 119 masks = Occlusion._generate_masks(inputs, window_size, strides) 121 … return self._perturbate(batch_size, full_network, (original_outputs, masks, inputs, targets)) 125 original_outputs, masks, inputs, targets = data 128 num_perturbations = masks.shape[1] 133 ith_masks = masks[:, count:min(count+self._perturbation_per_eval, num_perturbations)] 144 … outputs_diff.reshape(ith_masks.shape[:2] + (1,) * (len(masks.shape) - 2)) * ith_masks).sum(axis=1) 180 masks = np.tile(mask, reps=(inputs.shape[0],) + (1,) * len(mask.shape)) 181 return masks
|
/third_party/toybox/toys/other/ |
D | inotifyd.c | 53 char *path = *ss, *masks = strchr(*ss, ':'); in inotifyd_main() local 56 if (!masks) mask = 0xfff; // default to all in inotifyd_main() 58 *masks++ = 0; in inotifyd_main() 59 for (*masks++ = 0; *masks; masks++) { in inotifyd_main() 60 i = stridx(masklist, *masks);; in inotifyd_main() 61 if (i == -1) error_exit("bad mask '%c'", *masks); in inotifyd_main()
|
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/ |
D | RangeSpecification.java | 79 char[] masks = new char[s.length()]; in from() local 80 for (int n = 0; n < masks.length; n++) { in from() 81 masks[n] = (char) (1 << s.getDigit(n)); in from() 83 return new RangeSpecification(new String(masks)); in from() 92 char[] masks = new char[length]; in any() local 93 Arrays.fill(masks, ALL_DIGITS_MASK); in any() 94 return new RangeSpecification(new String(masks)); in any() 242 int[] masks = new int[length]; 254 setBitmasks(masks, start); 265 masks[n] = bitmaskUpFrom(loDigit); [all …]
|
/third_party/mindspore/mindspore/explainer/benchmark/_attribution/ |
D | faithfulness.py | 36 def _calc_feature_importance(saliency: _Array, masks: _Array) -> _Array: 38 if saliency.shape[1] < masks.shape[2]: 39 saliency = np.repeat(saliency, repeats=masks.shape[2], axis=1) 41 batch_size = masks.shape[0] 42 num_perturbations = masks.shape[1] 45 masks = masks.reshape([batch_size, num_perturbations, -1]) 46 feature_importance = saliency * masks 47 feature_importance = feature_importance.sum(-1) / masks.sum(-1) 160 masks = self._ablation.generate_mask(saliency, inputs.shape[1]) 161 perturbations = self._ablation(inputs, reference, masks) [all …]
|
/third_party/mindspore/tests/ut/python/dataset/ |
D | test_browse_dataset.py | 36 masks = np.zeros((4, image.shape[0], image.shape[1])) 37 masks[0][0:500, 0:500] = 1 38 masks[1][1000:1500, 1000:1500] = 2 39 masks[2][0:500, 0:500] = 3 40 masks[3][1000:1500, 1000:1500] = 4 41 segm = masks
|
/third_party/boost/libs/dynamic_bitset/test/ |
D | dyn_bitset_unit_tests4.cpp | 73 std::ios::iostate masks[] = { in run_test_cases() local 90 std::size_t num_masks = sizeof(masks) / sizeof(masks[0]); in run_test_cases() 122 try { not_good_stream.exceptions(masks[mi]); } catch(...) {} in run_test_cases() 133 file.exceptions(masks[mi]); in run_test_cases() 147 file.exceptions(masks[mi]); in run_test_cases() 179 std::ios::iostate masks[] = { in run_test_cases() local 233 const std::size_t num_masks = sizeof(masks) / sizeof(masks[0]); in run_test_cases() 255 try { not_good_stream.exceptions(masks[mi]); } catch(...) {} in run_test_cases() 270 f.exceptions(masks[mi]); in run_test_cases() 279 stream.exceptions(masks[mi]); in run_test_cases() [all …]
|
/third_party/mindspore/mindspore/lite/java/java/fl_client/src/main/java/com/mindspore/flclient/model/ |
D | CustomTokenizer.java | 233 int[] masks = new int[maxSeqLen]; in addRandomMaskAndReplace() local 234 Arrays.fill(masks, 1); in addRandomMaskAndReplace() 241 masks[i] = 0; in addRandomMaskAndReplace() 246 masks[i] = 1; in addRandomMaskAndReplace() 253 masks[i] = 1; in addRandomMaskAndReplace() 257 masks[feature.seqLen - 1] = 1; in addRandomMaskAndReplace() 260 inputIds[i] = inputIds[i] * masks[i] + replaces[i]; in addRandomMaskAndReplace() 281 int[] masks = new int[maxSeqLen]; in getFeatures() local 282 Arrays.fill(masks, 0); in getFeatures() 283 Arrays.fill(masks, 0, tokens.size(), 1); // tokens size can ensure less than masks in getFeatures() [all …]
|
/third_party/gstreamer/gstplugins_good/gst/smpte/ |
D | gstmask.c | 27 static GList *masks = NULL; variable 44 masks = in _gst_mask_register() 45 g_list_insert_sorted (masks, (gpointer) definition, in _gst_mask_register() 52 return masks; in gst_mask_get_definitions() 58 GList *walk = masks; in gst_mask_find_definition()
|
/third_party/boost/libs/locale/test/ |
D | test_boundary.cpp | 59 std::vector<int> masks,pos; in test_word_container() local 71 masks.push_back(imasks[i]); in test_word_container() 104 TEST(p->rule() == unsigned(masks[i])); in test_word_container() 116 TEST(p->rule() == unsigned(masks[i])); in test_word_container() 123 TEST(p->rule() == unsigned(masks[index])); in test_word_container() 134 TEST(p->rule() == unsigned(masks[i])); in test_word_container() 151 TEST(p->rule() == unsigned(masks[i])); in test_word_container() 159 TEST(p->rule() == unsigned(masks[index])); in test_word_container() 179 TEST(p->rule()==unsigned(masks[chunk_ptr])); in test_word_container() 198 TEST(p->rule()==unsigned(masks[chunk_ptr])); in test_word_container() [all …]
|
/third_party/skia/third_party/externals/freetype/src/pshinter/ |
D | pshrec.c | 215 PS_Mask mask = table->masks; in ps_mask_table_done() 221 FT_FREE( table->masks ); in ps_mask_table_done() 241 if ( !FT_RENEW_ARRAY( table->masks, old_max, new_max ) ) in ps_mask_table_ensure() 269 mask = table->masks + count - 1; in ps_mask_table_alloc() 299 mask = table->masks + count - 1; in ps_mask_table_last() 374 PS_Mask mask1 = table->masks + index1; in ps_mask_table_test_intersect() 375 PS_Mask mask2 = table->masks + index2; in ps_mask_table_test_intersect() 425 PS_Mask mask1 = table->masks + index1; in ps_mask_table_merge() 426 PS_Mask mask2 = table->masks + index2; in ps_mask_table_merge() 542 ps_mask_table_done( &dimension->masks, memory ); in ps_dimension_done() [all …]
|
/third_party/freetype/src/pshinter/ |
D | pshrec.c | 215 PS_Mask mask = table->masks; in ps_mask_table_done() 221 FT_FREE( table->masks ); in ps_mask_table_done() 241 if ( !FT_RENEW_ARRAY( table->masks, old_max, new_max ) ) in ps_mask_table_ensure() 269 mask = table->masks + count - 1; in ps_mask_table_alloc() 299 mask = table->masks + count - 1; in ps_mask_table_last() 374 PS_Mask mask1 = table->masks + index1; in ps_mask_table_test_intersect() 375 PS_Mask mask2 = table->masks + index2; in ps_mask_table_test_intersect() 425 PS_Mask mask1 = table->masks + index1; in ps_mask_table_merge() 426 PS_Mask mask2 = table->masks + index2; in ps_mask_table_merge() 547 ps_mask_table_done( &dimension->masks, memory ); in ps_dimension_done() [all …]
|
/third_party/flutter/skia/third_party/externals/freetype/src/pshinter/ |
D | pshrec.c | 216 PS_Mask mask = table->masks; in ps_mask_table_done() 222 FT_FREE( table->masks ); in ps_mask_table_done() 242 if ( !FT_RENEW_ARRAY( table->masks, old_max, new_max ) ) in ps_mask_table_ensure() 270 mask = table->masks + count - 1; in ps_mask_table_alloc() 300 mask = table->masks + count - 1; in ps_mask_table_last() 375 PS_Mask mask1 = table->masks + index1; in ps_mask_table_test_intersect() 376 PS_Mask mask2 = table->masks + index2; in ps_mask_table_test_intersect() 426 PS_Mask mask1 = table->masks + index1; in ps_mask_table_merge() 427 PS_Mask mask2 = table->masks + index2; in ps_mask_table_merge() 548 ps_mask_table_done( &dimension->masks, memory ); in ps_dimension_done() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/windows/ |
D | SDL_windowsframebuffer.c | 61 Uint32 *masks; in WIN_CreateWindowFramebuffer() local 64 masks = (Uint32*)((Uint8*)info + info->bmiHeader.biSize); in WIN_CreateWindowFramebuffer() 65 *format = SDL_MasksToPixelFormatEnum(bpp, masks[0], masks[1], masks[2], 0); in WIN_CreateWindowFramebuffer()
|
/third_party/flutter/skia/src/core/ |
D | SkGlyphRunPainter.h | 58 virtual void paintMasks(SkSpan<const SkMask> masks, const SkPaint& paint) const = 0; 161 virtual void processDeviceMasks(SkSpan<const SkGlyphPos> masks, 169 virtual void processSourceSDFT(SkSpan<const SkGlyphPos> masks, 176 virtual void processSourceFallback(SkSpan<const SkGlyphPos> masks, 180 virtual void processDeviceFallback(SkSpan<const SkGlyphPos> masks,
|
/third_party/iptables/iptables/tests/shell/testcases/nft-only/ |
D | 0009-needless-bitwise_0 | 26 masks=" 41 for mask in $masks; do 49 for mask in $masks; do
|