comparison foosdk/sdk/foobar2000/helpers/dynamic_bitrate_helper.h @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
comparison
equal deleted inserted replaced
0:e9bb126753e7 1:20d02a178406
1 #pragma once
2
3 class dynamic_bitrate_helper
4 {
5 public:
6 dynamic_bitrate_helper();
7 void on_frame(double p_duration,t_size p_bits);
8 bool on_update(file_info & p_out, double & p_timestamp_delta);
9 void reset();
10 private:
11 void init();
12 double m_last_duration;
13 t_size m_update_bits;
14 double m_update_time;
15 double m_update_interval;
16 bool m_inited, m_enabled;
17 };