Home
last modified time | relevance | path

Searched refs:ofst (Results 1 – 25 of 96) sorted by relevance

1234

/external/openfst/src/include/fst/
Dreverse.h43 void Reverse(const Fst<Arc> &ifst, MutableFst<RevArc> *ofst) { in Reverse() argument
48 ofst->DeleteStates(); in Reverse()
49 ofst->SetInputSymbols(ifst.InputSymbols()); in Reverse()
50 ofst->SetOutputSymbols(ifst.OutputSymbols()); in Reverse()
52 ofst->ReserveStates(CountStates(ifst) + 1); in Reverse()
54 StateId ostart = ofst->AddState(); in Reverse()
55 ofst->SetStart(ostart); in Reverse()
62 while (ofst->NumStates() <= os) in Reverse()
63 ofst->AddState(); in Reverse()
65 ofst->SetFinal(os, RevWeight::One()); in Reverse()
[all …]
Dshortest-path.h79 MutableFst<Arc> *ofst, in SingleShortestPath() argument
85 ofst->DeleteStates(); in SingleShortestPath()
86 ofst->SetInputSymbols(ifst.InputSymbols()); in SingleShortestPath()
87 ofst->SetOutputSymbols(ifst.OutputSymbols()); in SingleShortestPath()
90 if (ifst.Properties(kError, false)) ofst->SetProperties(kError, kError); in SingleShortestPath()
108 ofst->SetProperties(kError, kError); in SingleShortestPath()
115 ofst->SetProperties(kError, kError); in SingleShortestPath()
122 ofst->SetProperties(kError, kError); in SingleShortestPath()
149 ofst->SetProperties(kError, kError); in SingleShortestPath()
171 ofst->SetProperties(kError, kError); in SingleShortestPath()
[all …]
/external/openfst/src/extensions/pdt/
Dpdtscript.cc43 MutableFstClass *ofst, in PdtCompose() argument
47 !ArcTypesMatch(ifst1, *ofst, "PdtCompose")) return; in PdtCompose()
49 PdtComposeArgs args(ifst1, ifst2, parens, ofst, copts, left_pdt); in PdtCompose()
56 MutableFstClass *ofst, const PdtExpandOptions &opts) { in PdtExpand() argument
57 PdtExpandArgs args(ifst, parens, ofst, opts); in PdtExpand()
64 MutableFstClass *ofst, bool connect) { in PdtExpand() argument
65 PdtExpand(ifst, parens, ofst, PdtExpandOptions(connect)); in PdtExpand()
69 MutableFstClass *ofst, in PdtReplace() argument
77 if (!ArcTypesMatch((*fst_tuples[0].second), *ofst, "PdtReplace")) return; in PdtReplace()
79 PdtReplaceArgs args(fst_tuples, ofst, parens, root); in PdtReplace()
[all …]
/external/openfst/src/script/
Dconcat.cc24 void Concat(MutableFstClass *ofst, const FstClass &ifst) { in Concat() argument
25 if (!ArcTypesMatch(*ofst, ifst, "Concat")) return; in Concat()
27 ConcatArgs1 args(ofst, ifst); in Concat()
29 Apply<Operation<ConcatArgs1> >("Concat", ofst->ArcType(), &args); in Concat()
32 void Concat(const FstClass &ifst, MutableFstClass *ofst) { in Concat() argument
33 if (!ArcTypesMatch(ifst, *ofst, "Concat")) return; in Concat()
35 ConcatArgs2 args(ifst, ofst); in Concat()
37 Apply<Operation<ConcatArgs2> >("Concat", ofst->ArcType(), &args); in Concat()
Dpush.cc25 void Push(MutableFstClass *ofst, ReweightType dir, float delta, in Push() argument
27 PushArgs1 args(ofst, dir, delta, remove_total_weight); in Push()
28 Apply<Operation<PushArgs1> >("Push", ofst->ArcType(), &args); in Push()
32 void Push(const FstClass &ifst, MutableFstClass *ofst, uint32 flags, in Push() argument
34 if (!ArcTypesMatch(ifst, *ofst, "Push")) return; in Push()
36 PushArgs2 args(ifst, ofst, flags, dir, delta); in Push()
Dshortest-path.cc24 void ShortestPath(const FstClass &ifst, MutableFstClass *ofst, in ShortestPath() argument
27 if (!ArcTypesMatch(ifst, *ofst, "ShortestPath")) return; in ShortestPath()
29 ShortestPathArgs1 args(ifst, ofst, distance, opts); in ShortestPath()
33 void ShortestPath(const FstClass &ifst, MutableFstClass *ofst, in ShortestPath() argument
36 if (!ArcTypesMatch(ifst, *ofst, "ShortestPath")) return; in ShortestPath()
38 ShortestPathArgs2 args(ifst, ofst, n, unique, first_path, weight_threshold, in ShortestPath()
Ddifference.cc25 MutableFstClass *ofst, ComposeFilter compose_filter) { in Difference() argument
27 !ArcTypesMatch(*ofst, ifst1, "Difference")) return; in Difference()
29 DifferenceArgs1 args(ifst1, ifst2, ofst, compose_filter); in Difference()
34 MutableFstClass *ofst, const ComposeOptions &copts) { in Difference() argument
36 !ArcTypesMatch(*ofst, ifst1, "Difference")) return; in Difference()
38 DifferenceArgs2 args(ifst1, ifst2, ofst, copts); in Difference()
Dintersect.cc25 MutableFstClass *ofst, ComposeFilter compose_filter) { in Intersect() argument
27 !ArcTypesMatch(*ofst, ifst1, "Intersect")) return; in Intersect()
29 IntersectArgs1 args(ifst1, ifst2, ofst, compose_filter); in Intersect()
34 MutableFstClass *ofst, const ComposeOptions &copts) { in Intersect() argument
36 !ArcTypesMatch(*ofst, ifst1, "Intersect")) return; in Intersect()
38 IntersectArgs2 args(ifst1, ifst2, ofst, copts); in Intersect()
Dcompose.cc26 MutableFstClass *ofst, ComposeFilter compose_filter) { in Compose() argument
28 !ArcTypesMatch(*ofst, ifst1, "Compose")) return; in Compose()
30 ComposeArgs1 args(ifst1, ifst2, ofst, compose_filter); in Compose()
35 MutableFstClass *ofst, const ComposeOptions &copts) { in Compose() argument
37 !ArcTypesMatch(*ofst, ifst1, "Compose")) return; in Compose()
39 ComposeArgs2 args(ifst1, ifst2, ofst, copts); in Compose()
Drelabel.cc25 void Relabel(MutableFstClass *ofst, in Relabel() argument
30 RelabelArgs1 args(ofst, old_isyms, relabel_isyms, attach_new_isyms, in Relabel()
32 Apply<Operation<RelabelArgs1> >("Relabel", ofst->ArcType(), &args); in Relabel()
36 void Relabel(MutableFstClass *ofst, in Relabel() argument
39 RelabelArgs2 args(ofst, ipairs, opairs); in Relabel()
41 Apply<Operation<RelabelArgs2> >("Relabel", ofst->ArcType(), &args); in Relabel()
Dreplace.cc25 MutableFstClass *ofst, const int64 &root, in Replace() argument
33 if (!ArcTypesMatch(*tuples[0].second, *ofst, "Replace")) return; in Replace()
35 ReplaceArgs args(tuples, ofst, root, epsilon_on_replace); in Replace()
37 Apply<Operation<ReplaceArgs> >("Replace", ofst->ArcType(), &args); in Replace()
/external/libhevc/decoder/
Dihevcd_nal.c98 WORD32 ofst; in ihevcd_nal_search_start_code() local
103 ofst = -1; in ihevcd_nal_search_start_code()
107 while(ofst < (bytes_remaining - 1)) in ihevcd_nal_search_start_code()
109 ofst++; in ihevcd_nal_search_start_code()
110 if(pu1_buf[ofst] != 0) in ihevcd_nal_search_start_code()
117 if((ofst < (bytes_remaining - 1)) && in ihevcd_nal_search_start_code()
118 (pu1_buf[ofst + 1] == START_CODE_PREFIX_BYTE) && in ihevcd_nal_search_start_code()
122 ofst++; in ihevcd_nal_search_start_code()
127 if((0 == start_code_found) && (ofst < bytes_remaining)) in ihevcd_nal_search_start_code()
129 if((START_CODE_PREFIX_BYTE == pu1_buf[ofst]) && in ihevcd_nal_search_start_code()
[all …]
/external/openfst/src/include/fst/script/
Dpush.h32 MutableFst<Arc> *ofst = args->arg1->GetMutableFst<Arc>(); in Push() local
35 fst::Push(ofst, REWEIGHT_TO_FINAL, args->arg3, args->arg4); in Push()
37 fst::Push(ofst, REWEIGHT_TO_INITIAL, args->arg3, args->arg4); in Push()
48 MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>(); in Push() local
51 fst::Push<Arc, REWEIGHT_TO_FINAL>(ifst, ofst, args->arg3, args->arg5); in Push()
53 fst::Push<Arc, REWEIGHT_TO_INITIAL>(ifst, ofst, args->arg3, args->arg5); in Push()
58 void Push(MutableFstClass *ofst, ReweightType type, float delta = kDelta,
62 void Push(const FstClass &ifst, MutableFstClass *ofst, uint32 flags,
Dconcat.h32 MutableFst<Arc> *ofst = args->arg1->GetMutableFst<Arc>(); in Concat() local
35 Concat(ofst, ifst); in Concat()
41 MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>(); in Concat() local
43 Concat(ifst, ofst); in Concat()
46 void Concat(MutableFstClass *ofst, const FstClass &ifst);
47 void Concat(const FstClass &ifst, MutableFstClass *ofst);
Dcompose.h34 MutableFst<Arc> *ofst = args->arg3->GetMutableFst<Arc>(); in Compose() local
36 Compose(ifst1, ifst2, ofst, args->arg4); in Compose()
48 MutableFst<Arc> *ofst = args->arg3->GetMutableFst<Arc>(); in Compose() local
50 Compose(ifst1, ifst2, ofst, args->arg4); in Compose()
54 MutableFstClass *ofst,
58 MutableFstClass *ofst, ComposeFilter compose_filter);
Ddifference.h35 MutableFst<Arc> *ofst = args->arg3->GetMutableFst<Arc>(); in Difference() local
37 Difference(ifst1, ifst2, ofst, args->arg4); in Difference()
47 MutableFst<Arc> *ofst = args->arg3->GetMutableFst<Arc>(); in Difference() local
49 Difference(ifst1, ifst2, ofst, args->arg4); in Difference()
54 MutableFstClass *ofst,
58 MutableFstClass *ofst,
Dintersect.h35 MutableFst<Arc> *ofst = args->arg3->GetMutableFst<Arc>(); in Intersect() local
37 Intersect(ifst1, ifst2, ofst, args->arg4); in Intersect()
47 MutableFst<Arc> *ofst = args->arg3->GetMutableFst<Arc>(); in Intersect() local
49 Intersect(ifst1, ifst2, ofst, args->arg4); in Intersect()
53 MutableFstClass *ofst,
57 MutableFstClass *ofst,
Dshortest-path.h59 MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>(); in ShortestPath() local
78 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath()
90 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath()
102 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath()
114 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath()
126 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath()
138 ShortestPath(ifst, ofst, &weights, spopts); in ShortestPath()
144 ofst->SetProperties(kError, kError); in ShortestPath()
162 MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>(); in ShortestPath() local
166 ShortestPath(ifst, ofst, args->arg3, args->arg4, args->arg5, in ShortestPath()
[all …]
Dmap.h33 VectorFst<ToArc> *ofst = new VectorFst<ToArc>; in ArcMap() local
34 ArcMap(fst, ofst, mapper); in ArcMap()
35 return ofst; in ArcMap()
42 VectorFst<ToArc> *ofst = new VectorFst<ToArc>; in StateMap() local
43 StateMap(fst, ofst, mapper); in StateMap()
44 return ofst; in StateMap()
102 VectorFst<Arc> *ofst = new VectorFst<Arc>; in Map() local
103 ofst->SetProperties(kError, kError); in Map()
104 args->retval = new FstClass(*(fst =ofst)); in Map()
Drelabel.h41 MutableFst<Arc> *ofst = args->arg1->GetMutableFst<Arc>(); in Relabel() local
43 Relabel(ofst, args->arg2, args->arg3, args->arg4, in Relabel()
54 MutableFst<Arc> *ofst = args->arg1->GetMutableFst<Arc>(); in Relabel() local
66 Relabel(ofst, converted_ipairs, converted_opairs); in Relabel()
81 void Relabel(MutableFstClass *ofst,
88 void Relabel(MutableFstClass *ofst,
Drandgen.h39 MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>(); in RandGen() local
48 RandGen(ifst, ofst, ropts); in RandGen()
54 RandGen(ifst, ofst, ropts); in RandGen()
60 RandGen(ifst, ofst, ropts); in RandGen()
66 void RandGen(const FstClass &ifst, MutableFstClass *ofst, int32 seed = time(0),
/external/openfst/src/include/fst/extensions/pdt/
Dpdtscript.h58 MutableFst<Arc> *ofst = args->arg4->GetMutableFst<Arc>(); in PdtCompose() local
69 Compose(ifst1, parens, ifst2, ofst, args->arg5); in PdtCompose()
71 Compose(ifst1, ifst2, parens, ofst, args->arg5); in PdtCompose()
78 MutableFstClass *ofst,
101 MutableFst<Arc> *ofst = args->arg3->GetMutableFst<Arc>(); in PdtExpand() local
109 Expand(fst, parens, ofst, in PdtExpand()
117 MutableFstClass *ofst, const PdtExpandOptions &opts);
121 MutableFstClass *ofst, bool connect);
137 MutableFst<Arc> *ofst = args->arg2->GetMutableFst<Arc>(); in PdtReplace() local
145 Replace(tuples, ofst, &parens, args->arg4); in PdtReplace()
[all …]
Dreplace.h53 MutableFst<Arc> *ofst, in Replace() argument
61 ofst->DeleteStates(); in Replace()
86 for (StateId soff = 0; !non_term_queue.empty(); soff = ofst->NumStates()) { in Replace()
95 StateId os = ofst->AddState(); in Replace()
99 ofst->SetStart(os); in Replace()
103 ofst->SetFinal(os, ifst->Final(is)); in Replace()
124 ofst->AddArc(os, arc); in Replace()
148 for (StateIterator< Fst<Arc> > siter(*ofst); in Replace()
151 MIter *aiter = new MIter(ofst, os); in Replace()
186 ofst->AddArc(p.first, farc); in Replace()
[all …]
/external/libavc/common/
Dih264_weighted_pred.c205 WORD32 ofst, in ih264_weighted_pred_luma() argument
212 ofst = (WORD8)(ofst & 0xff); in ih264_weighted_pred_luma()
219 WORD32 i_ofst = (1 << (log_wd - 1)) + (ofst << log_wd); in ih264_weighted_pred_luma()
234 *pu1_dst = CLIP_U8(wt * (*pu1_src) + ofst); in ih264_weighted_pred_luma()
279 WORD32 ofst, in ih264_weighted_pred_chroma() argument
290 ofst_u = (WORD8)(ofst & 0xff); in ih264_weighted_pred_chroma()
291 ofst_v = (WORD8)(ofst >> 8); in ih264_weighted_pred_chroma()
381 WORD32 shft, ofst; in ih264_weighted_bi_pred_luma() local
387 ofst = (ofst1 + ofst2 + 1) >> 1; in ih264_weighted_bi_pred_luma()
390 ofst = (1 << log_wd) + (ofst << shft); in ih264_weighted_bi_pred_luma()
[all …]
/external/openfst/src/bin/
Dfstconvert.cc48 FstClass *ofst = ifst; in main() local
49 if (!ofst) return 1; in main()
51 if (ofst->FstType() != FLAGS_fst_type) { in main()
52 ofst = s::Convert(*ifst, FLAGS_fst_type); in main()
55 ofst->Write(out_name); in main()

1234