(at your option) any later version. needs to care about color models, endianness, DV legality etc. //compile: gcc -Wall -c -fPIC test_pat_B.c -o test_pat_B.o //link: gcc -lm -shared -o test_pat_B.so ...