Skip to content

Commit 457b232

Browse files
committed
Sync to DNEG internal
1 parent 4ddc9df commit 457b232

File tree

23 files changed

+172
-43
lines changed

23 files changed

+172
-43
lines changed

include/xstudio/media_reader/image_buffer.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ namespace media_reader {
150150
return false;
151151
}
152152

153+
if (bookmarks_ != o.bookmarks_) {
154+
return false;
155+
}
156+
153157
return true;
154158
}
155159

share/preference/core_playhead.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
{
22
"core": {
33
"playhead":{
4+
"remote_desktop_optimisation": {
5+
"path": "/core/playhead/remote_desktop_optimisation",
6+
"default_value": false,
7+
"description": "Reduce UI updates whilst playing.",
8+
"value": false,
9+
"datatype": "bool",
10+
"category": "Playback",
11+
"context": ["APPLICATION"]
12+
},
13+
"remote_desktop_optimisation_delay": {
14+
"path": "/core/playhead/remote_desktop_optimisation_delay",
15+
"default_value": 250,
16+
"description": "UI refresh delay.",
17+
"value": 500,
18+
"datatype": "int",
19+
"context": ["APPLICATION"]
20+
},
421
"read_ahead": {
522
"path": "/core/playhead/read_ahead",
623
"default_value": 128,

src/launch/xstudio/src/CMakeLists.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
project(xstudio VERSION ${XSTUDIO_GLOBAL_VERSION} LANGUAGES CXX)
22

3+
4+
find_package(OpenGL REQUIRED)
5+
find_package(GLEW REQUIRED)
6+
find_package(Qt5 COMPONENTS Core Quick Gui Widgets OpenGL QuickCompiler REQUIRED)
7+
find_package(OpenSSL)
8+
find_package(ZLIB)
9+
find_package(fmt REQUIRED)
10+
11+
qtquick_compiler_add_resources(QML_RESOURCES ../../../../ui/qml/xstudio/qml.qrc)
312
set(SOURCES
413
xstudio.cpp
5-
../../../../ui/qml/xstudio/qml.qrc
6-
)
14+
${QML_RESOURCES}
15+
)
716

817
if(WIN32)
918
# Add the /bigobj option for xstudio.cpp
1019
set_source_files_properties(xstudio.cpp PROPERTIES COMPILE_FLAGS "/bigobj")
1120
endif()
1221

13-
find_package(OpenGL REQUIRED)
14-
find_package(GLEW REQUIRED)
15-
find_package(Qt5 COMPONENTS Core Quick Gui Widgets OpenGL REQUIRED)
16-
find_package(OpenSSL)
17-
find_package(ZLIB)
18-
find_package(fmt REQUIRED)
19-
2022
if(NOT ${OTIO_SUBMODULE})
2123
find_package(OpenTime REQUIRED)
2224
find_package(OpenTimelineIO REQUIRED)
2325
endif()
2426

2527
set(CMAKE_AUTOUIC ON)
2628
set(CMAKE_AUTOMOC ON)
27-
set(CMAKE_AUTORCC ON)
2829

2930
add_executable(${PROJECT_NAME} ${SOURCES})
3031

src/playhead/src/playhead_actor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3357,7 +3357,7 @@ void PlayheadActor::step_to_next_media(const bool forwards) {
33573357

33583358
auto playlist_selection = caf::actor_cast<caf::actor>(playlist_selection_addr_);
33593359
if (playlist_selection) {
3360-
anon_send(playlist_selection, playhead::select_next_media_atom_v, 1);
3360+
anon_send(playlist_selection, playhead::select_next_media_atom_v, forwards ? 1 : -1);
33613361
}
33623362

33633363
} else {

src/plugin/data_source/dneg/shotbrowser/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ target_link_libraries(${PROJECT_NAME}
4444
PUBLIC
4545
xstudio::module
4646
xstudio::plugin_manager
47+
xstudio::playlist
4748
xstudio::ui::qml::helper
4849
xstudio::shotgun_client
4950
Qt5::Widgets

src/plugin/data_source/dneg/shotbrowser/src/preset_model_ui.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -873,16 +873,6 @@ QFuture<QString> ShotBrowserPresetModel::restorePresetsFuture(const QUrl &qpath)
873873
});
874874
}
875875

876-
nlohmann::json JSONTreeModel::modelData() const {
877-
// build json from tree..
878-
return tree_to_json(data_, children_);
879-
}
880-
881-
nlohmann::json JSONTreeModel::indexToFullData(const QModelIndex &index, const int depth) const {
882-
return tree_to_json(*indexToTree(index), children_, depth);
883-
}
884-
885-
886876
void ShotBrowserPresetFilterModel::setShowHidden(const bool value) {
887877
if (value != show_hidden_) {
888878
show_hidden_ = value;

src/plugin/data_source/dneg/shotbrowser/src/qml/ShotBrowser.1/ShotBrowserHelpers.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ function revealMediaInIvy(indexes=[]) {
9797
for(let i = 0; i< indexes.length; i++) {
9898
let mindex = indexes[i]
9999
Future.promise(
100-
mindex.model.getJSONFuture(mindex, "/metadata/shotgun/version/attributes/sg_ivy_dnuuid")
101-
).then(function(json_string) {
102-
json_string = json_string.replace(/^"|"$/g, '')
103-
helpers.startDetachedProcess("dnenv-do", [helpers.getEnv("SHOW"), helpers.getEnv("SHOT"), "--", "ivybrowser", json_string])
100+
mindex.model.getJSONObjectFuture(mindex, "/metadata/shotgun/version")
101+
).then(function(json_obj) {
102+
let uuid = json_obj.attributes.sg_ivy_dnuuid
103+
let job = json_obj.relationships.project.data.name
104+
let shot = json_obj.relationships.entity.data.name
105+
helpers.startDetachedProcess("dnenv-do", [job, shot, "--", "ivybrowser", "--no-prefs", uuid])
104106
})
105107
}
106108
}
@@ -126,7 +128,7 @@ function revealInIvy(indexes=[]) {
126128
}
127129
}
128130
if(uuids.length)
129-
helpers.startDetachedProcess("dnenv-do", [project, shot, "--", "ivybrowser"].concat(uuids))
131+
helpers.startDetachedProcess("dnenv-do", [project, shot, "--", "ivybrowser", "--no-prefs"].concat(uuids))
130132
}
131133
}
132134

src/plugin/data_source/dneg/shotbrowser/src/qml/ShotBrowser.1/shot_browser/left_sections/viewItems/XsSBPresetEditPopup.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ XsWindow{
3737

3838
onPresetIndexChanged: {
3939
if(presetIndex.valid) {
40+
presetTermModel.model = null
41+
presetTermModel.model = ShotBrowserEngine.presetsModel
4042
presetTermModel.rootIndex = presetIndex
4143
presetList.model.newTermParent = presetIndex
4244
}

src/plugin/media_hook/dneg/dnhook/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ find_package(OpenColorIO CONFIG)
33
SET(LINK_DEPS
44
xstudio::media_hook
55
xstudio::utility
6+
xstudio::module
67
OpenColorIO::OpenColorIO
78
)
89

src/plugin/media_hook/dneg/dnhook/src/dneg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class DNegMediaHook : public MediaHook {
403403
static const std::regex review_regex(".+\\.review[0-9]\\.mov$");
404404
static const std::regex internal_regex(".+\\.dneg.mov$");
405405

406-
const std::string ext = utility::to_lower(fs::path(path).extension());
406+
const std::string ext = utility::to_lower(fs::path(path).extension().string());
407407
static const std::set<std::string> linear_ext{".exr", ".sxr", ".mxr", ".movieproc"};
408408
static const std::set<std::string> log_ext{".cin", ".dpx"};
409409
static const std::set<std::string> stills_ext{

0 commit comments

Comments
 (0)