]> git.sesse.net Git - nageru/blobdiff - vu_common.h
Support audio-only FFmpeg inputs. Somewhat wonky, though.
[nageru] / vu_common.h
index aa577214b191287b0c0d032a335d005c63bf8fe6..602de8b8c59452a3cc743e0b41798d9e03e5090c 100644 (file)
@@ -1,12 +1,10 @@
 #ifndef _VU_COMMON_H
 #define _VU_COMMON_H 1
 
-#include <QPainter>
+class QPainter;
 
-int lufs_to_pos(float level_lu, int height);
+double lufs_to_pos(float level_lu, int height, float min_level, float max_level);
 
-// TODO: Now that we precalculate these as pixmaps, perhaps we don't need the
-// high/low range anymore, just a yes/no.
-void draw_vu_meter(QPainter &painter, float range_low_lu, float range_high_lu, int width, int height, int margin);
+void draw_vu_meter(QPainter &painter, int width, int height, int horizontal_margin, double segment_margin, bool is_on, float min_level, float max_level, bool flip, int y_offset = 0);
 
 #endif // !defined(_VU_COMMON_H)