class DiskSpaceEstimator {
public:
- typedef std::function<void(off_t free_bytes, double estimated_seconds_left)> callback_t;
+ typedef std::function<void(off_t free_bytes, double estimated_seconds_left, double file_length_seconds)> callback_t;
DiskSpaceEstimator(callback_t callback);
// Report that a video frame with the given pts and size has just been
};
std::deque<MeasurePoint> measure_points;
uint64_t last_pts_reported = 0;
+ uint64_t first_pts_this_file = 0;
off_t total_size = 0; // For report_write().
std::string last_filename; // For report_append().