Lines Matching refs:peak
82 s->peak.level = 0; in init_peak_table_defaults()
83 s->peak.offset = 0; in init_peak_table_defaults()
84 memset(&s->peak.base, 0, sizeof(s->peak.base)); in init_peak_table_defaults()
129 static inline void peak_table(int16_t *band, Peak *peak, int length) in peak_table() argument
133 if (abs(band[i]) > peak->level) in peak_table()
134 band[i] = bytestream2_get_le16(&peak->base); in peak_table()
520 s->peak.level = 0; in cfhd_decode()
618 s->peak.offset &= ~0xffff; in cfhd_decode()
619 s->peak.offset |= (data & 0xffff); in cfhd_decode()
620 s->peak.base = gb; in cfhd_decode()
621 s->peak.level = 0; in cfhd_decode()
623 s->peak.offset &= 0xffff; in cfhd_decode()
624 s->peak.offset |= (data & 0xffffU)<<16; in cfhd_decode()
625 s->peak.base = gb; in cfhd_decode()
626 s->peak.level = 0; in cfhd_decode()
627 } else if (tag == -PeakLevel && s->peak.offset) { in cfhd_decode()
628 s->peak.level = data; in cfhd_decode()
629 if (s->peak.offset < 4 - bytestream2_tell(&s->peak.base) || in cfhd_decode()
630 s->peak.offset > 4 + bytestream2_get_bytes_left(&s->peak.base) in cfhd_decode()
635 bytestream2_seek(&s->peak.base, s->peak.offset - 4, SEEK_CUR); in cfhd_decode()
889 if (s->peak.level) in cfhd_decode()
890 peak_table(coeff_data - count, &s->peak, count); in cfhd_decode()