- ViewerOutput owns timeline markers/work area via refcounted OakTimeline* value handles (oaktimeline_*_create) instead of C++ objects - oaktimeline C API: add marker_list_create/marker_add/ workarea_create/workarea_set_enabled; handle boxes gain an optional deleter for owning handles - oaknode_node_get_markers/get_work_area return addref'd OakTimeline* handles via out params (named-struct forward declarations avoid the public header cycle); drop OakNodeMarkerList/OakNodeWorkArea - serializers 210528-230220 load/save markers and work areas through the oaktimeline C API; SerializedMarker POD replaces std::vector<TimelineMarker*> in the serializer interface - Sequence::add_default_nodes uses oaktimeline_add_track_command - clip.cpp display-mode enums come from the new neutral include/timeline/displaymode.h; delete src/node/transition/timeline - oakcommon xml: add oakcommon_xml_reader/writer_wrap_native borrowed wrappers (C++ adapter use) - liboaknode now has zero C++ symbol references into liboaktimeline Tests: new owning-handle and wrap_native cases; all standalone trees green (common 196, codec 22, audio 40, task 110, render 49, timeline 123, node 96, plugin 100).
52 lines
1.4 KiB
C
52 lines
1.4 KiB
C
/***
|
|
|
|
Oak Video Editor - Non-Linear Video Editor
|
|
Copyright (C) 2026 Oak Team
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
***/
|
|
|
|
#ifndef OAK_EDITOR_TIMELINE_DISPLAYMODE_H
|
|
#define OAK_EDITOR_TIMELINE_DISPLAYMODE_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Shared timeline display-mode constants.
|
|
*
|
|
* Neutral home for the enum values behind the TimelineThumbnailMode /
|
|
* TimelineWaveformMode config keys; mirrors olive::Timeline::ThumbnailMode
|
|
* / WaveformMode (src/timeline/src/timelinecommon.h) and must stay
|
|
* value-compatible with them.
|
|
*/
|
|
enum OakTimelineThumbnailMode {
|
|
OAK_TIMELINE_THUMBNAIL_OFF = 0,
|
|
OAK_TIMELINE_THUMBNAIL_IN_OUT = 1,
|
|
OAK_TIMELINE_THUMBNAIL_ON = 2
|
|
};
|
|
|
|
enum OakTimelineWaveformMode {
|
|
OAK_TIMELINE_WAVEFORMS_DISABLED = 0,
|
|
OAK_TIMELINE_WAVEFORMS_ENABLED = 1
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // OAK_EDITOR_TIMELINE_DISPLAYMODE_H
|