Skip to content
Snippets Groups Projects
Commit d7bb5d82 authored by Pierre Ynard's avatar Pierre Ynard
Browse files

motion: fix orientation of transform filter

The goal of the motion interface is to keep the video upside up. The
angles of the rotate and transform filters are oriented in opposite
directions, yet both filters are treated in the same way by the motion
code: this is incoherent and at least one code path is wrong, regardless
of the orientation of the motion sensors. On my HDAPS T42, the transform
path would turn the video upside down... my take is that its orientation
got flipped somewhere along the way. This fixes that.
parent 344713d0
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ static void RunIntf( intf_thread_t *p_intf )
if( i_x < -HIGH_THRESHOLD && i_oldx > -LOW_THRESHOLD )
{
b_change = true;
psz_type = "270";
psz_type = "90";
}
else if( ( i_x > -LOW_THRESHOLD && i_oldx < -HIGH_THRESHOLD )
|| ( i_x < LOW_THRESHOLD && i_oldx > HIGH_THRESHOLD ) )
......@@ -144,7 +144,7 @@ static void RunIntf( intf_thread_t *p_intf )
else if( i_x > HIGH_THRESHOLD && i_oldx < LOW_THRESHOLD )
{
b_change = true;
psz_type = "90";
psz_type = "270";
}
if( b_change )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment