synfig-core
1.0.3
|
Synfig Tool Rendering Job List Processor Class. More...
#include <iostream>
#include <list>
#include <algorithm>
#include <errno.h>
#include <cstring>
#include <boost/filesystem.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/variables_map.hpp>
#include <boost/format.hpp>
#include <boost/chrono.hpp>
#include <autorevision.h>
#include <synfig/general.h>
#include <synfig/canvas.h>
#include <synfig/target.h>
#include <synfig/layer.h>
#include <synfig/time.h>
#include <synfig/target_scanline.h>
#include <synfig/paramdesc.h>
#include <synfig/module.h>
#include <synfig/importer.h>
#include <synfig/loadcanvas.h>
#include <synfig/savecanvas.h>
#include <synfig/filesystemnative.h>
#include "definitions.h"
#include "job.h"
#include "synfigtoolexception.h"
#include "printing_functions.h"
#include "renderprogress.h"
#include "joblistprocessor.h"
Functions | |
void | process_job_list (std::list< Job > &job_list, const TargetParam &target_params) |
Process a Job list setting up and processing each job. | |
bool | setup_job (Job &job, const TargetParam &target_parameters) |
void | process_job (Job &job) |
Process an individual job. |
Synfig Tool Rendering Job List Processor Class.
$Id$
void process_job_list | ( | std::list< Job > & | job_list, |
const TargetParam & | target_params | ||
) |
Process a Job list setting up and processing each job.
References _, process_job(), setup_job(), and SYNFIGTOOL_BORED.
Referenced by main().
bool setup_job | ( | Job & | job, |
const synfig::TargetParam & | target_parameters | ||
) |
Prepare a job to be processed
References _, Job::alpha_mode, synfig::Target::book(), Job::canvas, synfig::Target::create(), synfig::error(), synfig::Target::ext_book(), Job::filename, synfig::info(), SynfigToolGeneralOptions::instance(), Job::outfilename, Job::quality, Job::sifout, Job::target, synfig::TARGET_ALPHA_MODE_KEEP, Job::target_name, tolower, and VERBOSE_OUT.
Referenced by process_job_list().
void process_job | ( | Job & | job | ) |
Process an individual job.
References _, Job::canvas, Job::desc, Job::filename, synfig::RendDesc::get_antialias(), synfig::RendDesc::get_br(), synfig::RendDesc::get_focus(), synfig::RendDesc::get_h(), synfig::RendDesc::get_image_aspect(), synfig::RendDesc::get_pixel_aspect(), synfig::RendDesc::get_span(), synfig::RendDesc::get_tl(), synfig::RendDesc::get_w(), synfig::FileSystemNative::instance(), SynfigToolGeneralOptions::instance(), Job::outfilename, synfig::save_canvas(), SynfigToolGeneralOptions::should_print_benchmarks(), Job::sifout, SYNFIGTOOL_RENDERFAILURE, Job::target, RenderProgress::task(), and VERBOSE_OUT.
Referenced by process_job_list().