Lines Matching refs:frame

95     ILBCFrame        frame;
132 ILBCFrame *frame = &s->frame;
136 frame->lsf[0] = get_bits(gb, 6);
137 frame->lsf[1] = get_bits(gb, 7);
138 frame->lsf[2] = get_bits(gb, 7);
141 frame->start = get_bits(gb, 2);
142 frame->state_first = get_bits1(gb);
143 frame->ifm = get_bits(gb, 6);
144 frame->cb_index[0] = get_bits(gb, 6) << 1;
145 frame->gain_index[0] = get_bits(gb, 2) << 3;
146 frame->gain_index[1] = get_bits1(gb) << 3;
147 frame->cb_index[3] = get_bits(gb, 7) << 1;
148 frame->gain_index[3] = get_bits1(gb) << 4;
149 frame->gain_index[4] = get_bits1(gb) << 3;
150 frame->gain_index[6] = get_bits1(gb) << 4;
152 frame->lsf[3] = get_bits(gb, 6);
153 frame->lsf[4] = get_bits(gb, 7);
154 frame->lsf[5] = get_bits(gb, 7);
155 frame->start = get_bits(gb, 3);
156 frame->state_first = get_bits1(gb);
157 frame->ifm = get_bits(gb, 6);
158 frame->cb_index[0] = get_bits(gb, 4) << 3;
159 frame->gain_index[0] = get_bits1(gb) << 4;
160 frame->gain_index[1] = get_bits1(gb) << 3;
161 frame->cb_index[3] = get_bits(gb, 6) << 2;
162 frame->gain_index[3] = get_bits1(gb) << 4;
163 frame->gain_index[4] = get_bits1(gb) << 3;
167 frame->idx[j] = get_bits1(gb) << 2;
171 frame->idx[j] = get_bits1(gb) << 2;
173 frame->gain_index[1] |= get_bits1(gb) << 2;
174 frame->gain_index[3] |= get_bits(gb, 2) << 2;
175 frame->gain_index[4] |= get_bits1(gb) << 2;
176 frame->gain_index[6] |= get_bits1(gb) << 3;
177 frame->gain_index[7] = get_bits(gb, 2) << 2;
180 frame->idx[j] = get_bits1(gb) << 2;
182 frame->cb_index[0] |= get_bits(gb, 2) << 1;
183 frame->gain_index[0] |= get_bits1(gb) << 3;
184 frame->gain_index[1] |= get_bits1(gb) << 2;
185 frame->cb_index[3] |= get_bits1(gb) << 1;
186 frame->cb_index[6] = get_bits1(gb) << 7;
187 frame->cb_index[6] |= get_bits(gb, 6) << 1;
188 frame->cb_index[9] = get_bits(gb, 7) << 1;
189 frame->cb_index[12] = get_bits(gb, 3) << 5;
190 frame->cb_index[12] |= get_bits(gb, 4) << 1;
191 frame->gain_index[3] |= get_bits(gb, 2) << 2;
192 frame->gain_index[4] |= get_bits(gb, 2) << 1;
193 frame->gain_index[6] = get_bits(gb, 2) << 3;
194 frame->gain_index[7] = get_bits(gb, 2) << 2;
195 frame->gain_index[9] = get_bits1(gb) << 4;
196 frame->gain_index[10] = get_bits1(gb) << 3;
197 frame->gain_index[12] = get_bits1(gb) << 4;
198 frame->gain_index[13] = get_bits1(gb) << 3;
202 frame->idx[j] |= get_bits(gb, 2);
205 frame->idx[56] |= get_bits(gb, 2);
206 frame->cb_index[0] |= get_bits1(gb);
207 frame->cb_index[1] = get_bits(gb, 7);
208 frame->cb_index[2] = get_bits(gb, 6) << 1;
209 frame->cb_index[2] |= get_bits1(gb);
210 frame->gain_index[0] |= get_bits(gb, 3);
211 frame->gain_index[1] |= get_bits(gb, 2);
212 frame->gain_index[2] = get_bits(gb, 3);
213 frame->cb_index[3] |= get_bits1(gb);
214 frame->cb_index[4] = get_bits(gb, 6) << 1;
215 frame->cb_index[4] |= get_bits1(gb);
216 frame->cb_index[5] = get_bits(gb, 7);
217 frame->cb_index[6] = get_bits(gb, 8);
218 frame->cb_index[7] = get_bits(gb, 8);
219 frame->cb_index[8] = get_bits(gb, 8);
220 frame->gain_index[3] |= get_bits(gb, 2);
221 frame->gain_index[4] |= get_bits(gb, 2);
222 frame->gain_index[5] = get_bits(gb, 3);
223 frame->gain_index[6] |= get_bits(gb, 3);
224 frame->gain_index[7] |= get_bits(gb, 2);
225 frame->gain_index[8] = get_bits(gb, 3);
227 frame->idx[56] |= get_bits(gb, 2);
228 frame->idx[57] |= get_bits(gb, 2);
229 frame->cb_index[0] |= get_bits1(gb);
230 frame->cb_index[1] = get_bits(gb, 7);
231 frame->cb_index[2] = get_bits(gb, 4) << 3;
232 frame->cb_index[2] |= get_bits(gb, 3);
233 frame->gain_index[0] |= get_bits(gb, 3);
234 frame->gain_index[1] |= get_bits(gb, 2);
235 frame->gain_index[2] = get_bits(gb, 3);
236 frame->cb_index[3] |= get_bits1(gb);
237 frame->cb_index[4] = get_bits(gb, 4) << 3;
238 frame->cb_index[4] |= get_bits(gb, 3);
239 frame->cb_index[5] = get_bits(gb, 7);
240 frame->cb_index[6] |= get_bits1(gb);
241 frame->cb_index[7] = get_bits(gb, 5) << 3;
242 frame->cb_index[7] |= get_bits(gb, 3);
243 frame->cb_index[8] = get_bits(gb, 8);
244 frame->cb_index[9] |= get_bits1(gb);
245 frame->cb_index[10] = get_bits(gb, 4) << 4;
246 frame->cb_index[10] |= get_bits(gb, 4);
247 frame->cb_index[11] = get_bits(gb, 8);
248 frame->cb_index[12] |= get_bits1(gb);
249 frame->cb_index[13] = get_bits(gb, 3) << 5;
250 frame->cb_index[13] |= get_bits(gb, 5);
251 frame->cb_index[14] = get_bits(gb, 8);
252 frame->gain_index[3] |= get_bits(gb, 2);
253 frame->gain_index[4] |= get_bits1(gb);
254 frame->gain_index[5] = get_bits(gb, 3);
255 frame->gain_index[6] |= get_bits(gb, 3);
256 frame->gain_index[7] |= get_bits(gb, 2);
257 frame->gain_index[8] = get_bits(gb, 3);
258 frame->gain_index[9] |= get_bits(gb, 4);
259 frame->gain_index[10] |= get_bits1(gb) << 2;
260 frame->gain_index[10] |= get_bits(gb, 2);
261 frame->gain_index[11] = get_bits(gb, 3);
262 frame->gain_index[12] |= get_bits(gb, 4);
263 frame->gain_index[13] |= get_bits(gb, 3);
264 frame->gain_index[14] = get_bits(gb, 3);
986 /* if previous frame not lost,
1007 /* Guard against getting outside the frame */
1085 /* previous frame lost, use recorded lag and gain */
1188 /* Update state in case there are multiple frame losses */
1359 static int ilbc_decode_frame(AVCodecContext *avctx, AVFrame *frame,
1369 memset(&s->frame, 0, sizeof(ILBCFrame));
1371 frame->nb_samples = s->block_samples;
1372 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
1377 if (s->frame.start < 1 || s->frame.start > 5)
1381 index_conv(s->frame.cb_index);
1383 lsf_dequantization(s->lsfdeq, s->frame.lsf, s->lpc_n);
1387 decode_residual(s, &s->frame, s->decresidual, s->syntdenum);
1430 memcpy(frame->data[0], plc_data, s->block_samples * 2);
1432 hp_output((int16_t *)frame->data[0], hp_out_coeffs,