/* === S Y N F I G ========================================================= */ /*! \file tool/main.cpp ** \brief SYNFIG Tool ** ** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** Copyright (c) 2007, 2008 Chris Moore ** Copyright (c) 2009-2010 Diego Barrios ** ** This package 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 2 of ** the License, or (at your option) any later version. ** ** This package 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. ** \endlegal */ /* ========================================================================= */ /* === H E A D E R S ======================================================= */ #ifdef USING_PCH # include "pch.h" #else #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "definitions.h" #include "progress.h" #include "renderprogress.h" #include "job.h" #endif using namespace std; using namespace etl; using namespace synfig; /* === G L O B A L S ======================================================= */ const char *progname; int verbosity=0; bool be_quiet=false; bool print_benchmarks=false; //! Allowed video codecs /*! \warning This variable is linked to allowed_video_codecs_description, * if you change this you must change the other acordingly. * \warning These codecs are linked to the filename extensions for * mod_ffmpeg. If you change this you must change the others acordingly. */ const char* allowed_video_codecs[] = { "flv", "h263p", "huffyuv", "libtheora", "libx264", "mjpeg", "mpeg1video", "mpeg2video", "mpeg4", "msmpeg4", "msmpeg4v1", "msmpeg4v2", "wmv1", "wmv2", NULL }; //! Allowed video codecs description. /*! \warning This variable is linked to allowed_video_codecs, * if you change this you must change the other acordingly. */ const char* allowed_video_codecs_description[] = { "Flash Video (FLV) / Sorenson Spark / Sorenson H.263.", "H.263+ / H.263-1998 / H.263 version 2.", "Huffyuv / HuffYUV.", "libtheora Theora.", "libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10.", "MJPEG (Motion JPEG).", "raw MPEG-1 video.", "raw MPEG-2 video.", "MPEG-4 part 2. (XviD/DivX)", "MPEG-4 part 2 Microsoft variant version 3.", "MPEG-4 part 2 Microsoft variant version 1.", "MPEG-4 part 2 Microsoft variant version 2.", "Windows Media Video 7.", "Windows Media Video 8.", NULL }; /* === T Y P E D E F S ===================================================== */ typedef list arg_list_t; typedef list job_list_t; /* === M E T H O D S ======================================================= */ void guid_test() { cout<<"GUID Test"< sig; sigc::connection conn; cout<<"Signal Test"<", _("Specify output target (Default:unknown)")); display_help_option("-w", "", _("Set the image width (Use zero for file default)")); display_help_option("-h", "", _("Set the image height (Use zero for file default)")); display_help_option("-s", "", _("Set the diagonal size of image window (Span)")); display_help_option("-a", "<1...30>", _("Set antialias amount for parametric renderer.")); display_help_option("-Q", "<0...10>", strprintf(_("Specify image quality for accelerated renderer (default=%d)"), DEFAULT_QUALITY).c_str()); display_help_option("-g", "", _("Gamma (default=2.2)")); display_help_option("-v", NULL, _("Verbose Output (add more for more verbosity)")); display_help_option("-q", NULL, _("Quiet mode (No progress/time-remaining display)")); display_help_option("-c", "", _("Render the canvas with the given id instead of the root.")); display_help_option("-o", "", _("Specify output filename")); display_help_option("-T", "<# of threads>", _("Enable multithreaded renderer using specified # of threads")); display_help_option("-b", NULL, _("Print Benchmarks")); display_help_option("--fps", "", _("Set the frame rate")); display_help_option("--time", "