Lines Matching defs:buf
101 static int adx_encode_header(AVCodecContext *avctx, uint8_t *buf, int bufsize)
105 bytestream_put_be16(&buf, 0x8000); /* header signature */
106 bytestream_put_be16(&buf, HEADER_SIZE - 4); /* copyright offset */
107 bytestream_put_byte(&buf, 3); /* encoding */
108 bytestream_put_byte(&buf, BLOCK_SIZE); /* block size */
109 bytestream_put_byte(&buf, 4); /* sample size */
110 bytestream_put_byte(&buf, avctx->ch_layout.nb_channels); /* channels */
111 bytestream_put_be32(&buf, avctx->sample_rate); /* sample rate */
112 bytestream_put_be32(&buf, 0); /* total sample count */
113 bytestream_put_be16(&buf, c->cutoff); /* cutoff frequency */
114 bytestream_put_byte(&buf, 3); /* version */
115 bytestream_put_byte(&buf, 0); /* flags */
116 bytestream_put_be32(&buf, 0); /* unknown */
117 bytestream_put_be32(&buf, 0); /* loop enabled */
118 bytestream_put_be16(&buf, 0); /* padding */
119 bytestream_put_buffer(&buf, "(c)CRI", 6); /* copyright signature */