added precision support
use signed int32 output buffer for both lossy and lossless dwt