Changeset 6006:2f9995e33037 in roaraudio


Ignore:
Timestamp:
04/12/14 10:57:44 (5 years ago)
Author:
phi
Branch:
default
Message:

make inverse mapping work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/universal/filter-slfi-map.c

    r6004 r6006  
    102102 roar_mm_free(buf); 
    103103 
    104  if ( map.mt == MT_COPY && map.src_end == -1 ) 
     104 if ( (map.mt == MT_COPY || map.mt == MT_INVERSE) && map.src_end == -1 ) 
    105105  map.src_end = map.src_start; 
    106106 
     
    195195    break; 
    196196   case MT_INVERSE: 
    197      for (j = map->dst_start; j <= map->src_end; j++) 
     197     for (j = map->src_start; j <= map->src_end; j++) 
    198198      universe[j] = 255 - universe[j]; 
    199199    break; 
Note: See TracChangeset for help on using the changeset viewer.