mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-15 20:30:00 +01:00
fix bg subtract, add extra mode to magic mirror, fix snap bg, added special mode to magic mirror that depends on bg subtraction
This commit is contained in:
@@ -1490,7 +1490,11 @@ void vje_diff_plane( uint8_t *A, uint8_t *B, uint8_t *O, int threshold, int len
|
||||
{
|
||||
unsigned int i;
|
||||
for( i = 0; i < len; i ++ ) {
|
||||
O[i] = ( abs( B[i] - A[i] ) > threshold ? 0xff : 0 );
|
||||
O[i] = abs( A[i] - B[i] );
|
||||
if( O[i] < threshold )
|
||||
O[i] = 0;
|
||||
else
|
||||
O[i] = 0xff;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user