39class WaveformRenderer {
43 bool renderFullScreen(
Sample* sample, uint64_t xScroll, uint64_t xZoom,
45 SampleRecorder* recorder =
nullptr, std::optional<RGB> rgb = std::nullopt,
46 bool reversed =
false, int32_t xEnd = kDisplayWidth);
56 void renderOneCol(
Sample* sample, int32_t xDisplay,
RGB thisImage[][kDisplayWidth + kSideBarWidth],
57 WaveformRenderData* data,
bool reversed =
false, std::optional<RGB> rgb = std::nullopt);
58 void renderOneColForCollapseAnimation(int32_t xDisplay, int32_t xDisplayOutput, int32_t maxPeakFromZero,
59 int32_t progress,
RGB thisImage[][kDisplayWidth + kSideBarWidth],
61 int32_t valueCentrePoint, int32_t valueSpan);
62 void renderOneColForCollapseAnimationZoomedOut(int32_t xDisplayWaveformLeftEdge, int32_t xDisplayWaveformRightEdge,
63 int32_t xDisplayOutput, int32_t maxPeakFromZero, int32_t progress,
64 RGB thisImage[][kDisplayWidth + kSideBarWidth],
66 int32_t valueCentrePoint, int32_t valueSpan);
86 SampleRecorder* recorder =
nullptr, int32_t xStart = 0, int32_t xEnd = kDisplayWidth,
87 bool wait_for_card =
true);
101 int8_t collapseAnimationToWhichRow;
118 etl::vector<PendingLoad, kMaxPendingLoads> pending_loads_;
132 int32_t getColBrightnessForSingleRow(int32_t xDisplay, int32_t maxPeakFromZero,
WaveformRenderData* data);
133 void getColBarPositions(int32_t xDisplay,
WaveformRenderData* data, int32_t* min24, int32_t* max24,
134 int32_t valueCentrePoint, int32_t valueSpan);
135 void drawColBar(int32_t xDisplay, int32_t min24, int32_t max24,
RGB thisImage[][kDisplayWidth + kSideBarWidth],
136 int32_t brightness = 128, std::optional<RGB> rgb = std::nullopt);
137 void renderOneColForCollapseAnimationInterpolation(int32_t xDisplayOutput, int32_t min24, int32_t max24,
138 int32_t singleSquareBrightness, int32_t progress,
139 RGB thisImage[][kDisplayWidth + kSideBarWidth],
140 std::optional<RGB> rgb);