tabs -> spaces.
authorCarl Hetherington <cth@carlh.net>
Wed, 17 Jul 2013 00:10:23 +0000 (01:10 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 17 Jul 2013 00:10:23 +0000 (01:10 +0100)
src/lib/cross.cc
src/lib/dolby_cp750.cc
src/lib/filter.cc
src/lib/image.cc
src/lib/job.cc
src/lib/player.cc
src/lib/util.cc
src/lib/video_content.cc
src/lib/video_decoder.cc

index ee0ef89b2ea0c9394b53124b700605d5c703a3af..4e3739f57380f78491c547b857908cdf964c4dc7 100644 (file)
@@ -82,8 +82,8 @@ cpu_info ()
        char buffer[64];
        N = sizeof (buffer);
        if (sysctlbyname ("machdep.cpu.brand_string", buffer, &N, 0, 0) == 0) {
-               info.first = buffer;
-        }
+               info.first = buffer;
+       }
 #endif         
 
        return info;
index b45e62b87b765cb7680fe82f46fbcc085cceedec..162626ff06435c65998d284d6f9307aa63f15b21 100644 (file)
@@ -24,7 +24,7 @@
 using namespace std;
 
 DolbyCP750::DolbyCP750 ()
-        : SoundProcessor ("dolby_cp750", _("Dolby CP750"))
+       : SoundProcessor ("dolby_cp750", _("Dolby CP750"))
 {
 
 }
