Lines Matching defs:samples
81 uint8_t const *samples[2])
90 const type *sptr = (const type *)samples[ch]; \
146 put_bits32(&s->pbctx, s->frame_size); // No. of samples in the frame
271 int32_t *samples = s->sample_buf[ch];
274 // generate warm-up samples
275 residual[0] = samples[0];
277 residual[i] = sign_extend(samples[i] - samples[i-1], s->write_sample_size);
279 // perform lpc on remaining samples
284 sum += (samples[lpc.lpc_order-j] - samples[0]) *
289 sum += samples[0];
290 residual[i] = sign_extend(samples[lpc.lpc_order+1] - sum,
299 int val = samples[0] - samples[lpc.lpc_order - index];
311 samples++;
320 int32_t *samples = s->predictor_buf;
327 x = -2 * (*samples) -1;
330 samples++;
347 while (*samples == 0 && i < s->frame_size) {
348 samples++;
364 uint8_t const *samples[2] = { samples0, samples1 };
373 /* samples are channel-interleaved in verbatim mode */
394 init_sample_buffers(s, channels, samples);
428 // apply lpc and entropy coding to audio samples
444 uint8_t * const *samples)
456 write_element(s, TYPE_CPE, cpe, samples[ch_map[ch]],
457 samples[ch_map[ch + 1]]);
461 write_element(s, TYPE_SCE, sce, samples[ch_map[ch]], NULL);