Ardour  9.0-pre0-582-g084a23a80d
export_analysis_graphs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2021 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #include <cairomm/surface.h>
20 #include <pangomm.h>
21 
22 #include "ardour/export_analysis.h"
23 #include "ardour/types.h"
24 
25 namespace ArdourGraphs {
26 
27 Cairo::RefPtr<Cairo::ImageSurface>
28 draw_waveform (Glib::RefPtr<Pango::Context>, ARDOUR::ExportAnalysisPtr, uint32_t channel, int height_2, int margin_left, bool logscale, bool rectified);
29 
30 Cairo::RefPtr<Cairo::ImageSurface>
31 draw_spectrum (Glib::RefPtr<Pango::Context>, ARDOUR::ExportAnalysisPtr, int height, int width);
32 
33 Cairo::RefPtr<Cairo::ImageSurface>
34 spectrum_legend (Glib::RefPtr<Pango::Context>, int height, int margin_right);
35 
36 Cairo::RefPtr<Cairo::ImageSurface>
37 loudness_histogram (Glib::RefPtr<Pango::Context>, ARDOUR::ExportAnalysisPtr, int height, int width = 540);
38 
39 Cairo::RefPtr<Cairo::ImageSurface>
40 time_axis (Glib::RefPtr<Pango::Context>, int width, int margin_left, ARDOUR::samplepos_t start, ARDOUR::samplecnt_t len, ARDOUR::samplecnt_t rate);
41 
42 Cairo::RefPtr<Cairo::ImageSurface>
43 plot_loudness (Glib::RefPtr<Pango::Context>, ARDOUR::ExportAnalysisPtr, int height, int margin_left, ARDOUR::samplecnt_t rate);
44 
45 }; // namespace ArdourGraphs
PBD::PropertyDescriptor< timepos_t > start
std::shared_ptr< ExportAnalysis > ExportAnalysisPtr
Temporal::samplecnt_t samplecnt_t
Temporal::samplepos_t samplepos_t
Cairo::RefPtr< Cairo::ImageSurface > spectrum_legend(Glib::RefPtr< Pango::Context >, int height, int margin_right)
Cairo::RefPtr< Cairo::ImageSurface > loudness_histogram(Glib::RefPtr< Pango::Context >, ARDOUR::ExportAnalysisPtr, int height, int width=540)
Cairo::RefPtr< Cairo::ImageSurface > time_axis(Glib::RefPtr< Pango::Context >, int width, int margin_left, ARDOUR::samplepos_t start, ARDOUR::samplecnt_t len, ARDOUR::samplecnt_t rate)
Cairo::RefPtr< Cairo::ImageSurface > draw_spectrum(Glib::RefPtr< Pango::Context >, ARDOUR::ExportAnalysisPtr, int height, int width)
Cairo::RefPtr< Cairo::ImageSurface > plot_loudness(Glib::RefPtr< Pango::Context >, ARDOUR::ExportAnalysisPtr, int height, int margin_left, ARDOUR::samplecnt_t rate)
Cairo::RefPtr< Cairo::ImageSurface > draw_waveform(Glib::RefPtr< Pango::Context >, ARDOUR::ExportAnalysisPtr, uint32_t channel, int height_2, int margin_left, bool logscale, bool rectified)
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1