index 4d429b3036b6d313522b526723f27bff8498b4ae..640a531e8aeb7185471c472542af2fed8e3fdbb0 100644 (file)
@@ -65,30 +65,30 @@ Filter::setup_filters ()
 {
        /* Note: "none" is a magic id name, so don't use it here */
           
-       maybe_add (N_("pphb"),      _("Horizontal deblocking filter"),                _("De-blocking"),     N_(""),          N_("hb"));
-       maybe_add (N_("ppvb"),      _("Vertical deblocking filter"),                  _("De-blocking"),     N_(""),          N_("vb"));
-       maybe_add (N_("ppha"),      _("Horizontal deblocking filter A"),              _("De-blocking"),     N_(""),          N_("ha"));
-       maybe_add (N_("ppva"),      _("Vertical deblocking filter A"),                _("De-blocking"),     N_(""),          N_("va"));
-       maybe_add (N_("pph1"),      _("Experimental horizontal deblocking filter 1"), _("De-blocking"),     N_(""),          N_("h1"));
-       maybe_add (N_("pphv"),      _("Experimental vertical deblocking filter 1"),   _("De-blocking"),     N_(""),          N_("v1"));
-       maybe_add (N_("ppdr"),      _("Deringing filter"),                            _("Misc"),            N_(""),          N_("dr"));
-       maybe_add (N_("pplb"),      _("Linear blend deinterlacer"),                   _("De-interlacing"),  N_(""),          N_("lb"));
-       maybe_add (N_("ppli"),      _("Linear interpolating deinterlacer"),           _("De-interlacing"),  N_(""),          N_("li"));
-       maybe_add (N_("ppci"),      _("Cubic interpolating deinterlacer"),            _("De-interlacing"),  N_(""),          N_("ci"));
-       maybe_add (N_("ppmd"),      _("Median deinterlacer"),                         _("De-interlacing"),  N_(""),          N_("md"));
-       maybe_add (N_("ppfd"),      _("FFMPEG deinterlacer"),                         _("De-interlacing"),  N_(""),          N_("fd"));
-       maybe_add (N_("ppl5"),      _("FIR low-pass deinterlacer"),                   _("De-interlacing"),  N_(""),          N_("l5"));
-       maybe_add (N_("mcdeint"),   _("Motion compensating deinterlacer"),            _("De-interlacing"),  N_("mcdeint"),   N_(""));
-       maybe_add (N_("kerndeint"), _("Kernel deinterlacer"),                         _("De-interlacing"),  N_("kerndeint"), N_(""));
-       maybe_add (N_("yadif"),     _("Yet Another Deinterlacing Filter"),            _("De-interlacing"),  N_("yadif"),     N_(""));
-       maybe_add (N_("pptn"),      _("Temporal noise reducer"),                      _("Noise reduction"), N_(""),          N_("tn"));
-       maybe_add (N_("ppfq"),      _("Force quantizer"),                             _("Misc"),            N_(""),          N_("fq"));
-       maybe_add (N_("gradfun"),   _("Gradient debander"),                           _("Misc"),            N_("gradfun"),   N_(""));
-       maybe_add (N_("unsharp"),   _("Unsharp mask and Gaussian blur"),              _("Misc"),            N_("unsharp"),   N_(""));
-       maybe_add (N_("denoise3d"), _("3D denoiser"),                                 _("Noise reduction"), N_("denoise3d"), N_(""));
-       maybe_add (N_("hqdn3d"),    _("High quality 3D denoiser"),                    _("Noise reduction"), N_("hqdn3d"),    N_(""));
-       maybe_add (N_("telecine"),  _("Telecine filter"),                             _("Misc"),            N_("telecine"),  N_(""));
-       maybe_add (N_("ow"),        _("Overcomplete wavelet denoiser"),               _("Noise reduction"), N_("mp=ow"),     N_(""));
+       maybe_add (N_("pphb"),      _("Horizontal deblocking filter"),                _("De-blocking"),     N_(""),          N_("hb"));
+       maybe_add (N_("ppvb"),      _("Vertical deblocking filter"),                  _("De-blocking"),     N_(""),          N_("vb"));
+       maybe_add (N_("ppha"),      _("Horizontal deblocking filter A"),              _("De-blocking"),     N_(""),          N_("ha"));
+       maybe_add (N_("ppva"),      _("Vertical deblocking filter A"),                _("De-blocking"),     N_(""),          N_("va"));
+       maybe_add (N_("pph1"),      _("Experimental horizontal deblocking filter 1"), _("De-blocking"),     N_(""),          N_("h1"));
+       maybe_add (N_("pphv"),      _("Experimental vertical deblocking filter 1"),   _("De-blocking"),     N_(""),          N_("v1"));
+       maybe_add (N_("ppdr"),      _("Deringing filter"),                            _("Misc"),            N_(""),          N_("dr"));
+       maybe_add (N_("pplb"),      _("Linear blend deinterlacer"),                   _("De-interlacing"),  N_(""),          N_("lb"));
+       maybe_add (N_("ppli"),      _("Linear interpolating deinterlacer"),           _("De-interlacing"),  N_(""),          N_("li"));
+       maybe_add (N_("ppci"),      _("Cubic interpolating deinterlacer"),            _("De-interlacing"),  N_(""),          N_("ci"));
+       maybe_add (N_("ppmd"),      _("Median deinterlacer"),                         _("De-interlacing"),  N_(""),          N_("md"));
+       maybe_add (N_("ppfd"),      _("FFMPEG deinterlacer"),                         _("De-interlacing"),  N_(""),          N_("fd"));
+       maybe_add (N_("ppl5"),      _("FIR low-pass deinterlacer"),                   _("De-interlacing"),  N_(""),          N_("l5"));
+       maybe_add (N_("mcdeint"),   _("Motion compensating deinterlacer"),            _("De-interlacing"),  N_("mcdeint"),   N_(""));
+       maybe_add (N_("kerndeint"), _("Kernel deinterlacer"),                         _("De-interlacing"),  N_("kerndeint"), N_(""));
+       maybe_add (N_("yadif"),     _("Yet Another Deinterlacing Filter"),            _("De-interlacing"),  N_("yadif"),     N_(""));
+       maybe_add (N_("pptn"),      _("Temporal noise reducer"),                      _("Noise reduction"), N_(""),          N_("tn"));
+       maybe_add (N_("ppfq"),      _("Force quantizer"),                             _("Misc"),            N_(""),          N_("fq"));
+       maybe_add (N_("gradfun"),   _("Gradient debander"),                           _("Misc"),            N_("gradfun"),   N_(""));
+       maybe_add (N_("unsharp"),   _("Unsharp mask and Gaussian blur"),              _("Misc"),            N_("unsharp"),   N_(""));
+       maybe_add (N_("denoise3d"), _("3D denoiser"),                                 _("Noise reduction"), N_("denoise3d"), N_(""));
+       maybe_add (N_("hqdn3d"),    _("High quality 3D denoiser"),                    _("Noise reduction"), N_("hqdn3d"),    N_(""));
+       maybe_add (N_("telecine"),  _("Telecine filter"),                             _("Misc"),            N_("telecine"),  N_(""));
+       maybe_add (N_("ow"),        _("Overcomplete wavelet denoiser"),               _("Noise reduction"), N_("mp=ow"),     N_(""));
 }
 
 void
