[vlc-devel] commit: Visual: reindent (Jean-Baptiste Kempf )
git version control
git at videolan.org
Sun Aug 23 13:13:07 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Aug 23 13:00:19 2009 +0200| [70ebb630ce3bcba42f4fc5c5dedc8dd7ffa8b511] | committer: Jean-Baptiste Kempf
Visual: reindent
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70ebb630ce3bcba42f4fc5c5dedc8dd7ffa8b511
---
modules/visualization/visual/effects.c | 72 ++++++++++++++++----------------
1 files changed, 36 insertions(+), 36 deletions(-)
diff --git a/modules/visualization/visual/effects.c b/modules/visualization/visual/effects.c
index 9943771..92d08c1 100644
--- a/modules/visualization/visual/effects.c
+++ b/modules/visualization/visual/effects.c
@@ -804,49 +804,49 @@ int scope_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
uint8_t *ppp_area[2][3];
- for( i_index = 0 ; i_index < 2 ; i_index++ )
+ for( i_index = 0 ; i_index < 2 ; i_index++ )
+ {
+ int j;
+ for( j = 0 ; j < 3 ; j++ )
{
- int j;
- for( j = 0 ; j < 3 ; j++ )
- {
- ppp_area[i_index][j] =
- p_picture->p[j].p_pixels + i_index * p_picture->p[j].i_lines
- / 2 * p_picture->p[j].i_pitch;
- }
+ ppp_area[i_index][j] =
+ p_picture->p[j].p_pixels + i_index * p_picture->p[j].i_lines
+ / 2 * p_picture->p[j].i_pitch;
}
+ }
- for( i_index = 0, p_sample = (float *)p_buffer->p_buffer;
- i_index < __MIN( p_effect->i_width, p_buffer->i_nb_samples );
- i_index++ )
- {
- uint8_t i_value;
-
- /* Left channel */
- i_value = p_sample[p_effect->i_idx_left] * 127;
- *(ppp_area[0][0]
- + p_picture->p[0].i_pitch * i_index / p_effect->i_width
- + p_picture->p[0].i_lines * i_value / 512
- * p_picture->p[0].i_pitch) = 0xbf;
- *(ppp_area[0][1]
+ for( i_index = 0, p_sample = (float *)p_buffer->p_buffer;
+ i_index < __MIN( p_effect->i_width, p_buffer->i_nb_samples );
+ i_index++ )
+ {
+ uint8_t i_value;
+
+ /* Left channel */
+ i_value = p_sample[p_effect->i_idx_left] * 127;
+ *(ppp_area[0][0]
+ + p_picture->p[0].i_pitch * i_index / p_effect->i_width
+ + p_picture->p[0].i_lines * i_value / 512
+ * p_picture->p[0].i_pitch) = 0xbf;
+ *(ppp_area[0][1]
+ p_picture->p[1].i_pitch * i_index / p_effect->i_width
+ p_picture->p[1].i_lines * i_value / 512
- * p_picture->p[1].i_pitch) = 0xff;
-
-
- /* Right channel */
- i_value = p_sample[p_effect->i_idx_right] * 127;
- *(ppp_area[1][0]
- + p_picture->p[0].i_pitch * i_index / p_effect->i_width
- + p_picture->p[0].i_lines * i_value / 512
- * p_picture->p[0].i_pitch) = 0x9f;
- *(ppp_area[1][2]
- + p_picture->p[2].i_pitch * i_index / p_effect->i_width
- + p_picture->p[2].i_lines * i_value / 512
+ * p_picture->p[1].i_pitch) = 0xff;
+
+
+ /* Right channel */
+ i_value = p_sample[p_effect->i_idx_right] * 127;
+ *(ppp_area[1][0]
+ + p_picture->p[0].i_pitch * i_index / p_effect->i_width
+ + p_picture->p[0].i_lines * i_value / 512
+ * p_picture->p[0].i_pitch) = 0x9f;
+ *(ppp_area[1][2]
+ + p_picture->p[2].i_pitch * i_index / p_effect->i_width
+ + p_picture->p[2].i_lines * i_value / 512
* p_picture->p[2].i_pitch) = 0xdd;
- p_sample += p_effect->i_nb_chans;
- }
- return 0;
+ p_sample += p_effect->i_nb_chans;
+ }
+ return 0;
}
More information about the vlc-devel
mailing list