• Home
  • Raw
  • Download

Lines Matching refs:v

46 int vorbis_dsp_restart(vorbis_dsp_state *v){  in vorbis_dsp_restart()  argument
47 if(!v)return -1; in vorbis_dsp_restart()
49 vorbis_info *vi=v->vi; in vorbis_dsp_restart()
56 v->out_end=-1; in vorbis_dsp_restart()
57 v->out_begin=-1; in vorbis_dsp_restart()
59 v->granulepos=-1; in vorbis_dsp_restart()
60 v->sequence=-1; in vorbis_dsp_restart()
61 v->sample_count=-1; in vorbis_dsp_restart()
66 int vorbis_dsp_init(vorbis_dsp_state *v,vorbis_info *vi){ in vorbis_dsp_init() argument
71 v->vi=vi; in vorbis_dsp_init()
73 v->work=(ogg_int32_t **)_ogg_malloc(vi->channels*sizeof(*v->work)); in vorbis_dsp_init()
74 v->mdctright=(ogg_int32_t **)_ogg_malloc(vi->channels*sizeof(*v->mdctright)); in vorbis_dsp_init()
76 v->work[i]=(ogg_int32_t *)_ogg_calloc(1,(ci->blocksizes[1]>>1)* in vorbis_dsp_init()
77 sizeof(*v->work[i])); in vorbis_dsp_init()
78 v->mdctright[i]=(ogg_int32_t *)_ogg_calloc(1,(ci->blocksizes[1]>>2)* in vorbis_dsp_init()
79 sizeof(*v->mdctright[i])); in vorbis_dsp_init()
82 v->lW=0; /* previous window size */ in vorbis_dsp_init()
83 v->W=0; /* current window size */ in vorbis_dsp_init()
85 vorbis_dsp_restart(v); in vorbis_dsp_init()
90 vorbis_dsp_state *v=_ogg_calloc(1,sizeof(*v)); in vorbis_dsp_create() local
91 vorbis_dsp_init(v,vi); in vorbis_dsp_create()
92 return v; in vorbis_dsp_create()
95 void vorbis_dsp_clear(vorbis_dsp_state *v){ in vorbis_dsp_clear() argument
97 if(v){ in vorbis_dsp_clear()
98 vorbis_info *vi=v->vi; in vorbis_dsp_clear()
100 if(v->work){ in vorbis_dsp_clear()
102 if(v->work[i])_ogg_free(v->work[i]); in vorbis_dsp_clear()
103 _ogg_free(v->work); in vorbis_dsp_clear()
105 if(v->mdctright){ in vorbis_dsp_clear()
107 if(v->mdctright[i])_ogg_free(v->mdctright[i]); in vorbis_dsp_clear()
108 _ogg_free(v->mdctright); in vorbis_dsp_clear()
113 void vorbis_dsp_destroy(vorbis_dsp_state *v){ in vorbis_dsp_destroy() argument
114 vorbis_dsp_clear(v); in vorbis_dsp_destroy()
115 _ogg_free(v); in vorbis_dsp_destroy()
144 int vorbis_dsp_pcmout(vorbis_dsp_state *v,ogg_int16_t *pcm,int samples){ in vorbis_dsp_pcmout() argument
145 vorbis_info *vi=v->vi; in vorbis_dsp_pcmout()
147 if(v->out_begin>-1 && v->out_begin<v->out_end){ in vorbis_dsp_pcmout()
148 int n=v->out_end-v->out_begin; in vorbis_dsp_pcmout()
154 v->lW,v->W,v->work[i],v->mdctright[i], in vorbis_dsp_pcmout()
158 v->out_begin,v->out_begin+n); in vorbis_dsp_pcmout()
165 int vorbis_dsp_read(vorbis_dsp_state *v,int s){ in vorbis_dsp_read() argument
166 if(s && v->out_begin+s>v->out_end)return(OV_EINVAL); in vorbis_dsp_read()
167 v->out_begin+=s; in vorbis_dsp_read()
176 int v=ci->modes; in vorbis_packet_blocksize() local
186 while(v>1){ in vorbis_packet_blocksize()
188 v>>=1; in vorbis_packet_blocksize()
198 static int ilog(ogg_uint32_t v){ in ilog() argument
200 if(v)--v; in ilog()
201 while(v){ in ilog()
203 v>>=1; in ilog()