mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
Merge remote-tracking branch 'origin/beta'
This commit is contained in:
@@ -33,7 +33,7 @@ If not already installed, install the builder and the flathub repository:
|
|||||||
Install the runtime environments:
|
Install the runtime environments:
|
||||||
|
|
||||||
flatpak install org.freedesktop.Sdk/x86_64/25.08
|
flatpak install org.freedesktop.Sdk/x86_64/25.08
|
||||||
flatpak install org.freedesktop.Platform/25.08
|
flatpak install org.freedesktop.Platform/x86_64/25.08
|
||||||
|
|
||||||
|
|
||||||
### 2. Build vimix flatpak
|
### 2. Build vimix flatpak
|
||||||
|
|||||||
@@ -432,8 +432,14 @@ void ImGuiVisitor::visit (Source& s)
|
|||||||
}
|
}
|
||||||
// centered image
|
// centered image
|
||||||
if (s.ready()) {
|
if (s.ready()) {
|
||||||
ImGui::SetCursorPos( ImVec2(pos.x + 0.5f * (preview_width-width), pos.y + 0.5f * (preview_height-height-space)) );
|
ImVec2 dpos = ImVec2(pos.x + 0.5f * (preview_width-width), pos.y + 0.5f * (preview_height-height-space));
|
||||||
|
ImGui::SetCursorPos( dpos );
|
||||||
ImGui::Image((void*)(uintptr_t) s.frame()->texture(), ImVec2(width, height));
|
ImGui::Image((void*)(uintptr_t) s.frame()->texture(), ImVec2(width, height));
|
||||||
|
if (ImGui::IsItemHovered()) {
|
||||||
|
ImGui::SetCursorPos( dpos );
|
||||||
|
ImGui::Image((void*)(uintptr_t) s.texture(), ImVec2(width, height));
|
||||||
|
ImGuiToolkit::ToolTip("Source original image");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ImGuiToolkit::PushFont(ImGuiToolkit::FONT_LARGE);
|
ImGuiToolkit::PushFont(ImGuiToolkit::FONT_LARGE);
|
||||||
ImGui::SetCursorPos(
|
ImGui::SetCursorPos(
|
||||||
|
|||||||
@@ -1145,6 +1145,7 @@ void SessionLoader::visit (Source& s)
|
|||||||
|
|
||||||
void SessionLoader::visit (MediaSource& s)
|
void SessionLoader::visit (MediaSource& s)
|
||||||
{
|
{
|
||||||
|
bool freshload = false;
|
||||||
// set uri
|
// set uri
|
||||||
XMLElement* pathNode = xmlCurrent_->FirstChildElement("uri"); // TODO change to "path" but keep backward compatibility
|
XMLElement* pathNode = xmlCurrent_->FirstChildElement("uri"); // TODO change to "path" but keep backward compatibility
|
||||||
if (pathNode) {
|
if (pathNode) {
|
||||||
@@ -1162,6 +1163,7 @@ void SessionLoader::visit (MediaSource& s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
s.setPath(path);
|
s.setPath(path);
|
||||||
|
freshload = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ensures the source is initialized even if no valid path is given
|
// ensures the source is initialized even if no valid path is given
|
||||||
@@ -1178,7 +1180,8 @@ void SessionLoader::visit (MediaSource& s)
|
|||||||
s.mediaplayer()->setRate(1.0);
|
s.mediaplayer()->setRate(1.0);
|
||||||
// add a callback to activate source play speed and rewind
|
// add a callback to activate source play speed and rewind
|
||||||
s.call( new PlaySpeed( r ) );
|
s.call( new PlaySpeed( r ) );
|
||||||
s.call( new RePlay( ) );
|
if (freshload)
|
||||||
|
s.call( new RePlay( ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void SessionLoader::visit (SessionFileSource& s)
|
void SessionLoader::visit (SessionFileSource& s)
|
||||||
|
|||||||
@@ -471,7 +471,8 @@ void SourceControlWindow::Render()
|
|||||||
mediaplayer_active_->timeline()->clearFading();
|
mediaplayer_active_->timeline()->clearFading();
|
||||||
mediaplayer_active_->timeline()->clearGaps();
|
mediaplayer_active_->timeline()->clearGaps();
|
||||||
mediaplayer_active_->timeline()->clearFlags();
|
mediaplayer_active_->timeline()->clearFlags();
|
||||||
mediaplayer_active_->setVideoEffect("");
|
if (!mediaplayer_active_->videoEffect().empty() && mediaplayer_active_->videoEffectAvailable())
|
||||||
|
mediaplayer_active_->setVideoEffect("");
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
oss << SystemToolkit::base_filename( mediaplayer_active_->filename() );
|
oss << SystemToolkit::base_filename( mediaplayer_active_->filename() );
|
||||||
oss << ": Reset timeline";
|
oss << ": Reset timeline";
|
||||||
|
|||||||
Reference in New Issue
Block a user