49 for (i = 0, j = 0; j < 32; i += channels, j++) {
63 if (max == 0 && min == 0) {
68 if (max / 7 > -min / 8)
80 put_sbits(&pb, 4, av_clip(data[i] / scale, -8, 7));
84 #define HEADER_SIZE 36
93 bytestream_put_be16(&buf, 0x8000);
95 bytestream_put_byte(&buf, 3);
97 bytestream_put_byte(&buf, 4);
98 bytestream_put_byte(&buf, avctx->
channels);
100 bytestream_put_be32(&buf, 0);
101 bytestream_put_be16(&buf, c->
cutoff);
102 bytestream_put_byte(&buf, 3);
103 bytestream_put_byte(&buf, 0);
104 bytestream_put_be32(&buf, 0);
105 bytestream_put_be32(&buf, 0);
106 bytestream_put_be16(&buf, 0);
138 int buf_size,
void *
data)
142 uint8_t *dst = frame;
155 if (buf_size < BLOCK_SIZE * avctx->channels) {
160 for (ch = 0; ch < avctx->
channels; ch++) {