Home
last modified time | relevance | path

Searched refs:best_index (Results 1 – 8 of 8) sorted by relevance

/third_party/flutter/skia/third_party/externals/sdl/src/video/x11/
DSDL_x11keyboard.c263 int best_index; in X11_InitKeyboard() local
280 best_index = -1; in X11_InitKeyboard()
303 best_index = i; in X11_InitKeyboard()
306 if (best_index >= 0 && best_distance <= 2) { in X11_InitKeyboard()
308 …e = %d, max_keycode = %d, table_size = %d\n", best_index, min_keycode, max_keycode, scancode_set[b… in X11_InitKeyboard()
310 SDL_memcpy(&data->key_layout[min_keycode], scancode_set[best_index].table, in X11_InitKeyboard()
311 sizeof(SDL_Scancode) * scancode_set[best_index].table_size); in X11_InitKeyboard()
/third_party/mesa3d/src/panfrost/midgard/
Dmidgard_schedule.c674 signed best_index = -1; in mir_choose_instruction() local
752 if (effect == best_effect && (signed) i < best_index) in mir_choose_instruction()
756 best_index = i; in mir_choose_instruction()
762 if (best_index < 0) in mir_choose_instruction()
766 assert(best_index < count); in mir_choose_instruction()
767 midgard_instruction *I = instructions[best_index]; in mir_choose_instruction()
770 BITSET_CLEAR(worklist, best_index); in mir_choose_instruction()
773 mir_adjust_constants(instructions[best_index], predicate, true); in mir_choose_instruction()
776 predicate->pipeline_count += mir_pipeline_count(instructions[best_index]); in mir_choose_instruction()
779 mir_adjust_unit(instructions[best_index], unit); in mir_choose_instruction()
[all …]
/third_party/gstreamer/gstreamer/gst/
Dgststructure.c2515 int best_index = -1; in gst_structure_fixate_field_nearest_int() local
2523 if (best_index == -1 || (ABS (target - x) < ABS (target - best))) { in gst_structure_fixate_field_nearest_int()
2524 best_index = i; in gst_structure_fixate_field_nearest_int()
2529 if (best_index != -1) { in gst_structure_fixate_field_nearest_int()
2579 int best_index = -1; in gst_structure_fixate_field_nearest_double() local
2587 if (best_index == -1 || (ABS (target - x) < ABS (target - best))) { in gst_structure_fixate_field_nearest_double()
2588 best_index = i; in gst_structure_fixate_field_nearest_double()
2593 if (best_index != -1) { in gst_structure_fixate_field_nearest_double()
2633 int best_index = -1; in gst_structure_fixate_field_boolean() local
2641 if (best_index == -1 || x == target) { in gst_structure_fixate_field_boolean()
[all …]
/third_party/gettext/libtextstyle/gnulib-local/lib/
Dterm-ostream.oo.c200 unsigned int best_index; in nearest_color() local
208 best_index = 0; in nearest_color()
222 best_index = i; in nearest_color()
230 rgb_to_hsv (table[best_index], &best_hsv); in nearest_color()
235 table[best_index].red, table[best_index].green, table[best_index].blue); in nearest_color()
238 return best_index; in nearest_color()
/third_party/flutter/skia/experimental/editor/
Deditor.cpp268 size_t best_index = b; in find_closest_x() local
269 float best_diff = ::fabsf(bounds[best_index].x() - x); in find_closest_x()
274 best_index = i; in find_closest_x()
277 return best_index; in find_closest_x()
/third_party/skia/modules/skplaintexteditor/src/
Deditor.cpp268 size_t best_index = b; in find_closest_x() local
269 float best_diff = ::fabsf(bounds[best_index].x() - x); in find_closest_x()
274 best_index = i; in find_closest_x()
277 return best_index; in find_closest_x()
/third_party/skia/third_party/externals/libwebp/src/enc/
Dvp8l_enc.c285 const uint8_t best_index = best_sum->index; in PaletteSortModifiedZeng() local
292 (int32_t)cooccurrence[best_index * num_colors + l_j]; in PaletteSortModifiedZeng()
296 remapping[first] = best_index; in PaletteSortModifiedZeng()
299 remapping[last] = best_index; in PaletteSortModifiedZeng()
307 sums[i].sum += cooccurrence[best_index * num_colors + sums[i].index]; in PaletteSortModifiedZeng()
/third_party/skia/third_party/externals/wuffs/release/c/
Dwuffs-v0.3.c15555 size_t best_index = 0; in wuffs_base__pixel_palette__closest_element() local
15596 best_index = i; in wuffs_base__pixel_palette__closest_element()
15603 return (uint8_t)best_index; in wuffs_base__pixel_palette__closest_element()