Commit bf66354d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

transform: invert horizontal and vertical flip

This is consistent with the current mouse filter, and how people tend
to interpret the horizontal and vertical words. Until now, VLC would
refer to the rotational axis direction rather than the direction of the
changed dimension.

Fixes: LB#568750
parent 8ca53bfd
...@@ -464,7 +464,7 @@ static void FilterPlanar( vout_thread_t *p_vout, ...@@ -464,7 +464,7 @@ static void FilterPlanar( vout_thread_t *p_vout,
} }
break; break;
case TRANSFORM_MODE_HFLIP: case TRANSFORM_MODE_VFLIP:
for( i_index = 0 ; i_index < p_pic->i_planes ; i_index++ ) for( i_index = 0 ; i_index < p_pic->i_planes ; i_index++ )
{ {
uint8_t *p_in = p_pic->p[i_index].p_pixels; uint8_t *p_in = p_pic->p[i_index].p_pixels;
...@@ -483,7 +483,7 @@ static void FilterPlanar( vout_thread_t *p_vout, ...@@ -483,7 +483,7 @@ static void FilterPlanar( vout_thread_t *p_vout,
} }
break; break;
case TRANSFORM_MODE_VFLIP: case TRANSFORM_MODE_HFLIP:
for( i_index = 0 ; i_index < p_pic->i_planes ; i_index++ ) for( i_index = 0 ; i_index < p_pic->i_planes ; i_index++ )
{ {
uint8_t *p_in = p_pic->p[i_index].p_pixels; uint8_t *p_in = p_pic->p[i_index].p_pixels;
...@@ -675,7 +675,7 @@ static void FilterYUYV( vout_thread_t *p_vout, ...@@ -675,7 +675,7 @@ static void FilterYUYV( vout_thread_t *p_vout,
switch( p_vout->p_sys->i_mode ) switch( p_vout->p_sys->i_mode )
{ {
case TRANSFORM_MODE_HFLIP: case TRANSFORM_MODE_VFLIP:
/* Fall back on the default implementation */ /* Fall back on the default implementation */
FilterPlanar( p_vout, p_pic, p_outpic ); FilterPlanar( p_vout, p_pic, p_outpic );
return; return;
...@@ -802,7 +802,7 @@ static void FilterYUYV( vout_thread_t *p_vout, ...@@ -802,7 +802,7 @@ static void FilterYUYV( vout_thread_t *p_vout,
} }
break; break;
case TRANSFORM_MODE_VFLIP: case TRANSFORM_MODE_HFLIP:
for( i_index = 0 ; i_index < p_pic->i_planes ; i_index++ ) for( i_index = 0 ; i_index < p_pic->i_planes ; i_index++ )
{ {
uint8_t *p_in = p_pic->p[i_index].p_pixels; uint8_t *p_in = p_pic->p[i_index].p_pixels;
......
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