index f8dc111b0ade72b8fc01e55575afbe12c278e2f0..bdf7fd173c9d860db6cb8f749700d9fbea641075 100644 (file)
@@ -243,13 +243,13 @@ void
 Image::make_black ()
 {
        /* U/V black value for 8-bit colour */
-       static uint8_t const eight_bit_uv =     (1 << 7) - 1;
+       static uint8_t const eight_bit_uv =     (1 << 7) - 1;
        /* U/V black value for 9-bit colour */
-       static uint16_t const nine_bit_uv =     (1 << 8) - 1;
+       static uint16_t const nine_bit_uv =     (1 << 8) - 1;
        /* U/V black value for 10-bit colour */
-       static uint16_t const ten_bit_uv =      (1 << 9) - 1;
+       static uint16_t const ten_bit_uv =      (1 << 9) - 1;
        /* U/V black value for 16-bit colour */
-       static uint16_t const sixteen_bit_uv =  (1 << 15) - 1;
+       static uint16_t const sixteen_bit_uv =  (1 << 15) - 1;
        
        switch (_pixel_format) {
        case PIX_FMT_YUV420P:
@@ -305,9 +305,9 @@ Image::make_black ()
                for (int y = 0; y < Y; ++y) {
                        for (int x = 0; x < X / 4; ++x) {
                                *p++ = eight_bit_uv; // Cb
-                               *p++ = 0;            // Y0
+                               *p++ = 0;            // Y0
                                *p++ = eight_bit_uv; // Cr
-                               *p++ = 0;            // Y1
+                               *p++ = 0;            // Y1
                        }
                }
                break;
index 080d1eaf6018a5588c9d9f0c31a63c894585a4a1..4fbe707715ccfb624293ba63da86058d59e2a5da 100644 (file)
@@ -86,7 +86,7 @@ Job::run_wrapper ()
        } catch (boost::thread_interrupted &) {
 
                set_state (FINISHED_CANCELLED);
-               
+               
        } catch (std::exception& e) {
 
                set_progress (1);
index 50f401fb75fac7d3164ef3c80b10a654554575ea..ec20892effe9ec571d89e3c6cbb33bb2a68c70cd 100644 (file)
@@ -73,11 +73,11 @@ public:
 std::ostream& operator<<(std::ostream& s, Piece const & p)
 {
        if (dynamic_pointer_cast<FFmpegContent> (p.content)) {
-               s << "\tffmpeg     ";
+               s << "\tffmpeg     ";
        } else if (dynamic_pointer_cast<ImageMagickContent> (p.content)) {
                s << "\timagemagick";
        } else if (dynamic_pointer_cast<SndfileContent> (p.content)) {
-               s << "\tsndfile    ";
+               s << "\tsndfile    ";
        }
        
        s << " at " << p.content->start() << " until " << p.content->end();
@@ -126,8 +126,8 @@ Player::pass ()
        cout << "= PASS\n";
 #endif 
 
-        Time earliest_t = TIME_MAX;
-        shared_ptr<Piece> earliest;
+       Time earliest_t = TIME_MAX;
+       shared_ptr<Piece> earliest;
        enum {
                VIDEO,
                AUDIO
@@ -198,7 +198,7 @@ Player::pass ()
        cout << "\tpost pass " << _video_position << " " << _audio_position << "\n";
 #endif 
 
-        return false;
+       return false;
 }
 
 void
@@ -242,7 +242,7 @@ Player::process_video (weak_ptr<Piece> weak_piece, shared_ptr<const Image> image
        _last_video = piece->content;
 #endif 
 
-        Video (work_image, same, time);
+       Video (work_image, same, time);
        time += TIME_HZ / _film->dcp_video_frame_rate();
 
        if (frc.repeat) {
@@ -298,13 +298,13 @@ Player::process_audio (weak_ptr<Piece> weak_piece, shared_ptr<const AudioBuffers
                time = 0;
        }
 
-        /* The time of this audio may indicate that some of our buffered audio is not going to
-           be added to any more, so it can be emitted.
-        */
+       /* The time of this audio may indicate that some of our buffered audio is not going to
+          be added to any more, so it can be emitted.
+       */
 
-        if (time > _audio_position) {
-                /* We can emit some audio from our buffers */
-                OutputAudioFrame const N = _film->time_to_audio_frames (time - _audio_position);
+       if (time > _audio_position) {
+               /* We can emit some audio from our buffers */
+               OutputAudioFrame const N = _film->time_to_audio_frames (time - _audio_position);
                if (N > _audio_buffers.frames()) {
                        /* We need some extra silence before whatever is in the buffers */
                        _audio_buffers.ensure_size (N);
@@ -313,21 +313,21 @@ Player::process_audio (weak_ptr<Piece> weak_piece, shared_ptr<const AudioBuffers
                        _audio_buffers.set_frames (N);
                }
                assert (N <= _audio_buffers.frames());
-                shared_ptr<AudioBuffers> emit (new AudioBuffers (_audio_buffers.channels(), N));
-                emit->copy_from (&_audio_buffers, N, 0, 0);
-                Audio (emit, _audio_position);
-                _audio_position = piece->audio_position = time + _film->audio_frames_to_time (N);
-
-                /* And remove it from our buffers */
-                if (_audio_buffers.frames() > N) {
-                        _audio_buffers.move (N, 0, _audio_buffers.frames() - N);
-                }
-                _audio_buffers.set_frames (_audio_buffers.frames() - N);
-        }
-
-        /* Now accumulate the new audio into our buffers */
-        _audio_buffers.ensure_size (_audio_buffers.frames() + audio->frames());
-        _audio_buffers.accumulate_frames (audio.get(), 0, 0, audio->frames ());
+               shared_ptr<AudioBuffers> emit (new AudioBuffers (_audio_buffers.channels(), N));
+               emit->copy_from (&_audio_buffers, N, 0, 0);
+               Audio (emit, _audio_position);
+               _audio_position = piece->audio_position = time + _film->audio_frames_to_time (N);
+
+               /* And remove it from our buffers */
+               if (_audio_buffers.frames() > N) {
+                       _audio_buffers.move (N, 0, _audio_buffers.frames() - N);
+               }
+               _audio_buffers.set_frames (_audio_buffers.frames() - N);
+       }
+
+       /* Now accumulate the new audio into our buffers */
+       _audio_buffers.ensure_size (_audio_buffers.frames() + audio->frames());
+       _audio_buffers.accumulate_frames (audio.get(), 0, 0, audio->frames ());
        _audio_buffers.set_frames (_audio_buffers.frames() + audio->frames());
 }
 
@@ -408,7 +408,7 @@ Player::setup_pieces ()
 
                shared_ptr<Piece> piece (new Piece (*i));
 
-                /* XXX: into content? */
+               /* XXX: into content? */
 
                shared_ptr<const FFmpegContent> fc = dynamic_pointer_cast<const FFmpegContent> (*i);
                if (fc) {
index ec99b2f8994724c5bdcdd30b6480f83ef413d4f5..7e7e579a4b5ac4d20bef402c43bec455ea05021d 100644 (file)
@@ -724,12 +724,12 @@ LocaleGuard::LocaleGuard ()
 {
        char const * old = setlocale (LC_NUMERIC, 0);
 
-        if (old) {
-                _old = strdup (old);
-                if (strcmp (_old, "C")) {
-                        setlocale (LC_NUMERIC, "C");
-                }
-        }
+       if (old) {
+               _old = strdup (old);
+               if (strcmp (_old, "C")) {
+                       setlocale (LC_NUMERIC, "C");
+               }
+       }
 }
 
 LocaleGuard::~LocaleGuard ()
index 4b8941c0032c612891417228a86db310c56d7730..a157b05993ca4b2532d0dd5fc8168436c2048a69 100644 (file)
@@ -97,14 +97,14 @@ VideoContent::take_from_video_examiner (shared_ptr<VideoExaminer> d)
        libdcp::Size const vs = d->video_size ();
        float const vfr = d->video_frame_rate ();
        
-        {
-                boost::mutex::scoped_lock lm (_mutex);
-                _video_size = vs;
+       {
+               boost::mutex::scoped_lock lm (_mutex);
+               _video_size = vs;
                _video_frame_rate = vfr;
-        }
-        
-        signal_changed (VideoContentProperty::VIDEO_SIZE);
-        signal_changed (VideoContentProperty::VIDEO_FRAME_RATE);
+       }
+       
+       signal_changed (VideoContentProperty::VIDEO_SIZE);
+       signal_changed (VideoContentProperty::VIDEO_FRAME_RATE);
 }
 
 
index 457cfe47b1e3de06671b646d7ddaf48926c2f1c8..38d5dfcb87298a4ec28f782c89c3ba430551edc0 100644 (file)
@@ -35,7 +35,7 @@ VideoDecoder::VideoDecoder (shared_ptr<const Film> f)
 void
 VideoDecoder::video (shared_ptr<const Image> image, bool same, VideoContent::Frame frame)
 {
-        Video (image, same, frame);
+       Video (image, same, frame);
        _video_position = frame + 1;
 }