载入中...
搜索中...
未找到
EditorDialoguePreview.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6
7#include <string>
8#include <vector>
9
10namespace eve::editor {
11
14 std::string lineId;
15 std::string locale;
16 std::string speaker;
17 std::string text;
19 double viewportWidth = 0.0;
20 double viewportHeight = 0.0;
21 double safeMarginX = 0.05;
22 double safeMarginY = 0.05;
24 int maximumLines = 3;
25 double minimumDuration = 1.0;
26 double charactersPerSecond = 15.0;
27 double voiceDuration = 0.0;
28};
29
32 double time = 0.0;
33 double amplitude = 0.0;
34};
35
38 EditorStatus status = EditorStatus::Failed;
39 std::string lineId;
41 double safeX = 0.0, safeY = 0.0, safeWidth = 0.0, safeHeight = 0.0;
43 std::vector<std::string> lines;
44 std::vector<DialogueLipEnvelopePoint> lipEnvelope;
45 std::vector<EditorDiagnostic> diagnostics;
46};
47
55
56} // namespace eve::editor
Compatibility include for audio waveform analysis.
#define EVENGINE_API_EDITORS
Definition Export.h:112
const GltfImportRequest & request
Renderer-neutral subtitle layout and waveform-derived lip envelope service.
eve::editing::Revision Revision
StatusCode
Stable outcome category for an operation.
Definition Status.h:27
Revision-tagged waveform and loop-preview diagnostics.
Normalized amplitude point suitable for mouth-shape/lip-sync preview.
Safe-area subtitle layout and voice/readability diagnostics.
std::vector< DialogueLipEnvelopePoint > lipEnvelope
std::vector< EditorDiagnostic > diagnostics
Immutable subtitle preview request for one localized dialogue line.