Lines Matching refs:vp

29   struct v39 *vp = p;  in init_viterbi39_av()  local
33 vp->metrics1.v[i] = (vector unsigned short)(1000); in init_viterbi39_av()
35 vp->old_metrics = &vp->metrics1; in init_viterbi39_av()
36 vp->new_metrics = &vp->metrics2; in init_viterbi39_av()
37 vp->dp = vp->decisions; in init_viterbi39_av()
38 vp->old_metrics->s[starting_state & 255] = 0; /* Bias known start state */ in init_viterbi39_av()
55 struct v39 *vp; in create_viterbi39_av() local
62 vp = (struct v39 *)malloc(sizeof(struct v39)); in create_viterbi39_av()
63 vp->decisions = malloc(sizeof(decision_t)*(len+8)); in create_viterbi39_av()
64 init_viterbi39_av(vp,0); in create_viterbi39_av()
65 return vp; in create_viterbi39_av()
74 struct v39 *vp = p; in chainback_viterbi39_av() local
75 decision_t *d = (decision_t *)vp->decisions; in chainback_viterbi39_av()
83 path_metric = vp->old_metrics->s[endstate]; in chainback_viterbi39_av()
102 struct v39 *vp = p; in delete_viterbi39_av() local
104 if(vp != NULL){ in delete_viterbi39_av()
105 free(vp->decisions); in delete_viterbi39_av()
106 free(vp); in delete_viterbi39_av()
111 struct v39 *vp = p; in update_viterbi39_blk_av() local
112 decision_t *d = (decision_t *)vp->dp; in update_viterbi39_blk_av()
146 m0 = vec_adds(vp->old_metrics->v[i],metric); in update_viterbi39_blk_av()
147 m3 = vec_adds(vp->old_metrics->v[16+i],metric); in update_viterbi39_blk_av()
148 m1 = vec_adds(vp->old_metrics->v[16+i],m_metric); in update_viterbi39_blk_av()
149 m2 = vec_adds(vp->old_metrics->v[i],m_metric); in update_viterbi39_blk_av()
168 vp->new_metrics->v[2*i] = vec_mergeh(survivor0,survivor1); in update_viterbi39_blk_av()
169 vp->new_metrics->v[2*i+1] = vec_mergel(survivor0,survivor1); in update_viterbi39_blk_av()
188 min_metric = max_metric = vp->new_metrics->v[0]; in update_viterbi39_blk_av()
190 min_metric = vec_min(min_metric,vp->new_metrics->v[i]); in update_viterbi39_blk_av()
191 max_metric = vec_max(max_metric,vp->new_metrics->v[i]); in update_viterbi39_blk_av()
222 if(vp->new_metrics->s[0] >= USHRT_MAX-5000){ in update_viterbi39_blk_av()
227 scale = vp->new_metrics->v[0]; in update_viterbi39_blk_av()
229 scale = vec_min(scale,vp->new_metrics->v[i]); in update_viterbi39_blk_av()
239 vp->new_metrics->v[i] = vec_subs(vp->new_metrics->v[i],scale); in update_viterbi39_blk_av()
245 tmp = vp->old_metrics; in update_viterbi39_blk_av()
246 vp->old_metrics = vp->new_metrics; in update_viterbi39_blk_av()
247 vp->new_metrics = tmp; in update_viterbi39_blk_av()
249 vp->dp = d; in update_viterbi39_blk_av()