/dports/lang/spidermonkey60/firefox-60.9.0/media/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_encodemv.c | 143 static int update_mv(vpx_writer *w, const unsigned int ct[2], vpx_prob *cur_p, in update_mv() 145 const vpx_prob new_p = get_binary_prob(ct[0], ct[1]) | 1; in update_mv() 146 const int update = cost_branch256(ct, *cur_p) + vp9_cost_zero(upd_p) > in update_mv() 147 cost_branch256(ct, new_p) + vp9_cost_one(upd_p) + in update_mv() 213 const MV diff = { mv->row - ref->row, mv->col - ref->col }; in vp9_encode_mv() local 214 const MV_JOINT_TYPE j = vp9_get_mv_joint(&diff); in vp9_encode_mv() 219 encode_mv_component(w, diff.row, &mvctx->comps[0], usehp); in vp9_encode_mv() 222 encode_mv_component(w, diff.col, &mvctx->comps[1], usehp); in vp9_encode_mv() 245 const MV diff = { mvs[i].as_mv.row - ref->row, in inc_mvs() local 247 vp9_inc_mv(&diff, counts); in inc_mvs()
|
/dports/mail/thunderbird/thunderbird-91.8.0/media/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_encodemv.c | 143 static int update_mv(vpx_writer *w, const unsigned int ct[2], vpx_prob *cur_p, in update_mv() 145 const vpx_prob new_p = get_binary_prob(ct[0], ct[1]) | 1; in update_mv() 146 const int update = cost_branch256(ct, *cur_p) + vp9_cost_zero(upd_p) > in update_mv() 147 cost_branch256(ct, new_p) + vp9_cost_one(upd_p) + in update_mv() 213 const MV diff = { mv->row - ref->row, mv->col - ref->col }; in vp9_encode_mv() local 214 const MV_JOINT_TYPE j = vp9_get_mv_joint(&diff); in vp9_encode_mv() 219 encode_mv_component(w, diff.row, &mvctx->comps[0], usehp); in vp9_encode_mv() 222 encode_mv_component(w, diff.col, &mvctx->comps[1], usehp); in vp9_encode_mv() 245 const MV diff = { mvs[i].as_mv.row - ref->row, in inc_mvs() local 247 vp9_inc_mv(&diff, counts); in inc_mvs()
|
/dports/lang/spidermonkey78/firefox-78.9.0/media/libvpx/libvpx/vp9/encoder/ |
H A D | vp9_encodemv.c | 143 static int update_mv(vpx_writer *w, const unsigned int ct[2], vpx_prob *cur_p, in update_mv() 145 const vpx_prob new_p = get_binary_prob(ct[0], ct[1]) | 1; in update_mv() 146 const int update = cost_branch256(ct, *cur_p) + vp9_cost_zero(upd_p) > in update_mv() 147 cost_branch256(ct, new_p) + vp9_cost_one(upd_p) + in update_mv() 213 const MV diff = { mv->row - ref->row, mv->col - ref->col }; in vp9_encode_mv() local 214 const MV_JOINT_TYPE j = vp9_get_mv_joint(&diff); in vp9_encode_mv() 219 encode_mv_component(w, diff.row, &mvctx->comps[0], usehp); in vp9_encode_mv() 222 encode_mv_component(w, diff.col, &mvctx->comps[1], usehp); in vp9_encode_mv() 245 const MV diff = { mvs[i].as_mv.row - ref->row, in inc_mvs() local 247 vp9_inc_mv(&diff, counts); in inc_mvs()
|
/dports/science/cantera/cantera-2.5.1-611-gc4d6ecc15/interfaces/cython/cantera/examples/onedim/ |
H A D | premixed_counterflow_twin_flame.py | 11 import cantera as ct namespace 21 dx = np.diff(x) 22 dy = np.diff(y) 84 gas = ct.Solution('gri30.yaml') 89 gas.TP = 300, ct.one_atm 102 oppFlame = ct.CounterflowTwinPremixedFlame(gas, width=width)
|
/dports/science/py-scipy/scipy-1.7.1/scipy/cluster/ |
H A D | vq.py | 202 ct = np.common_type(obs, code_book) 204 c_obs = obs.astype(ct, copy=False) 205 c_code_book = code_book.astype(ct, copy=False) 207 if np.issubdtype(ct, np.float64) or np.issubdtype(ct, np.float32): 303 diff = np.inf 304 prev_avg_dists = deque([diff], maxlen=2) 305 while diff > thresh: 313 diff = prev_avg_dists[0] - prev_avg_dists[1]
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/tcg/arm/ |
H A D | tcg-target.inc.c | 216 if (diff >= -0xfff && diff <= 0xfff) { in patch_reloc() 219 diff = -diff; in patch_reloc() 224 assert(diff >= 0x1000 && diff < 0x100000); in patch_reloc() 231 diff &= 0xfff; in patch_reloc() 253 ct->ct |= TCG_CT_CONST_ARM; in target_parse_constraint() 256 ct->ct |= TCG_CT_CONST_INV; in target_parse_constraint() 266 ct->ct |= TCG_CT_REG; in target_parse_constraint() 272 ct->ct |= TCG_CT_REG; in target_parse_constraint() 286 ct->ct |= TCG_CT_REG; in target_parse_constraint() 355 ct = arg_ct->ct; in tcg_target_const_match() [all …]
|
/dports/lang/mono/mono-5.10.1.57/mcs/tools/svcutil/ |
H A D | MoonlightChannelBaseExtension.cs | 60 foreach (CodeTypeDeclaration ct in cns.Types) in FindClientType() 61 if (ct == context.ContractType) in FindClientType() 184 foreach (CodeTypeDeclaration ct in cns.Types) { in Fixup() 185 if (!ShouldPreserveBaseTypes (ct)) in Fixup() 186 ct.BaseTypes.Clear (); in Fixup() 188 foreach (CodeTypeMember cm in ct.Members) { in Fixup() 195 ct.Members.Remove (cf); in Fixup() 197 ct.Members.Remove (cp); in Fixup() 254 bool diff = false; in EliminateSync() 259 diff = true; in EliminateSync() [all …]
|
/dports/games/libretro-shaders-slang/slang-shaders-9850d68939b86262eae9f0da01ff1c11daafcdc3/crt/shaders/guest/fast/ |
H A D | smoothing.slang | 63 float diff = length(A-B); 65 float diff1 = diff/luma; 66 return 1.0 - clamp(7.0*(max(1.5*diff,diff1)-STH), 0.0, 1.0); 75 vec3 ct = COMPAT_TEXTURE(Source, vTexCoord.xy ).xyz; 78 float dl = df(ct, l1); 79 float dr = df(ct, r1);
|
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/rapid/src/ |
H A D | rapid.cpp | 185 const Point2f diff = contour((i + 1) % N) - contour((i - 1 + N) % N); in extractLineBundle() local 186 Point2f n(normalize(Vec2f(-diff.y, diff.x))); // perpendicular to diff in extractLineBundle() 215 const Vec3s diff = Vec3s(src.at<Vec3b>(i, j + 1)) - Vec3s(src.at<Vec3b>(i, j - 1)); in compute1DSobel() local 217 … (uchar)std::max(std::max(std::abs(diff[0]), std::abs(diff[1])), std::abs(diff[2])); in compute1DSobel() 242 const int ct = len + 1; in findCorrespondencies() local 246 int pos = ct; in findCorrespondencies() 247 uchar mx = sobel.at<uchar>(i, ct); in findCorrespondencies() 249 uchar right = sobel.at<uchar>(i, ct + j); in findCorrespondencies() 250 uchar left = sobel.at<uchar>(i, ct - j); in findCorrespondencies() 253 pos = ct + j; in findCorrespondencies() [all …]
|
/dports/science/libmsym/libmsym-0.2.3-paper/src/ |
H A D | symmetrize.c | 68 if(srsl != pg->ct->d){ in symmetrizeWavefunctions() 74 int *ispan = calloc(pg->ct->d,sizeof(*ispan)); in symmetrizeWavefunctions() 83 for(int k = 0;k < pg->ct->d;k++) md = (md > pg->ct->s[k].d ? md : pg->ct->s[k].d); in symmetrizeWavefunctions() 135 for(int k = 0;k < pg->ct->d;k++){ in symmetrizeWavefunctions() 136 if(ispan[k] != span[k]*pg->ct->s[k].d){ in symmetrizeWavefunctions() 145 int ko = species[o], dim = pg->ct->s[ko].d; in symmetrizeWavefunctions() 190 double diff = fabs(dmpf[i] - c); in symmetrizeWavefunctions() local 191 if(c < dmpf[i] && (diff > mc)){ in symmetrizeWavefunctions() 193 mc = diff; in symmetrizeWavefunctions() 210 int dim = pg->ct->s[species[o]].d; in symmetrizeWavefunctions() [all …]
|
/dports/science/v_sim/v_sim-3.8.0/lib/plug-ins/msym/libmsym/src/ |
H A D | symmetrize.c | 68 if(srsl != pg->ct->d){ in symmetrizeWavefunctions() 74 int *ispan = calloc(pg->ct->d,sizeof(*ispan)); in symmetrizeWavefunctions() 83 for(int k = 0;k < pg->ct->d;k++) md = (md > pg->ct->s[k].d ? md : pg->ct->s[k].d); in symmetrizeWavefunctions() 135 for(int k = 0;k < pg->ct->d;k++){ in symmetrizeWavefunctions() 136 if(ispan[k] != span[k]*pg->ct->s[k].d){ in symmetrizeWavefunctions() 145 int ko = species[o], dim = pg->ct->s[ko].d; in symmetrizeWavefunctions() 190 double diff = fabs(dmpf[i] - c); in symmetrizeWavefunctions() local 191 if(c < dmpf[i] && (diff > mc)){ in symmetrizeWavefunctions() 193 mc = diff; in symmetrizeWavefunctions() 210 int dim = pg->ct->s[species[o]].d; in symmetrizeWavefunctions() [all …]
|
/dports/biology/p5-BioPerl/BioPerl-1.7.7/lib/Bio/Seq/ |
H A D | EncodedSeq.pm | 306 my ($ct) = $enc =~ tr/GB/GB/; 307 $ct = length($enc) - $ct; 309 if ($loc->location_type eq 'EXACT' && $loc->length != $ct); 316 my $diff = $self->start - $start; 318 $enc = substr($enc, $diff); 321 my $diff = $end - $self->end; 323 $enc = substr($enc, -$diff);
|
/dports/math/py-or-tools/or-tools-9.2/ortools/sat/ |
H A D | linear_relaxation.cc | 289 const IntegerValue diff = prev_used_bound - entry.first; in AppendPartialGreaterThanEncodingRelaxation() local 292 if (!lb_constraint.AddLiteralTerm(entry.second, diff)) continue; in AppendPartialGreaterThanEncodingRelaxation() 314 const IntegerValue diff = prev_used_bound - entry.first; in AppendPartialGreaterThanEncodingRelaxation() local 317 if (!lb_constraint.AddLiteralTerm(entry.second, diff)) continue; in AppendPartialGreaterThanEncodingRelaxation() 698 CHECK(ct.has_cumulative()); in AppendCumulativeRelaxation() 727 CHECK(ct.has_no_overlap()); in AppendNoOverlapRelaxation() 920 const IntegerValue diff = in AppendLinMaxRelaxationPart2() local 922 sum_of_max_corner_diff[i][j] += std::max(diff * lb, diff * ub); in AppendLinMaxRelaxationPart2() 955 IntegerValue(ct.linear().domain(ct.linear().domain_size() - 1)); in AppendLinearConstraintRelaxation() 976 if (!mapping->IsHalfEncodingConstraint(&ct) && ct.linear().vars_size() <= 1) { in AppendLinearConstraintRelaxation() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/netfilter/ |
H A D | nfnetlink_queue.c | 642 if (ct && ((ct->status & flags) == IPS_DYING)) in nf_ct_drop_unconfirmed() 836 if (diff < 0) { in nfqnl_mangle() 839 } else if (diff > 0) { in nfqnl_mangle() 842 if (diff > skb_tailroom(e->skb)) { in nfqnl_mangle() 844 diff, GFP_ATOMIC); in nfqnl_mangle() 850 skb_put(e->skb, diff); in nfqnl_mangle() 1107 if (ct == NULL) in nfqnl_ct_parse() 1117 return ct; in nfqnl_ct_parse() 1209 payload_len, entry, diff) < 0) in nfqnl_recv_verdict() 1212 if (ct && diff) in nfqnl_recv_verdict() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/net/netfilter/ |
H A D | nfnetlink_queue.c | 642 if (ct && ((ct->status & flags) == IPS_DYING)) in nf_ct_drop_unconfirmed() 836 if (diff < 0) { in nfqnl_mangle() 839 } else if (diff > 0) { in nfqnl_mangle() 842 if (diff > skb_tailroom(e->skb)) { in nfqnl_mangle() 844 diff, GFP_ATOMIC); in nfqnl_mangle() 850 skb_put(e->skb, diff); in nfqnl_mangle() 1107 if (ct == NULL) in nfqnl_ct_parse() 1117 return ct; in nfqnl_ct_parse() 1209 payload_len, entry, diff) < 0) in nfqnl_recv_verdict() 1212 if (ct && diff) in nfqnl_recv_verdict() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/netfilter/ |
H A D | nfnetlink_queue.c | 642 if (ct && ((ct->status & flags) == IPS_DYING)) in nf_ct_drop_unconfirmed() 836 if (diff < 0) { in nfqnl_mangle() 839 } else if (diff > 0) { in nfqnl_mangle() 842 if (diff > skb_tailroom(e->skb)) { in nfqnl_mangle() 844 diff, GFP_ATOMIC); in nfqnl_mangle() 850 skb_put(e->skb, diff); in nfqnl_mangle() 1107 if (ct == NULL) in nfqnl_ct_parse() 1117 return ct; in nfqnl_ct_parse() 1209 payload_len, entry, diff) < 0) in nfqnl_recv_verdict() 1212 if (ct && diff) in nfqnl_recv_verdict() [all …]
|
/dports/lang/erlang-runtime22/otp-OTP-22.3.4.24/lib/tools/test/ |
H A D | emacs_SUITE.erl | 79 ct:log("Comparing ~s", [Tag]), 80 ct:log("Emacs ~p",[EmacsBifs]), 81 ct:log("Erlang ~p",[Compare]), 83 ct:log("Only in Erlang ~p",[Compare -- EmacsBifs]), 84 ct:log("Only in Emacs ~p",[EmacsBifs -- Compare]), 172 Res = [diff(Orig, File) || {Orig, File} <- Fs], 187 diff(Orig, File) -> function
|
/dports/lang/erlang-runtime23/otp-OTP-23.3.4.10/lib/tools/test/ |
H A D | emacs_SUITE.erl | 79 ct:log("Comparing ~s", [Tag]), 80 ct:log("Emacs ~p",[EmacsBifs]), 81 ct:log("Erlang ~p",[Compare]), 83 ct:log("Only in Erlang ~p",[Compare -- EmacsBifs]), 84 ct:log("Only in Emacs ~p",[EmacsBifs -- Compare]), 172 Res = [diff(Orig, File) || {Orig, File} <- Fs], 187 diff(Orig, File) -> function
|
/dports/lang/erlang-wx/otp-OTP-24.1.7/lib/tools/test/ |
H A D | emacs_SUITE.erl | 79 ct:log("Comparing ~s", [Tag]), 80 ct:log("Emacs ~p",[EmacsBifs]), 81 ct:log("Erlang ~p",[Compare]), 83 ct:log("Only in Erlang ~p",[Compare -- EmacsBifs]), 84 ct:log("Only in Emacs ~p",[EmacsBifs -- Compare]), 172 Res = [diff(Orig, File) || {Orig, File} <- Fs], 187 diff(Orig, File) -> function
|
/dports/lang/erlang-runtime24/otp-OTP-24.1.7/lib/tools/test/ |
H A D | emacs_SUITE.erl | 79 ct:log("Comparing ~s", [Tag]), 80 ct:log("Emacs ~p",[EmacsBifs]), 81 ct:log("Erlang ~p",[Compare]), 83 ct:log("Only in Erlang ~p",[Compare -- EmacsBifs]), 84 ct:log("Only in Emacs ~p",[EmacsBifs -- Compare]), 172 Res = [diff(Orig, File) || {Orig, File} <- Fs], 187 diff(Orig, File) -> function
|
/dports/lang/erlang/otp-OTP-24.1.7/lib/tools/test/ |
H A D | emacs_SUITE.erl | 79 ct:log("Comparing ~s", [Tag]), 80 ct:log("Emacs ~p",[EmacsBifs]), 81 ct:log("Erlang ~p",[Compare]), 83 ct:log("Only in Erlang ~p",[Compare -- EmacsBifs]), 84 ct:log("Only in Emacs ~p",[EmacsBifs -- Compare]), 172 Res = [diff(Orig, File) || {Orig, File} <- Fs], 187 diff(Orig, File) -> function
|
/dports/lang/erlang-java/otp-OTP-24.1.7/lib/tools/test/ |
H A D | emacs_SUITE.erl | 79 ct:log("Comparing ~s", [Tag]), 80 ct:log("Emacs ~p",[EmacsBifs]), 81 ct:log("Erlang ~p",[Compare]), 83 ct:log("Only in Erlang ~p",[Compare -- EmacsBifs]), 84 ct:log("Only in Emacs ~p",[EmacsBifs -- Compare]), 172 Res = [diff(Orig, File) || {Orig, File} <- Fs], 187 diff(Orig, File) -> function
|
/dports/graphics/lazpaint/lazpaint-7.1.6/bgrabitmapnew/bgrabitmap/ |
H A D | bgrawritepng.pas | 194 aType := ct; 195 ReadType := ChunkTypes[ct]; 203 ReadType := ct; 237 var diff : byte; 240 diff := PrevSample(index); 266 diff := l 268 diff := p 270 diff := lp; 274 0 : diff := 0; 280 if diff > b then [all …]
|
/dports/editors/cudatext/CudaText-1.151.0/bgrabitmap/bgrabitmap/ |
H A D | bgrawritepng.pas | 194 aType := ct; 195 ReadType := ChunkTypes[ct]; 203 ReadType := ct; 237 var diff : byte; 240 diff := PrevSample(index); 266 diff := l 268 diff := p 270 diff := lp; 274 0 : diff := 0; 280 if diff > b then [all …]
|
/dports/games/libretro-shaders-glsl/glsl-shaders-7052b09dc657d56bea443d5661dccbebcafe32dc/crt/shaders/guest/ |
H A D | avg-lum.glsl | 115 float diff = length(A-B); 117 float diff1 = diff/luma; 118 return 1.0 - clamp(7.0*(max(1.5*diff,diff1)-STH), 0.0, 1.0); 146 vec3 ct = COMPAT_TEXTURE(PassPrev2Texture, TEX0.xy ).xyz; 151 float dl = df(ct, l1); 152 float dr = df(ct, r1); 153 float dt = df(ct, t1); 154 float db = df(ct, b1);
|