50 for (i = 0, j = 0; j < 32; i += channels, j++) {
64 if (max == 0 && min == 0) {
69 if (max / 7 > -min / 8)
81 put_sbits(&pb, 4, av_clip(data[i] / scale, -8, 7));
85 #define HEADER_SIZE 36
91 bytestream_put_be16(&buf, 0x8000);
93 bytestream_put_byte(&buf, 3);
95 bytestream_put_byte(&buf, 4);
96 bytestream_put_byte(&buf, avctx->
channels);
98 bytestream_put_be32(&buf, 0);
99 bytestream_put_be16(&buf, c->
cutoff);
100 bytestream_put_byte(&buf, 3);
101 bytestream_put_byte(&buf, 0);
102 bytestream_put_be32(&buf, 0);
103 bytestream_put_be32(&buf, 0);
104 bytestream_put_be16(&buf, 0);
110 #if FF_API_OLD_ENCODE_AUDIO
128 #if FF_API_OLD_ENCODE_AUDIO
144 const int16_t *
samples = (
const int16_t *)frame->
data[0];
146 int ch, out_size, ret;
163 for (ch = 0; ch < avctx->
channels; ch++) {
179 .
close = adx_encode_close,