Some unnecessary boost:: removal.
authorCarl Hetherington <cth@carlh.net>
Thu, 4 Apr 2013 09:37:32 +0000 (10:37 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 4 Apr 2013 09:37:32 +0000 (10:37 +0100)
src/lib/encoder.cc
src/lib/film.cc
src/lib/matcher.cc
src/lib/video_source.cc
src/wx/audio_dialog.cc
src/wx/film_viewer.cc
src/wx/job_manager_view.cc

index 2a8d8cc164dfaa333bfb18b56a6f8054328542fb..568307462119a2c667485f0b063adf56c14f1cac 100644 (file)
@@ -48,7 +48,8 @@ using std::vector;
 using std::list;
 using std::cout;
 using std::make_pair;
-using namespace boost;
+using boost::shared_ptr;
+using boost::optional;
 
 int const Encoder::_history_size = 25;
 
@@ -231,7 +232,7 @@ Encoder::frame_done ()
 }
 
 void
-Encoder::process_video (shared_ptr<Image> image, bool same, boost::shared_ptr<Subtitle> sub)
+Encoder::process_video (shared_ptr<Image> image, bool same, shared_ptr<Subtitle> sub)
 {
        FrameRateConversion frc (_film->video_frame_rate(), _film->dcp_frame_rate());
        
@@ -269,7 +270,7 @@ Encoder::process_video (shared_ptr<Image> image, bool same, boost::shared_ptr<Su
                /* Queue this new frame for encoding */
                pair<string, string> const s = Filter::ffmpeg_strings (_film->filters());
                TIMING ("adding to queue of %1", _queue.size ());
-               _queue.push_back (boost::shared_ptr<DCPVideoFrame> (
+               _queue.push_back (shared_ptr<DCPVideoFrame> (
                                          new DCPVideoFrame (
                                                  image, sub, _film->format()->dcp_size(), _film->format()->dcp_padding (_film),
                                                  _film->subtitle_offset(), _film->subtitle_scale(),
@@ -360,7 +361,7 @@ Encoder::encoder_thread (ServerDescription* server)
                }
 
                TIMING ("encoder thread %1 wakes with queue of %2", boost::this_thread::get_id(), _queue.size());
-               boost::shared_ptr<DCPVideoFrame> vf = _queue.front ();
+               shared_ptr<DCPVideoFrame> vf = _queue.front ();
                _film->log()->log (String::compose (N_("Encoder thread %1 pops frame %2 from queue"), boost::this_thread::get_id(), vf->frame()), Log::VERBOSE);
                _queue.pop_front ();
                
index a9d7b73813107c64d636b5a60178cfc5324ba12a..976f653137d1ddb41e5a3abb7d17573b3ca1322d 100644 (file)
@@ -1178,7 +1178,7 @@ Film::ffmpeg () const
 vector<FFmpegSubtitleStream>
 Film::ffmpeg_subtitle_streams () const
 {
-       boost::shared_ptr<FFmpegContent> f = ffmpeg ();
+       shared_ptr<FFmpegContent> f = ffmpeg ();
        if (f) {
                return f->subtitle_streams ();
        }
@@ -1189,7 +1189,7 @@ Film::ffmpeg_subtitle_streams () const
 boost::optional<FFmpegSubtitleStream>
 Film::ffmpeg_subtitle_stream () const
 {
-       boost::shared_ptr<FFmpegContent> f = ffmpeg ();
+       shared_ptr<FFmpegContent> f = ffmpeg ();
        if (f) {
                return f->subtitle_stream ();
        }
@@ -1200,7 +1200,7 @@ Film::ffmpeg_subtitle_stream () const
 vector<FFmpegAudioStream>
 Film::ffmpeg_audio_streams () const
 {
-       boost::shared_ptr<FFmpegContent> f = ffmpeg ();
+       shared_ptr<FFmpegContent> f = ffmpeg ();
        if (f) {
                return f->audio_streams ();
        }
@@ -1211,7 +1211,7 @@ Film::ffmpeg_audio_streams () const
 boost::optional<FFmpegAudioStream>
 Film::ffmpeg_audio_stream () const
 {
-       boost::shared_ptr<FFmpegContent> f = ffmpeg ();
+       shared_ptr<FFmpegContent> f = ffmpeg ();
        if (f) {
                return f->audio_stream ();
        }
@@ -1222,7 +1222,7 @@ Film::ffmpeg_audio_stream () const
 void
 Film::set_ffmpeg_subtitle_stream (FFmpegSubtitleStream s)
 {
-       boost::shared_ptr<FFmpegContent> f = ffmpeg ();
+       shared_ptr<FFmpegContent> f = ffmpeg ();
        if (f) {
                f->set_subtitle_stream (s);
        }
@@ -1231,7 +1231,7 @@ Film::set_ffmpeg_subtitle_stream (FFmpegSubtitleStream s)
 void
 Film::set_ffmpeg_audio_stream (FFmpegAudioStream s)
 {
-       boost::shared_ptr<FFmpegContent> f = ffmpeg ();
+       shared_ptr<FFmpegContent> f = ffmpeg ();
        if (f) {
                f->set_audio_stream (s);
        }
index 48f6ed9126dd980c13b79b6665a3a82ad203bf9b..77ed9b6515bbb3e40add4a89e3b4d6d6d81a0d52 100644 (file)
@@ -37,7 +37,7 @@ Matcher::Matcher (shared_ptr<Log> log, int sample_rate, float frames_per_second)
 }
 
 void
-Matcher::process_video (boost::shared_ptr<Image> i, bool same, boost::shared_ptr<Subtitle> s)
+Matcher::process_video (shared_ptr<Image> i, bool same, shared_ptr<Subtitle> s)
 {
        Video (i, same, s);
        _video_frames++;
@@ -47,7 +47,7 @@ Matcher::process_video (boost::shared_ptr<Image> i, bool same, boost::shared_ptr
 }
 
 void
-Matcher::process_audio (boost::shared_ptr<AudioBuffers> b)
+Matcher::process_audio (shared_ptr<AudioBuffers> b)
 {
        Audio (b);
        _audio_frames += b->frames ();
index 8101a6d3696d67ca0834e075925ce4e72dff92a6..1c4d6466cbd5c159bbcdd81de23745821b700080 100644 (file)
@@ -27,7 +27,7 @@ using boost::bind;
 static void
 process_video_proxy (weak_ptr<VideoSink> sink, shared_ptr<Image> i, bool same, shared_ptr<Subtitle> s)
 {
-       boost::shared_ptr<VideoSink> p = sink.lock ();
+       shared_ptr<VideoSink> p = sink.lock ();
        if (p) {
                p->process_video (i, same, s);
        }
index 242d37b1e42728e82c5d6c1c8e80d341fabbc5ea..1241c2e76c4bf65f9e956d2294aa4cdacae746be 100644 (file)
@@ -84,7 +84,7 @@ AudioDialog::AudioDialog (wxWindow* parent)
 }
 
 void
-AudioDialog::set_film (boost::shared_ptr<Film> f)
+AudioDialog::set_film (shared_ptr<Film> f)
 {
        _film_changed_connection.disconnect ();
        _film_audio_analysis_succeeded_connection.disconnect ();
index f6d0f77dc59fc29256f0d305e8b3752e120b378d..316a42a664cbd025da53084ae8d629c4982bfaea 100644 (file)
@@ -290,7 +290,7 @@ FilmViewer::raw_to_display ()
                old_size = _display_frame->size();
        }
 
-       boost::shared_ptr<Image> input = _raw_frame;
+       shared_ptr<Image> input = _raw_frame;
 
        pair<string, string> const s = Filter::ffmpeg_strings (_film->filters());
        if (!s.second.empty ()) {
index f7d2315ccf68ea5ae3078d15eece597a8c6ded58..a7788ddd01334cd0a8d2dba94afb3f3b8e489321 100644 (file)
@@ -135,7 +135,7 @@ JobManagerView::details_clicked (wxCommandEvent& ev)
 {
        wxObject* o = ev.GetEventObject ();
 
-       for (map<boost::shared_ptr<Job>, JobRecord>::iterator i = _job_records.begin(); i != _job_records.end(); ++i) {
+       for (map<shared_ptr<Job>, JobRecord>::iterator i = _job_records.begin(); i != _job_records.end(); ++i) {
                if (i->second.details == o) {
                        string s = i->first->error_summary();
                        s[0] = toupper (s[0]);
@@ -149,7 +149,7 @@ JobManagerView::cancel_clicked (wxCommandEvent& ev)
 {
        wxObject* o = ev.GetEventObject ();
 
-       for (map<boost::shared_ptr<Job>, JobRecord>::iterator i = _job_records.begin(); i != _job_records.end(); ++i) {
+       for (map<shared_ptr<Job>, JobRecord>::iterator i = _job_records.begin(); i != _job_records.end(); ++i) {
                if (i->second.cancel == o) {
                        i->first->cancel ();
                }