mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 13:46:30 +01:00
completely rethink waveform rendering (again)
There are 3 possible components to draw at each x-axis position: the waveform "line", the zero line and an outline/clip indicator. We have to decide which of the 3 to draw at each position, pixel by pixel. This makes the rendering less efficient but it is the only way I can see to do this correctly.
This commit is contained in:
parent
9dd5e2769b
commit
87cc9f7d4f
2 changed files with 132 additions and 94 deletions
|
|
@ -192,7 +192,7 @@ private:
|
|||
|
||||
void get_image (Cairo::RefPtr<Cairo::ImageSurface>& image, framepos_t start, framepos_t end, double& image_offset) const;
|
||||
|
||||
ArdourCanvas::Coord y_extent (double) const;
|
||||
ArdourCanvas::Coord y_extent (double, bool) const;
|
||||
void draw_image (Cairo::RefPtr<Cairo::ImageSurface>&, ARDOUR::PeakData*, int) const;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue