Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 21 additions & 42 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ jobs:
sudo apt-get install xorg-dev libglu1-mesa-dev mesa-common-dev mesa-utils xvfb

- name: Build
run: |
bash toucan/SuperBuild.sh Debug
run: sh toucan/sbuild-linux.sh Debug

- name: Install
run: |
cmake --build build-Debug --config Debug --target install
run: cmake --build build-Debug --config Debug --target install

- name: Tests
run: |
build-Debug/tests/toucan-test/toucan-test toucan/data
run: build-Debug/tests/toucan-test/toucan-test toucan/data

linux-package:
runs-on: ubuntu-latest
Expand All @@ -52,16 +49,13 @@ jobs:
sudo apt-get install xorg-dev libglu1-mesa-dev mesa-common-dev mesa-utils xvfb

- name: Build
run: |
bash toucan/SuperBuild.sh Release
run: sh toucan/sbuild-macos.sh

- name: Install
run: |
cmake --build build-Release --config Release --target install
run: cmake --build build-Release --config Release --target install

- name: Package
run: |
cmake --build build-Release --config Release --target package
run: cmake --build build-Release --config Release --target package

- name: Upload artifact
id: linux-package-artifact
Expand Down Expand Up @@ -92,16 +86,13 @@ jobs:
echo "DYLD_LIBRARY_PATH=$PWD/install-Debug/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV

- name: Build
run: |
bash toucan/SuperBuild.sh Debug
run: sh toucan/sbuild-macos.sh Debug

- name: Install
run: |
cmake --build build-Debug --config Debug --target install
run: cmake --build build-Debug --config Debug --target install

- name: Tests
run: |
build-Debug/tests/toucan-test/toucan-test toucan/data
run: build-Debug/tests/toucan-test/toucan-test toucan/data

macos-build:
runs-on: macos-latest
Expand All @@ -119,16 +110,13 @@ jobs:
echo "DYLD_LIBRARY_PATH=$PWD/install-Debug/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV

- name: Build
run: |
bash toucan/SuperBuild.sh Debug
run: sh toucan/sbuild-macos.sh Debug

- name: Install
run: |
cmake --build build-Debug --config Debug --target install
run: cmake --build build-Debug --config Debug --target install

- name: Tests
run: |
build-Debug/tests/toucan-test/toucan-test toucan/data
run: build-Debug/tests/toucan-test/toucan-test toucan/data

macos-package:
runs-on: macos-latest
Expand All @@ -146,16 +134,13 @@ jobs:
echo "DYLD_LIBRARY_PATH=$PWD/install-Debug/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV

- name: Build
run: |
bash toucan/SuperBuild.sh Release
run: bash toucan/sbuild-macos.sh

- name: Install
run: |
cmake --build build-Release --config Release --target install
run: cmake --build build-Release --config Release --target install

- name: Package
run: |
cmake --build build-Release --config Release --target package
run: cmake --build build-Release --config Release --target package

- name: Upload artifact
id: macos-package-artifact
Expand Down Expand Up @@ -190,18 +175,15 @@ jobs:

- name: Build
shell: cmd
run: |
toucan\SuperBuild.bat Debug
run: toucan\sbuild-win.bat Debug

- name: Install
shell: cmd
run: |
cmake --build build-Debug --config Debug --target INSTALL
run: cmake --build build-Debug --config Debug --target INSTALL

- name: Tests
shell: cmd
run: |
build-Debug\tests\toucan-test\Debug\toucan-test.exe toucan\data
run: build-Debug\tests\toucan-test\Debug\toucan-test.exe toucan\data

windows-package:
runs-on: windows-latest
Expand All @@ -222,18 +204,15 @@ jobs:

- name: Build
shell: cmd
run: |
toucan\SuperBuild.bat Release
run: toucan\sbuild-win.bat

- name: Install
shell: cmd
run: |
cmake --build build-Release --config Release --target INSTALL
run: cmake --build build-Release --config Release --target INSTALL

- name: Package
shell: cmd
run: |
cmake --build build-Release --config Release --target PACKAGE
run: cmake --build build-Release --config Release --target PACKAGE

- name: Upload artifact
id: windows-package-artifact
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ git clone https://github.com/OpenTimelineIO/toucan.git
```
Run the super build:
```
sh toucan/SuperBuild.sh Release
sh toucan/sbuild-linux.sh
```
Run the viewer application:
```
Expand All @@ -175,7 +175,7 @@ git clone https://github.com/OpenTimelineIO/toucan.git
```
Run the super build:
```
sh toucan/SuperBuild.sh Release
sh toucan/sbuild-macos.sh
```
Run the viewer application:
```
Expand All @@ -198,7 +198,7 @@ git clone https://github.com/OpenTimelineIO/toucan.git
```
Run the super build:
```
toucan\SuperBuild.bat Release
toucan\sbuild-win.bat
```
Run the viewer application:
```
Expand Down
10 changes: 0 additions & 10 deletions SuperBuild.bat

This file was deleted.

16 changes: 0 additions & 16 deletions SuperBuild.sh

This file was deleted.

