libreDPI library and test program