Lines Matching refs:bpos
258 * bpos bit position in the current byte (pointed by *p)
261 alac_write_bits(uint8_t **p, uint8_t val, int blen, int *bpos)
268 lb = 7 - *bpos + 1;
276 if (*bpos == 0)
285 *bpos = 0;
288 *bpos += blen;
299 *bpos = -rb;
308 int bpos;
310 bpos = 0;
313 alac_write_bits(&buf, 1, 3, &bpos); /* channel=1, stereo */
314 alac_write_bits(&buf, 0, 4, &bpos); /* unknown */
315 alac_write_bits(&buf, 0, 8, &bpos); /* unknown */
316 alac_write_bits(&buf, 0, 4, &bpos); /* unknown */
317 alac_write_bits(&buf, 0, 1, &bpos); /* hassize */
319 alac_write_bits(&buf, 0, 2, &bpos); /* unused */
320 alac_write_bits(&buf, 1, 1, &bpos); /* is-not-compressed */
325 alac_write_bits(&buf, *(raw + 1), 8, &bpos);
326 alac_write_bits(&buf, *raw, 8, &bpos);
327 alac_write_bits(&buf, *(raw + 3), 8, &bpos);
328 alac_write_bits(&buf, *(raw + 2), 8, &bpos);