8 changes: 4 additions & 4 deletions bin/toucan-filmstrip/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
namespace toucan
{
void App::_init(
const std::shared_ptr<feather_tk::Context>& context,
const std::shared_ptr<ftk::Context>& context,
std::vector<std::string>& argv)
{
_cmdLine.input = feather_tk::CmdLineValueArg<std::string>::create(
_cmdLine.input = ftk::CmdLineValueArg<std::string>::create(
"input",
"Input .otio file.");
_cmdLine.output = feather_tk::CmdLineValueArg<std::string>::create(
_cmdLine.output = ftk::CmdLineValueArg<std::string>::create(
"output",
"Output image file.");

Expand All @@ -37,7 +37,7 @@ namespace toucan
{}

std::shared_ptr<App> App::create(
const std::shared_ptr<feather_tk::Context>&context,
const std::shared_ptr<ftk::Context>&context,
std::vector<std::string>&argv)
{
auto out = std::shared_ptr<App>(new App);
Expand Down
10 changes: 5 additions & 5 deletions bin/toucan-filmstrip/App.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@

namespace toucan
{
class App : public feather_tk::IApp
class App : public ftk::IApp
{
protected:
void _init(
const std::shared_ptr<feather_tk::Context>&,
const std::shared_ptr<ftk::Context>&,
std::vector<std::string>&);

App();
Expand All @@ -27,16 +27,16 @@ namespace toucan
~App();

static std::shared_ptr<App> create(
const std::shared_ptr<feather_tk::Context>&,
const std::shared_ptr<ftk::Context>&,
std::vector<std::string>&);

void run() override;

private:
struct CmdLine
{
std::shared_ptr<feather_tk::CmdLineValueArg<std::string> > input;
std::shared_ptr<feather_tk::CmdLineValueArg<std::string> > output;
std::shared_ptr<ftk::CmdLineValueArg<std::string> > input;
std::shared_ptr<ftk::CmdLineValueArg<std::string> > output;
};
CmdLine _cmdLine;

Expand Down
2 changes: 1 addition & 1 deletion bin/toucan-filmstrip/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ int main(int argc, char** argv)
}
try
{
auto context = feather_tk::Context::create();
auto context = ftk::Context::create();
auto app = App::create(context, args);
if (0 == app->getExit())
app->run();
Expand Down
32 changes: 16 additions & 16 deletions bin/toucan-render/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ namespace toucan
}

void App::_init(
const std::shared_ptr<feather_tk::Context>& context,
const std::shared_ptr<ftk::Context>& context,
std::vector<std::string>& argv)
{
_cmdLine.input = feather_tk::CmdLineValueArg<std::string>::create(
_cmdLine.input = ftk::CmdLineValueArg<std::string>::create(
"input",
"Input .otio file.");
_cmdLine.output = feather_tk::CmdLineValueArg<std::string>::create(
_cmdLine.output = ftk::CmdLineValueArg<std::string>::create(
"output",
"Output image or movie file. Use a dash ('-') to write raw frames or y4m to stdout.");

Expand All @@ -64,37 +64,37 @@ namespace toucan
{
y4mList.push_back(spec.first);
}
_cmdLine.videoCodec = feather_tk::CmdLineValueOption<std::string>::create(
_cmdLine.videoCodec = ftk::CmdLineValueOption<std::string>::create(
std::vector<std::string>{ "-vcodec" },
"Set the video codec.",
"",
"MJPEG",
feather_tk::join(ffmpeg::getVideoCodecStrings(), ", "));
_cmdLine.printStart = feather_tk::CmdLineFlagOption::create(
ftk::join(ffmpeg::getVideoCodecStrings(), ", "));
_cmdLine.printStart = ftk::CmdLineFlagOption::create(
std::vector<std::string>{ "-print_start" },
"Print the timeline start time and exit.");
_cmdLine.printDuration = feather_tk::CmdLineFlagOption::create(
_cmdLine.printDuration = ftk::CmdLineFlagOption::create(
std::vector<std::string>{ "-print_duration" },
"Print the timeline duration and exit.");
_cmdLine.printRate = feather_tk::CmdLineFlagOption::create(
_cmdLine.printRate = ftk::CmdLineFlagOption::create(
std::vector<std::string>{ "-print_rate" },
"Print the timeline frame rate and exit.");
_cmdLine.printSize = feather_tk::CmdLineFlagOption::create(
_cmdLine.printSize = ftk::CmdLineFlagOption::create(
std::vector<std::string>{ "-print_size" },
"Print the timeline image size.");
_cmdLine.raw = feather_tk::CmdLineValueOption<std::string>::create(
_cmdLine.raw = ftk::CmdLineValueOption<std::string>::create(
std::vector<std::string>{ "-raw" },
"Raw pixel format to send to stdout.",
"",
std::optional<std::string>(),
feather_tk::join(rawList, ", "));
_cmdLine.y4m = feather_tk::CmdLineValueOption<std::string>::create(
ftk::join(rawList, ", "));
_cmdLine.y4m = ftk::CmdLineValueOption<std::string>::create(
std::vector<std::string>{ "-y4m" },
"y4m format to send to stdout.",
"",
std::optional<std::string>(),
feather_tk::join(y4mList, ", "));
_cmdLine.verbose = feather_tk::CmdLineFlagOption::create(
ftk::join(y4mList, ", "));
_cmdLine.verbose = ftk::CmdLineFlagOption::create(
std::vector<std::string>{ "-v" },
"Print verbose output.");

Expand Down Expand Up @@ -141,7 +141,7 @@ namespace toucan
}

std::shared_ptr<App> App::create(
const std::shared_ptr<feather_tk::Context>& context,
const std::shared_ptr<ftk::Context>& context,
std::vector<std::string>& argv)
{
auto out = std::shared_ptr<App>(new App);
Expand Down Expand Up @@ -320,7 +320,7 @@ namespace toucan

{
const OTIO_NS::TimeRange timeRange = _timelineWrapper->getTimeRange();
const auto r = feather_tk::toRational(timeRange.duration().rate());
const auto r = ftk::toRational(timeRange.duration().rate());
std::stringstream ss;
ss << " F" << r.first << ":" << r.second;
s = ss.str();
Expand Down
Loading
Loading