diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-04 10:37:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-04 10:37:32 +0100 |
| commit | 3429cf48ff2ce056413588be4151be82c8114861 (patch) | |
| tree | 3d4875a3acfdc29a1baab5779de221667130ee08 /src/lib | |
| parent | 5efb969c83dce8fc94b2e7184e424578fee772d1 (diff) | |
Some unnecessary boost:: removal.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/encoder.cc | 9 | ||||
| -rw-r--r-- | src/lib/film.cc | 12 | ||||
| -rw-r--r-- | src/lib/matcher.cc | 4 | ||||
| -rw-r--r-- | src/lib/video_source.cc | 2 |
4 files changed, 14 insertions, 13 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index 2a8d8cc16..568307462 100644 --- a/src/lib/encoder.cc +++ b/src/lib/encoder.cc @@ -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 (); diff --git a/src/lib/film.cc b/src/lib/film.cc index a9d7b7381..976f65313 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -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); } diff --git a/src/lib/matcher.cc b/src/lib/matcher.cc index 48f6ed912..77ed9b651 100644 --- a/src/lib/matcher.cc +++ b/src/lib/matcher.cc @@ -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 (); diff --git a/src/lib/video_source.cc b/src/lib/video_source.cc index 8101a6d36..1c4d6466c 100644 --- a/src/lib/video_source.cc +++ b/src/lib/video_source.cc @@ -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); } |
