Lines Matching defs:sample

641     int32_t sample = 0;
644 sample += lookup_sample;
646 sample += lookup_sample >> 1;
648 sample += lookup_sample >> 2;
650 sample += lookup_sample >> 3;
652 sample += lookup_sample >> 4;
654 sample += lookup_sample >> 5;
656 sample += lookup_sample >> 6;
658 sample = -sample;
660 sample += c->predictor;
661 sample = av_clip_int16(sample);
666 c->predictor = sample;
669 return sample;
820 int sample = sign_extend(nibble, 4) * (1 << shift);
823 sample += (8 * cs->sample1) - (4 * cs->sample2);
825 sample += 4 * cs->sample1;
827 sample = av_clip_int16(sample >> 2);
830 cs->sample1 = sample;
832 return sample;
1058 /* validate coded sample count */
1096 av_log(avctx, AV_LOG_WARNING, "mismatch in coded sample count\n");
1673 int sample = sign_extend(byte[channel] >> i, 4) * (1 << shift[channel]);
1674 sample = (sample +
1678 c->status[channel].sample1 = av_clip_int16(sample);
1754 av_log(avctx, AV_LOG_WARNING, "per-channel sample count mismatch\n");
1853 av_log(avctx, AV_LOG_WARNING, "Last nibble set on packet with odd sample count.\n");
1890 /* the first byte is a raw sample */
1969 /* Read in every sample for this channel. */
2031 /* Initialize the previous sample. */
2045 /* Read in every sample for this channel. */
2079 /* Read in every sample for this channel. */
2130 /* Read in every sample for this channel. */
2143 int sample = 0, scale;
2154 sample = (int)((scale >> shift) + (c->status[channel].sample1 * xa_adpcm_table[filter][0] + c->status[channel].sample2 * xa_adpcm_table[filter][1]) / 64);
2156 *samples++ = av_clip_int16(sample);
2158 c->status[channel].sample1 = sample;
2194 int sample = bytestream2_get_byteu(&gb);
2195 *samples++ = ff_adpcm_argo_expand_nibble(cs, sample >> 4, shift, control & 0x04);
2196 *samples++ = ff_adpcm_argo_expand_nibble(cs, sample >> 0, shift, control & 0x04);