/third_party/ffmpeg/libavformat/ |
H A D | oggenc.c | 659 int64_t pts, invcnt, dist; in ogg_write_packet_internal() local 666 dist = (pkt->flags & AV_PKT_FLAG_KEY) ? 0 : ((oggstream->last_granule >> 3) & 0x07ffffff) + 1; in ogg_write_packet_internal() 668 granule = (pts << 32) | (invcnt << 30) | (dist << 3); in ogg_write_packet_internal()
|
/third_party/qrcodegen/rust/src/ |
H A D | lib.rs | 485 let dist: i32 = std::cmp::max(dx.abs(), dy.abs()); // Chebyshev/infinity norm in draw_finder_pattern() 486 self.set_function_module(xx, yy, dist != 2 && dist != 4); in draw_finder_pattern()
|
/third_party/qrcodegen/cpp/ |
H A D | qrcodegen.cpp | 468 int dist = std::max(std::abs(dx), std::abs(dy)); // Chebyshev/infinity norm in drawFinderPattern() local 471 setFunctionModule(xx, yy, dist != 2 && dist != 4); in drawFinderPattern()
|
/third_party/skia/third_party/externals/libpng/contrib/gregbook/ |
H A D | rpng2-win.c | 977 double angle=0.0, aoffset=0.0, maxDist, dist; 1011 dist = (double)((x*x) + (y*y)) / maxDist; 1012 intensity = cos((angle+(rotate*dist*PI)) * freq) *
|
H A D | rpng2-x.c | 1229 double angle=0.0, aoffset=0.0, maxDist, dist; in rpng2_x_load_bg_image() local 1263 dist = (double)((x*x) + (y*y)) / maxDist; in rpng2_x_load_bg_image() 1264 intensity = cos((angle+(rotate*dist*PI)) * freq) * in rpng2_x_load_bg_image() 2001 double angle=0.0, aoffset=0.0, maxDist, dist; in rpng2_x_reload_bg_image() local 2031 dist = (double)((x*x) + (y*y)) / maxDist; in rpng2_x_reload_bg_image() 2032 intensity = cos((angle+(rotate*dist*PI)) * freq) * in rpng2_x_reload_bg_image()
|
/third_party/backends/backend/ |
H A D | mustek.c | 668 s->ld.index[color] = -s->ld.dist[color]; in dev_block_read_start() 3200 s->ld.dist[color] = result[2 + color]; in line_distance() 3202 s->ld.index[color] = -s->ld.dist[color]; in line_distance() 3232 offset = s->ld.dist[1]; in get_image_status() 3338 s->ld.dist[color] = result[42 + color]; in get_window() 3342 (result[40] << 8) | result[41], s->ld.dist[0], in get_window() 3343 s->ld.dist[1], s->ld.dist[2]); in get_window() 3355 *lines = (s->hw->lines - s->ld.dist[2]) * res / s->ld.peak_res; in get_window() 3573 SANE_Int index[3], lines[3], quant[3], dist[ in fix_line_distance_se() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/ |
H A D | htc_mbox.c | 428 ath6kl_dbg(ATH6KL_DBG_HTC, "htc tx ctxt 0x%p dist 0x%p\n", in htc_tx_comp_update() 1210 bool dist = false; in ath6kl_htc_mbox_activity_changed() local 1222 dist = true; in ath6kl_htc_mbox_activity_changed() 1227 dist = true; in ath6kl_htc_mbox_activity_changed() 1231 if (dist) { in ath6kl_htc_mbox_activity_changed() 1236 "htc tx activity ctxt 0x%p dist 0x%p\n", in ath6kl_htc_mbox_activity_changed() 1246 if (dist && !active) in ath6kl_htc_mbox_activity_changed() 1599 bool dist = false; in htc_proc_cred_rpt() local 1640 dist = true; in htc_proc_cred_rpt() 1654 if (dist) { in htc_proc_cred_rpt() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath6kl/ |
H A D | htc_mbox.c | 428 ath6kl_dbg(ATH6KL_DBG_HTC, "htc tx ctxt 0x%p dist 0x%p\n", in htc_tx_comp_update() 1210 bool dist = false; in ath6kl_htc_mbox_activity_changed() local 1222 dist = true; in ath6kl_htc_mbox_activity_changed() 1227 dist = true; in ath6kl_htc_mbox_activity_changed() 1231 if (dist) { in ath6kl_htc_mbox_activity_changed() 1236 "htc tx activity ctxt 0x%p dist 0x%p\n", in ath6kl_htc_mbox_activity_changed() 1246 if (dist && !active) in ath6kl_htc_mbox_activity_changed() 1599 bool dist = false; in htc_proc_cred_rpt() local 1640 dist = true; in htc_proc_cred_rpt() 1654 if (dist) { in htc_proc_cred_rpt() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dca_core.c | 1708 int size, dist; in parse_optional_info() local 1728 dist = s->frame_size - sync_pos * 4; in parse_optional_info() 1730 && (size == dist || size - 1 == dist) in parse_optional_info() 1753 dist = s->frame_size - sync_pos * 4; in parse_optional_info() 1754 if (size >= 96 && size == dist) { in parse_optional_info() 1778 dist = s->gb.size_in_bits / 8 - sync_pos * 4; in parse_optional_info() 1779 if (size >= 11 && size <= dist && in parse_optional_info()
|
H A D | av1dec.c | 265 int ref_hint, dist, i; in skip_mode_params() local 274 dist = get_relative_dist(seq, ref_hint, header->order_hint); in skip_mode_params() 275 if (dist < 0) { in skip_mode_params() 281 } else if (dist > 0) { in skip_mode_params()
|
H A D | vc2enc.c | 232 uint32_t cur_pos, dist; in encode_parse_info() local 245 dist = cur_pos - s->next_parse_offset; in encode_parse_info() 246 AV_WB32(s->pb.buf + s->next_parse_offset + 5, dist); in encode_parse_info() 251 put_bits32(&s->pb, s->last_parse_code == DIRAC_PCODE_END_SEQ ? 13 : dist); in encode_parse_info()
|
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | ov7251.c | 1009 unsigned int dist; in ov7251_find_mode_by_ival() local 1018 dist = abs(fps_req - fps_tmp); in ov7251_find_mode_by_ival() 1020 if (dist < max_dist_match) { in ov7251_find_mode_by_ival() 1022 max_dist_match = dist; in ov7251_find_mode_by_ival()
|
H A D | ov5695.c | 792 int dist; in ov5695_find_best_fit() local 798 dist = ov5695_get_reso_dist(&supported_modes[i], framefmt); in ov5695_find_best_fit() 799 if (cur_best_fit_dist == -1 || dist < cur_best_fit_dist) { in ov5695_find_best_fit() 800 cur_best_fit_dist = dist; in ov5695_find_best_fit()
|
/kernel/linux/linux-5.10/net/sched/ |
H A D | sch_netem.c | 320 const struct disttable *dist) in tabledist() 332 if (dist == NULL) in tabledist() 335 t = dist->table[rnd % dist->size]; in tabledist() 318 tabledist(s64 mu, s32 sigma, struct crndstate *state, const struct disttable *dist) tabledist() argument
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_nat_core.c | 337 u32 minip, maxip, j, dist; in find_best_ips_proto() local 379 dist = maxip - minip + 1; in find_best_ips_proto() 382 dist = ~0; in find_best_ips_proto() 386 htonl(minip + reciprocal_scale(j, dist)); in find_best_ips_proto()
|
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | ov5695.c | 792 int dist; in ov5695_find_best_fit() local 798 dist = ov5695_get_reso_dist(&supported_modes[i], framefmt); in ov5695_find_best_fit() 799 if (cur_best_fit_dist == -1 || dist < cur_best_fit_dist) { in ov5695_find_best_fit() 800 cur_best_fit_dist = dist; in ov5695_find_best_fit()
|
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_netem.c | 329 const struct disttable *dist) in tabledist() 341 if (dist == NULL) in tabledist() 344 t = dist->table[rnd % dist->size]; in tabledist() 326 tabledist(s64 mu, s32 sigma, struct crndstate *state, struct prng *prng, const struct disttable *dist) tabledist() argument
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_nat_core.c | 402 u32 minip, maxip, j, dist; in find_best_ips_proto() local 444 dist = maxip - minip + 1; in find_best_ips_proto() 447 dist = ~0; in find_best_ips_proto() 451 htonl(minip + reciprocal_scale(j, dist)); in find_best_ips_proto()
|
/third_party/backends/backend/genesys/ |
H A D | gl842.cpp | 365 unsigned dist = scan_table.table.size() / step_multiplier; in gl842_init_motor_regs_scan() local 368 dist += (fast_table.table.size() / step_multiplier) * 2; in gl842_init_motor_regs_scan() 373 if (dist < feedl) { in gl842_init_motor_regs_scan() 374 feedl -= dist; in gl842_init_motor_regs_scan()
|
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_meta_etc_decode.c | 354 nir_ssa_def *dist = etc2_distance_lookup(&b, da); in build_shader() local 369 nir_imul(&b, dist, nir_isub_imm(&b, 2, index))); in build_shader() 393 nir_ssa_def *dist = etc2_distance_lookup(&b, d); in build_shader() local 398 nir_imul(&b, dist, nir_isub_imm(&b, 1, nir_imul_imm(&b, lsb, 2)))); in build_shader()
|
H A D | radv_nir_lower_ray_queries.c | 509 nir_ssa_def *dist = nir_channel(b, result, 0); in insert_traversal_triangle_case() local 511 dist = nir_fdiv(b, dist, div); in insert_traversal_triangle_case() 535 nir_iand(b, nir_fge(b, rq_load_var(b, index, vars->closest.t), dist), in insert_traversal_triangle_case() 536 nir_fge(b, dist, rq_load_var(b, index, vars->tmin))), in insert_traversal_triangle_case() 563 rq_store_var(b, index, vars->candidate.t, dist, 0x1); in insert_traversal_triangle_case()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/i2c/ov5693/ |
H A D | atomisp-ov5693.c | 1511 int dist; in nearest_resolution_index() local 1518 dist = distance(tmp_res, w, h); in nearest_resolution_index() 1519 if (dist == -1) in nearest_resolution_index() 1521 if (dist < min_dist) { in nearest_resolution_index() 1522 min_dist = dist; in nearest_resolution_index() 1527 if (dist == min_dist && ov5693_res[i].width < min_res_w) in nearest_resolution_index()
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/i2c/ov5693/ |
H A D | atomisp-ov5693.c | 1284 int dist; in nearest_resolution_index() local 1291 dist = distance(tmp_res, w, h); in nearest_resolution_index() 1292 if (dist == -1) in nearest_resolution_index() 1294 if (dist < min_dist) { in nearest_resolution_index() 1295 min_dist = dist; in nearest_resolution_index() 1300 if (dist == min_dist && ov5693_res[i].width < min_res_w) in nearest_resolution_index()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/ |
H A D | wifi_global_func.cpp | 95 std::uniform_int_distribution<int> dist{start, end}; in GetRandomInt() 96 return dist(e); in GetRandomInt()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/aarch64/ |
H A D | vgic_irq.c | 52 static void *dist = (void *)GICD_BASE_GPA; variable 481 gic_init(GIC_V3, 1, dist, redist); in guest_code()
|