Lines Matching refs:vp

28   struct v27 *vp = p;  in init_viterbi27_av()  local
34 vp->metrics1.v[i] = (vector unsigned char)(63); in init_viterbi27_av()
35 vp->old_metrics = &vp->metrics1; in init_viterbi27_av()
36 vp->new_metrics = &vp->metrics2; in init_viterbi27_av()
37 vp->dp = vp->decisions; in init_viterbi27_av()
38 vp->old_metrics->c[starting_state & 63] = 0; /* Bias known start state */ in init_viterbi27_av()
54 struct v27 *vp; in create_viterbi27_av() local
60 if((vp = (struct v27 *)malloc(sizeof(struct v27))) == NULL) in create_viterbi27_av()
62 if((vp->decisions = (decision_t *)malloc((len+6)*sizeof(decision_t))) == NULL){ in create_viterbi27_av()
63 free(vp); in create_viterbi27_av()
66 init_viterbi27_av(vp,0); in create_viterbi27_av()
67 return vp; in create_viterbi27_av()
76 struct v27 *vp = p; in chainback_viterbi27_av() local
77 decision_t *d = (decision_t *)vp->decisions; in chainback_viterbi27_av()
104 struct v27 *vp = p; in delete_viterbi27_av() local
106 if(vp != NULL){ in delete_viterbi27_av()
107 free(vp->decisions); in delete_viterbi27_av()
108 free(vp); in delete_viterbi27_av()
114 struct v27 *vp = p; in update_viterbi27_blk_av() local
119 d = (decision_t *)vp->dp; in update_viterbi27_blk_av()
141 m0 = vec_adds(vp->old_metrics->v[0],metric); in update_viterbi27_blk_av()
142 m3 = vec_adds(vp->old_metrics->v[2],metric); in update_viterbi27_blk_av()
143 m1 = vec_adds(vp->old_metrics->v[2],m_metric); in update_viterbi27_blk_av()
144 m2 = vec_adds(vp->old_metrics->v[0],m_metric); in update_viterbi27_blk_av()
158 m0 = vec_adds(vp->old_metrics->v[1],metric); in update_viterbi27_blk_av()
159 m3 = vec_adds(vp->old_metrics->v[3],metric); in update_viterbi27_blk_av()
160 m1 = vec_adds(vp->old_metrics->v[3],m_metric); in update_viterbi27_blk_av()
161 m2 = vec_adds(vp->old_metrics->v[1],m_metric); in update_viterbi27_blk_av()
166 vp->new_metrics->v[0] = vec_mergeh(survivor0,survivor1); in update_viterbi27_blk_av()
167 vp->new_metrics->v[1] = vec_mergel(survivor0,survivor1); in update_viterbi27_blk_av()
178 vp->new_metrics->v[2] = vec_mergeh(survivor0,survivor1); in update_viterbi27_blk_av()
179 vp->new_metrics->v[3] = vec_mergel(survivor0,survivor1); in update_viterbi27_blk_av()
182 if(vp->new_metrics->c[0] >= 105){ in update_viterbi27_blk_av()
186 scale0 = vec_min(vp->new_metrics->v[0],vp->new_metrics->v[1]); in update_viterbi27_blk_av()
187 scale1 = vec_min(vp->new_metrics->v[2],vp->new_metrics->v[3]); in update_viterbi27_blk_av()
195 vp->new_metrics->v[0] = vec_subs(vp->new_metrics->v[0],scale0); in update_viterbi27_blk_av()
196 vp->new_metrics->v[1] = vec_subs(vp->new_metrics->v[1],scale0); in update_viterbi27_blk_av()
197 vp->new_metrics->v[2] = vec_subs(vp->new_metrics->v[2],scale0); in update_viterbi27_blk_av()
198 vp->new_metrics->v[3] = vec_subs(vp->new_metrics->v[3],scale0); in update_viterbi27_blk_av()
202 tmp = vp->old_metrics; in update_viterbi27_blk_av()
203 vp->old_metrics = vp->new_metrics; in update_viterbi27_blk_av()
204 vp->new_metrics = tmp; in update_viterbi27_blk_av()
206 vp->dp = d; in update_viterbi27_blk_av()