![]() |
Audacity 3.2.0
|
Helper structure used to transfer the data between the data and graphics layers. More...
#include <WaveDataCache.h>
Classes | |
| struct | Summary |
| Summary calculated over the requested range. More... | |
Public Types | |
| enum class | Type { Samples , MinMaxRMS256 , MinMaxRMS64k } |
| Type of the data of the request. More... | |
Public Member Functions | |
| bool | ContainsSample (int64_t sampleIndex) const noexcept |
| Checks if sample is in the range represented by this block. More... | |
| float * | GetWritePointer (size_t floatsCount) |
| Gets a pointer to a data buffer enough to store floatsCount floats. More... | |
| void | Reset () noexcept |
Public Attributes | |
| Type | DataType { Type::Samples } |
| int64_t | FirstSample { 0 } |
| size_t | NumSamples { 0 } |
Private Member Functions | |
| Summary | GetSummary (int64_t from, size_t samplesCount, const Summary &initializer) const noexcept |
Private Attributes | |
| std::vector< float > | mData |
Friends | |
| class | WaveDataCache |
Helper structure used to transfer the data between the data and graphics layers.
Definition at line 26 of file WaveDataCache.h.
|
strong |
Type of the data of the request.
Definition at line 29 of file WaveDataCache.h.
|
noexcept |
Checks if sample is in the range represented by this block.
Definition at line 387 of file WaveDataCache.cpp.
Referenced by WaveDataCache::InitializeElement().
|
privatenoexcept |
Definition at line 439 of file WaveDataCache.cpp.
References Journal::Events::anonymous_namespace{JournalEvents.cpp}::initializer, WaveCacheSampleBlock::Summary::Max, WaveCacheSampleBlock::Summary::Min, min(), MinMaxRMS256, MinMaxRMS64k, Samples, WaveCacheSampleBlock::Summary::SamplesCount, WaveCacheSampleBlock::Summary::SquaresSum, and WaveCacheSampleBlock::Summary::SumItemsCount.
Referenced by WaveDataCache::InitializeElement().
| float * WaveCacheSampleBlock::GetWritePointer | ( | size_t | floatsCount | ) |
Gets a pointer to a data buffer enough to store floatsCount floats.
Definition at line 393 of file WaveDataCache.cpp.
References mData.
Referenced by anonymous_namespace{WaveDataCache.cpp}::AppendBufferHelper::FillBlocksFromAppendBuffer().
|
noexcept |
Definition at line 399 of file WaveDataCache.cpp.
References FirstSample, and NumSamples.
Referenced by WaveDataCache::InitializeElement().
|
friend |
Definition at line 76 of file WaveDataCache.h.
| Type WaveCacheSampleBlock::DataType { Type::Samples } |
Definition at line 58 of file WaveDataCache.h.
Referenced by WaveDataCache::InitializeElement().
| int64_t WaveCacheSampleBlock::FirstSample { 0 } |
Definition at line 59 of file WaveDataCache.h.
Referenced by Reset().
|
private |
Definition at line 74 of file WaveDataCache.h.
Referenced by GetWritePointer().
| size_t WaveCacheSampleBlock::NumSamples { 0 } |
Definition at line 60 of file WaveDataCache.h.
Referenced by Reset().