Lines Matching refs:vp
28 struct v29 *vp = p; in init_viterbi29_av() local
34 vp->metrics1.v[i] = (vector unsigned char)(63); in init_viterbi29_av()
36 vp->old_metrics = &vp->metrics1; in init_viterbi29_av()
37 vp->new_metrics = &vp->metrics2; in init_viterbi29_av()
38 vp->dp = vp->decisions; in init_viterbi29_av()
39 vp->old_metrics->c[starting_state & 255] = 0; /* Bias known start state */ in init_viterbi29_av()
55 struct v29 *vp; in create_viterbi29_av() local
61 if((vp = (struct v29 *)malloc(sizeof(struct v29))) == NULL) in create_viterbi29_av()
63 if((vp->decisions = (decision_t *)malloc((len+8)*sizeof(decision_t))) == NULL){ in create_viterbi29_av()
64 free(vp); in create_viterbi29_av()
67 init_viterbi29_av(vp,0); in create_viterbi29_av()
68 return vp; in create_viterbi29_av()
77 struct v29 *vp = p; in chainback_viterbi29_av() local
82 d = (decision_t *)vp->decisions; in chainback_viterbi29_av()
105 struct v29 *vp = p; in delete_viterbi29_av() local
107 if(vp != NULL){ in delete_viterbi29_av()
108 free(vp->decisions); in delete_viterbi29_av()
109 free(vp); in delete_viterbi29_av()
115 struct v29 *vp = p; in update_viterbi29_blk_av() local
121 d = (decision_t *)vp->dp; in update_viterbi29_blk_av()
143 m0 = vec_adds(vp->old_metrics->v[i],metric); in update_viterbi29_blk_av()
144 m3 = vec_adds(vp->old_metrics->v[8+i],metric); in update_viterbi29_blk_av()
145 m1 = vec_adds(vp->old_metrics->v[8+i],m_metric); in update_viterbi29_blk_av()
146 m2 = vec_adds(vp->old_metrics->v[i],m_metric); in update_viterbi29_blk_av()
157 vp->new_metrics->v[2*i] = vec_mergeh(survivor0,survivor1); in update_viterbi29_blk_av()
158 vp->new_metrics->v[2*i+1] = vec_mergel(survivor0,survivor1); in update_viterbi29_blk_av()
162 if(vp->new_metrics->c[0] >= 50){ in update_viterbi29_blk_av()
167 scale0 = vp->new_metrics->v[0]; in update_viterbi29_blk_av()
168 scale1 = vp->new_metrics->v[1]; in update_viterbi29_blk_av()
170 scale0 = vec_min(scale0,vp->new_metrics->v[i]); in update_viterbi29_blk_av()
171 scale1 = vec_min(scale1,vp->new_metrics->v[i+1]); in update_viterbi29_blk_av()
181 vp->new_metrics->v[i] = vec_subs(vp->new_metrics->v[i],scale0); in update_viterbi29_blk_av()
184 tmp = vp->old_metrics; in update_viterbi29_blk_av()
185 vp->old_metrics = vp->new_metrics; in update_viterbi29_blk_av()
186 vp->new_metrics = tmp; in update_viterbi29_blk_av()
188 vp->dp = d; in update_viterbi29_blk_av()