<< "time_base=1/1:"
<< "pixel_aspect=1/1";
- int r;
-
- if ((r = avfilter_graph_create_filter (&_buffer_src_context, buffer_src, "in", a.str().c_str(), 0, graph)) < 0) {
+ if (avfilter_graph_create_filter (&_buffer_src_context, buffer_src, "in", a.str().c_str(), 0, graph) < 0) {
throw DecodeError (N_("could not create buffer source"));
}
return j;
}
-void
-JobManager::add_after (shared_ptr<Job> after, shared_ptr<Job> j)
-{
- boost::mutex::scoped_lock lm (_mutex);
- list<shared_ptr<Job> >::iterator i = find (_jobs.begin(), _jobs.end(), after);
- assert (i != _jobs.end ());
- ++i;
- _jobs.insert (i, j);
-}
-
list<shared_ptr<Job> >
JobManager::get () const
{
public:
boost::shared_ptr<Job> add (boost::shared_ptr<Job>);
- void add_after (boost::shared_ptr<Job> after, boost::shared_ptr<Job> j);
std::list<boost::shared_ptr<Job> > get () const;
bool work_to_do () const;
bool errors () const;
return hms.str ();
}
-string
-time_to_hms (Time t)
-{
- return seconds_to_hms (t / TIME_HZ);
-}
-
/** @param s Number of seconds.
* @return String containing an approximate description of s (e.g. "about 2 hours")
*/
stacktrace (ostream& out, int levels)
{
void *array[200];
- size_t size;
- char **strings;
- size_t i;
-
- size = backtrace (array, 200);
- strings = backtrace_symbols (array, size);
+ size_t size = backtrace (array, 200);
+ char** strings = backtrace_symbols (array, size);
if (strings) {
- for (i = 0; i < size && (levels == 0 || i < size_t(levels)); i++) {
+ for (size_t i = 0; i < size && (levels == 0 || i < size_t(levels)); i++) {
out << N_(" ") << demangle (strings[i]) << "\n";
}
return a - (a % t);
}
-int
-stride_lookup (int c, int const * stride)
-{
- return stride[c];
-}
-
/** Read a sequence of key / value pairs from a text stream;
* the keys are the first words on the line, and the values are
* the remainder of the line following the key. Lines beginning
class Film;
extern std::string seconds_to_hms (int);
-extern std::string time_to_hms (Time);
extern std::string seconds_to_approximate_hms (int);
extern void stacktrace (std::ostream &, int);
extern std::string dependency_version_summary ();
extern int dcp_audio_frame_rate (int);
extern int stride_round_up (int, int const *, int);
-extern int stride_lookup (int c, int const * stride);
extern std::multimap<std::string, std::string> read_key_value (std::istream& s);
extern int get_required_int (std::multimap<std::string, std::string> const & kv, std::string k);
extern float get_required_float (std::multimap<std::string, std::string> const & kv, std::string k);
return s.str ();
}
-void
-VideoContent::set_crop (Crop c)
-{
- {
- boost::mutex::scoped_lock lm (_mutex);
- _crop = c;
- }
- signal_changed (VideoContentProperty::VIDEO_CROP);
-}
-
void
VideoContent::set_left_crop (int c)
{
return _video_frame_rate;
}
- void set_crop (Crop);
void set_left_crop (int);
void set_right_crop (int);
void set_top_crop (int);
return _dialog->ShowModal ();
}
-private:
+private:
+ /* Not defined */
+ FilmChangedDialog (FilmChangedDialog const &);
+
wxMessageDialog* _dialog;
};
m->Append (help, _("&Help"));
}
-bool
-window_closed (wxCommandEvent &)
-{
- maybe_save_then_delete_film ();
- return false;
-}
-
class Frame : public wxFrame
{
public:
ac->set_audio_delay (_audio_delay->GetValue ());
}
-void
-FilmEditor::setup_main_notebook_size ()
-{
- _main_notebook->InvalidateBestSize ();
-
- _content_sizer->Layout ();
- _content_sizer->SetSizeHints (_content_panel);
- _dcp_sizer->Layout ();
- _dcp_sizer->SetSizeHints (_dcp_panel);
-
- _main_notebook->Fit ();
- Fit ();
-}
-
void
FilmEditor::audio_gain_calculate_button_clicked (wxCommandEvent &)
{
void setup_dcp_name ();
void setup_show_audio_sensitivity ();
void setup_scaling_description ();
- void setup_main_notebook_size ();
void setup_content ();
void setup_container ();
void setup_content_sensitivity ();
if (!locale->IsOk()) {
delete locale;
locale = new wxLocale (wxLANGUAGE_ENGLISH);
- language = wxLANGUAGE_ENGLISH;
}
}