Commit 7d54a3ab authored by Tristan Matthews's avatar Tristan Matthews

video_filter: sepia: cosmetics

parent 7da9dd57
......@@ -319,7 +319,7 @@ static void PlanarI420Sepia( picture_t *p_pic, picture_t *p_outpic,
const uint8_t filling_const_8v = 128 + i_intensity / 14;
/* iterate for every two visible line in the frame */
for( int y = 0; y < p_pic->p[Y_PLANE].i_visible_lines - 1; y += 2)
for( int y = 0; y < p_pic->p[Y_PLANE].i_visible_lines - 1; y += 2 )
{
const int i_dy_line1_start = y * p_outpic->p[Y_PLANE].i_pitch;
const int i_dy_line2_start = ( y + 1 ) * p_outpic->p[Y_PLANE].i_pitch;
......@@ -331,7 +331,7 @@ static void PlanarI420Sepia( picture_t *p_pic, picture_t *p_outpic,
? (p_pic->p[Y_PLANE].i_visible_pitch - 1) :
(p_outpic->p[Y_PLANE].i_visible_pitch - 1);
/* iterate for every two visible line in the frame */
for( int x = 0; x < i_picture_size_limit; x += 2)
for( int x = 0; x < i_picture_size_limit; x += 2 )
{
// y = y - y/4 {to prevent overflow} + intensity / 4
p_outpic->p[Y_PLANE].p_pixels[i_dy_line1_start + x] =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment