comparison layer/Colour3DPlotLayer.cpp @ 1212:a1ee3108d1d3 3.0-integration

Make the colour 3d plot renderer able to support more than one level of peak cache; introduce a second "peak" cache for the spectrogram layer that actually has a 1-1 column relationship with the underlying FFT model, and use it in addition to the existing peak cache if memory is plentiful. Makes spectrograms appear much faster in many common situations.
author Chris Cannam
date Thu, 05 Jan 2017 14:02:54 +0000
parents f7bb22999d2e
children 2954e9952b78
comparison
equal deleted inserted replaced
1211:7a19738b9762 1212:a1ee3108d1d3
1034 1034
1035 Colour3DPlotRenderer::Sources sources; 1035 Colour3DPlotRenderer::Sources sources;
1036 sources.verticalBinLayer = this; 1036 sources.verticalBinLayer = this;
1037 sources.fft = 0; 1037 sources.fft = 0;
1038 sources.source = m_model; 1038 sources.source = m_model;
1039 sources.peakCache = getPeakCache(); 1039 sources.peakCaches.push_back(getPeakCache());
1040 1040
1041 ColourScale::Parameters cparams; 1041 ColourScale::Parameters cparams;
1042 cparams.colourMap = m_colourMap; 1042 cparams.colourMap = m_colourMap;
1043 cparams.scaleType = m_colourScale; 1043 cparams.scaleType = m_colourScale;
1044 cparams.gain = m_gain; 1044 cparams.gain = m_gain;