#pragma once #include "domain/Project.h" #include #include #include namespace core { enum class KeyInterpolation { Hold, Linear }; // 关键帧按 frame 排序后使用;内部会对副本排序以保证稳健。 [[nodiscard]] QPointF sampleLocation(const QVector& keys, int frame, const QPointF& fallbackOrigin, KeyInterpolation mode); [[nodiscard]] double sampleDepthScale01(const QVector& keys, int frame, double fallback01, KeyInterpolation mode); [[nodiscard]] double sampleUserScale(const QVector& keys, int frame, double fallback, KeyInterpolation mode); [[nodiscard]] QString sampleImagePath(const QVector& frames, int frame, const QString& fallbackPath); } // namespace core