Skip to content

Commit

Permalink
Remove unused function linearstep().
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed May 26, 2015
1 parent 45cd407 commit 2eb5f03
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/modules/core/transition_composite.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,20 +193,6 @@ static int get_value( mlt_properties properties, const char *preferred, const ch
return value;
}

/** A linear threshold determination function.
*/

static inline int32_t linearstep( int32_t edge1, int32_t edge2, int32_t a )
{
if ( a < edge1 )
return 0;

if ( a >= edge2 )
return 0x10000;

return ( ( a - edge1 ) << 16 ) / ( edge2 - edge1 );
}

/** A smoother, non-linear threshold determination function.
*/

Expand Down

0 comments on commit 2eb5f03

Please sign in to comment.