77#include < toucanRender/Read.h>
88#include < toucanRender/Util.h>
99
10- #include < dtk /core/CmdLine.h>
11- #include < dtk /core/Time.h>
10+ #include < feather-tk /core/CmdLine.h>
11+ #include < feather-tk /core/Time.h>
1212
1313#include < OpenImageIO/imagebufalgo.h>
1414
@@ -45,21 +45,21 @@ namespace toucan
4545 }
4646
4747 void App::_init (
48- const std::shared_ptr<dtk ::Context>& context,
48+ const std::shared_ptr<feather_tk ::Context>& context,
4949 std::vector<std::string>& argv)
5050 {
51- std::vector<std::shared_ptr<dtk ::ICmdLineArg> > args;
52- args.push_back (dtk ::CmdLineValueArg<std::string>::create (
51+ std::vector<std::shared_ptr<feather_tk ::ICmdLineArg> > args;
52+ args.push_back (feather_tk ::CmdLineValueArg<std::string>::create (
5353 _args.input ,
5454 " input" ,
5555 " Input .otio file." ));
56- auto outArg = dtk ::CmdLineValueArg<std::string>::create (
56+ auto outArg = feather_tk ::CmdLineValueArg<std::string>::create (
5757 _args.output ,
5858 " output" ,
5959 " Output image or movie file. Use a dash ('-') to write raw frames or y4m to stdout." );
6060 args.push_back (outArg);
6161
62- std::vector<std::shared_ptr<dtk ::ICmdLineOption> > options;
62+ std::vector<std::shared_ptr<feather_tk ::ICmdLineOption> > options;
6363 std::vector<std::string> rawList;
6464 for (const auto & spec : rawSpecs)
6565 {
@@ -70,41 +70,41 @@ namespace toucan
7070 {
7171 y4mList.push_back (spec.first );
7272 }
73- options.push_back (dtk ::CmdLineValueOption<std::string>::create (
73+ options.push_back (feather_tk ::CmdLineValueOption<std::string>::create (
7474 _options.videoCodec ,
7575 std::vector<std::string>{ " -vcodec" },
7676 " Set the video codec." ,
7777 _options.videoCodec ,
78- dtk ::join (ffmpeg::getVideoCodecStrings (), " , " )));
79- options.push_back (dtk ::CmdLineFlagOption::create (
78+ feather_tk ::join (ffmpeg::getVideoCodecStrings (), " , " )));
79+ options.push_back (feather_tk ::CmdLineFlagOption::create (
8080 _options.printStart ,
8181 std::vector<std::string>{ " -print_start" },
8282 " Print the timeline start time and exit." ));
83- options.push_back (dtk ::CmdLineFlagOption::create (
83+ options.push_back (feather_tk ::CmdLineFlagOption::create (
8484 _options.printDuration ,
8585 std::vector<std::string>{ " -print_duration" },
8686 " Print the timeline duration and exit." ));
87- options.push_back (dtk ::CmdLineFlagOption::create (
87+ options.push_back (feather_tk ::CmdLineFlagOption::create (
8888 _options.printRate ,
8989 std::vector<std::string>{ " -print_rate" },
9090 " Print the timeline frame rate and exit." ));
91- options.push_back (dtk ::CmdLineFlagOption::create (
91+ options.push_back (feather_tk ::CmdLineFlagOption::create (
9292 _options.printSize ,
9393 std::vector<std::string>{ " -print_size" },
9494 " Print the timeline image size." ));
95- options.push_back (dtk ::CmdLineValueOption<std::string>::create (
95+ options.push_back (feather_tk ::CmdLineValueOption<std::string>::create (
9696 _options.raw ,
9797 std::vector<std::string>{ " -raw" },
9898 " Raw pixel format to send to stdout." ,
9999 _options.raw ,
100- dtk ::join (rawList, " , " )));
101- options.push_back (dtk ::CmdLineValueOption<std::string>::create (
100+ feather_tk ::join (rawList, " , " )));
101+ options.push_back (feather_tk ::CmdLineValueOption<std::string>::create (
102102 _options.y4m ,
103103 std::vector<std::string>{ " -y4m" },
104104 " y4m format to send to stdout." ,
105105 _options.y4m ,
106- dtk ::join (y4mList, " , " )));
107- options.push_back (dtk ::CmdLineFlagOption::create (
106+ feather_tk ::join (y4mList, " , " )));
107+ options.push_back (feather_tk ::CmdLineFlagOption::create (
108108 _options.verbose ,
109109 std::vector<std::string>{ " -v" },
110110 " Print verbose output." ));
@@ -144,7 +144,7 @@ namespace toucan
144144 }
145145
146146 std::shared_ptr<App> App::create (
147- const std::shared_ptr<dtk ::Context>& context,
147+ const std::shared_ptr<feather_tk ::Context>& context,
148148 std::vector<std::string>& argv)
149149 {
150150 auto out = std::shared_ptr<App>(new App);
@@ -320,7 +320,7 @@ namespace toucan
320320
321321 {
322322 const OTIO_NS::TimeRange timeRange = _timelineWrapper->getTimeRange ();
323- const auto r = dtk ::toRational (timeRange.duration ().rate ());
323+ const auto r = feather_tk ::toRational (timeRange.duration ().rate ());
324324 std::stringstream ss;
325325 ss << " F" << r.first << " :" << r.second ;
326326 s = ss.str ();
0 commit comments