change: change code style to Linux style except indent.

This commit is contained in:
Mike Solar
2025-08-03 03:09:40 +08:00
parent 65ab76edc8
commit 74f73ab3be
789 changed files with 77113 additions and 68888 deletions
+30 -26
View File
@@ -25,45 +25,49 @@
#include "common/jobtime.h"
namespace olive {
namespace olive
{
using namespace core;
class RenderJobTracker
{
class RenderJobTracker {
public:
RenderJobTracker() = default;
RenderJobTracker() = default;
void insert(const TimeRange &range, JobTime job_time);
void insert(const TimeRangeList &ranges, JobTime job_time);
void insert(const TimeRange &range, JobTime job_time);
void insert(const TimeRangeList &ranges, JobTime job_time);
void clear();
void clear();
bool isCurrent(const rational &time, JobTime job_time) const;
bool isCurrent(const rational &time, JobTime job_time) const;
TimeRangeList getCurrentSubRanges(const TimeRange &range, const JobTime &job_time) const;
TimeRangeList getCurrentSubRanges(const TimeRange &range,
const JobTime &job_time) const;
private:
class TimeRangeWithJob : public TimeRange
{
public:
TimeRangeWithJob() = default;
TimeRangeWithJob(const TimeRange &range, const JobTime &job_time)
{
set_range(range.in(), range.out());
job_time_ = job_time;
}
class TimeRangeWithJob : public TimeRange {
public:
TimeRangeWithJob() = default;
TimeRangeWithJob(const TimeRange &range, const JobTime &job_time)
{
set_range(range.in(), range.out());
job_time_ = job_time;
}
JobTime GetJobTime() const {return job_time_;}
void SetJobTime(JobTime jt) {job_time_ = jt;}
JobTime GetJobTime() const
{
return job_time_;
}
void SetJobTime(JobTime jt)
{
job_time_ = jt;
}
private:
JobTime job_time_;
};
std::vector<TimeRangeWithJob> jobs_;
private:
JobTime job_time_;
};
std::vector<TimeRangeWithJob> jobs_;
};
}