OsmoTV: Generate correct amplitude of color signal (hopefully)

This commit is contained in:
Andreas Eversberg
2019-06-01 19:15:06 +02:00
parent 4362c78f38
commit 5d9a9b59c3
4 changed files with 13 additions and 13 deletions

View File

@@ -61,8 +61,8 @@ int ebu_gen_line(sample_t *sample, double x, double samplerate, sample_t *color_
colorphase = (360.0 - color_bar[b].phase) / 180.0 * M_PI;
else
colorphase = color_bar[b].phase / 180.0 * M_PI;
U = cos(colorphase) * amplitude / 2.0;
V = sin(colorphase) * amplitude / 2.0;
U = cos(colorphase) * amplitude;
V = sin(colorphase) * amplitude;
render_end = (line_end - line_start) / 8 * (b + 1) + line_start;
while (x < render_end) {
color_u[i] = U;