[vlc-commits] vhs, oldmovie: code cosmetics

Vianney Boyer git at videolan.org
Sun Aug 18 22:35:55 CEST 2013


vlc | branch: master | Vianney Boyer <vlcvboyer at gmail.com> | Sun Aug 18 21:38:45 2013 +0200| [7a7656de5d5c149e8dddda9bed243f45b781d7bc] | committer: Jean-Baptiste Kempf

vhs, oldmovie: code cosmetics

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7a7656de5d5c149e8dddda9bed243f45b781d7bc
---

 modules/video_filter/oldmovie.c |   12 ++++++------
 modules/video_filter/vhs.c      |   10 +++++-----
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/modules/video_filter/oldmovie.c b/modules/video_filter/oldmovie.c
index 5077c5b..f97c448 100644
--- a/modules/video_filter/oldmovie.c
+++ b/modules/video_filter/oldmovie.c
@@ -50,9 +50,9 @@ static inline int64_t MOD(int64_t a, int64_t b) {
     return ( ( a % b ) + b ) % b; }
 
 #define SUB_MIN(val, sub_val, min) val = \
- ((val-(int32_t)sub_val)<min?min:val-sub_val)
+        ((val-(int32_t)sub_val)<min?min:val-sub_val)
 #define ADD_MAX(val, add_val, max) val = \
- ((val+(int32_t)add_val)>max?max:val+add_val)
+        ((val+(int32_t)add_val)>max?max:val+add_val)
 
 static inline int32_t PIX_OFS(int32_t i_x, int32_t i_y, plane_t *ps_plane) {
     return i_x * ps_plane->i_pixel_pitch + i_y * ps_plane->i_pitch; }
@@ -784,8 +784,8 @@ static int oldmovie_lens_hair_effect( filter_t *p_filter, picture_t *p_pic_out )
                     f_current_y += cos( (double)i_current_rot / 128.0 * M_PI );
                     CHECK_N_DARKEN_PIXEL( (int32_t) f_current_x,
                                           (int32_t) f_current_y,
- p_sys->p_hair[i_h]->i_intensity,
- &p_pic_out->p[Y_PLANE] );
+                                          p_sys->p_hair[i_h]->i_intensity,
+                                          &p_pic_out->p[Y_PLANE] );
                 }
             }
         }
@@ -866,8 +866,8 @@ static int oldmovie_lens_dust_effect( filter_t *p_filter, picture_t *p_pic_out )
                     if ( i_x * i_x + i_y * i_y <= p_sys->p_dust[i_d]->i_width * p_sys->p_dust[i_d]->i_width )
                         CHECK_N_DARKEN_PIXEL( i_x + p_sys->p_dust[i_d]->i_x,
                                               i_y + p_sys->p_dust[i_d]->i_y,
- p_sys->p_dust[i_d]->i_intensity,
- &p_pic_out->p[Y_PLANE] );
+                                              p_sys->p_dust[i_d]->i_intensity,
+                                              &p_pic_out->p[Y_PLANE] );
         }
 
     return VLC_SUCCESS;
diff --git a/modules/video_filter/vhs.c b/modules/video_filter/vhs.c
index 6b16703..c7448a1 100644
--- a/modules/video_filter/vhs.c
+++ b/modules/video_filter/vhs.c
@@ -315,17 +315,17 @@ static int vhs_blue_red_line_effect( filter_t *p_filter, picture_t *p_pic_out )
                 switch ( i_p ) {
                   case Y_PLANE:
                     memset( &p_pic_out->p[i_p].p_pixels[i_pix_ofs], 127,
- p_pic_out->p[i_p].i_visible_pitch);
+                            p_pic_out->p[i_p].i_visible_pitch);
                     break;
                   case U_PLANE:
                     memset( &p_pic_out->p[i_p].p_pixels[i_pix_ofs],
- (p_sys->p_BR_lines[i_b]->b_blue_red?255:0),
- p_pic_out->p[i_p].i_visible_pitch);
+                            (p_sys->p_BR_lines[i_b]->b_blue_red?255:0),
+                            p_pic_out->p[i_p].i_visible_pitch);
                     break;
                   case V_PLANE:
                     memset( &p_pic_out->p[i_p].p_pixels[i_pix_ofs],
- (p_sys->p_BR_lines[i_b]->b_blue_red?0:255),
- p_pic_out->p[i_p].i_visible_pitch);
+                            (p_sys->p_BR_lines[i_b]->b_blue_red?0:255),
+                            p_pic_out->p[i_p].i_visible_pitch);
                     break;
                 }
 



More information about the vlc-commits mailing list