diff options
| author | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2021-10-21 23:12:06 +0300 |
|---|---|---|
| committer | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2021-10-21 23:12:06 +0300 |
| commit | 4b9517a148bcd6f47cc2f20a83355093811cc04b (patch) | |
| tree | af982328464a716d6ec98d7fb6c542ce15bbef88 /src/specgram.cpp | |
| parent | e18e8eee0e04e936abee1afdf86b8d29e13ec3a7 (diff) | |
Renderer does not cache colromap and valuemap.
* Renderer build colormap from configuration.
* Renderer builds (temporary) valuemap from configuration.
* LiveOutput no longer needs cmap/vmap parameters.
Diffstat (limited to 'src/specgram.cpp')
| -rw-r--r-- | src/specgram.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/specgram.cpp b/src/specgram.cpp index 0e4560c..0cd9635 100644 --- a/src/specgram.cpp +++ b/src/specgram.cpp @@ -169,7 +169,7 @@ main(int argc, char** argv) /* create live window */ std::unique_ptr<LiveOutput> live = nullptr; if (conf.IsLive()) { - live = std::make_unique<LiveOutput>(conf, *color_map, *value_map); + live = std::make_unique<LiveOutput>(conf); live->Render(); /* render empty window */ } @@ -324,7 +324,7 @@ main(int argc, char** argv) /* save file */ if (have_output) { - Renderer file_renderer(conf, *color_map, *value_map, history.size()); + Renderer file_renderer(conf, history.size()); file_renderer.RenderFFTArea(history); auto image = file_renderer.GetCanvas().copyToImage(); |
