Lines Matching refs:snr_offset
1058 * @param snr_offset SNR offset, 0 to 1023
1062 static int bit_alloc(AC3EncodeContext *s, int snr_offset)
1066 snr_offset = (snr_offset - 240) << 2;
1080 snr_offset, s->bit_alloc.floor,
1097 int snr_offset, snr_incr;
1103 snr_offset = s->coarse_snr_offset << 4;
1107 if ((snr_offset | s->fine_snr_offset[1]) == 1023) {
1112 while (snr_offset >= 0 &&
1113 bit_alloc(s, snr_offset) > bits_left) {
1114 snr_offset -= 64;
1116 if (snr_offset < 0)
1121 while (snr_offset + snr_incr <= 1023 &&
1122 bit_alloc(s, snr_offset + snr_incr) <= bits_left) {
1123 snr_offset += snr_incr;
1130 s->coarse_snr_offset = snr_offset >> 4;
1132 s->fine_snr_offset[ch] = snr_offset & 0xF;