Lines Matching refs:snr_offset
1059 * @param snr_offset SNR offset, 0 to 1023
1063 static int bit_alloc(AC3EncodeContext *s, int snr_offset)
1067 snr_offset = (snr_offset - 240) << 2;
1081 snr_offset, s->bit_alloc.floor,
1098 int snr_offset, snr_incr;
1104 snr_offset = s->coarse_snr_offset << 4;
1108 if ((snr_offset | s->fine_snr_offset[1]) == 1023) {
1113 while (snr_offset >= 0 &&
1114 bit_alloc(s, snr_offset) > bits_left) {
1115 snr_offset -= 64;
1117 if (snr_offset < 0)
1122 while (snr_offset + snr_incr <= 1023 &&
1123 bit_alloc(s, snr_offset + snr_incr) <= bits_left) {
1124 snr_offset += snr_incr;
1131 s->coarse_snr_offset = snr_offset >> 4;
1133 s->fine_snr_offset[ch] = snr_offset & 0xF;