Lines Matching refs:spectrum_points
77 int spectrum_points; member
199 p->spectrum_points = 249; in getopts()
212 GETOPT_NUMERIC(optstate, 'q', spectrum_points, 0, p->spectrum_points) in getopts()
261 p->spectrum_points += 2; in getopts()
263 p->spectrum_points = min(p->spectrum_points, alt_palette_len); in getopts()
578 unsigned c = x < -p->dB_range ? 0 : x >= 0 ? p->spectrum_points - 1 : in colour()
579 1 + (1 + x / p->dB_range) * (p->spectrum_points - 2); in colour()
606 for (i = 0; i < p->spectrum_points; ++i) { in make_palette()
608 double x = (double)i / (p->spectrum_points - 1); in make_palette()
609 int at = p->light_background ? p->spectrum_points - 1 - i : i; in make_palette()
643 int n = (double)i / (p->spectrum_points - 1) * (alt_palette_len - 1) + .5; in make_palette()
820 png_set_PLTE(png, png_info, palette, fixed_palette + p->spectrum_points); in stop()