factor out getOffset method
add quality offset parameter version of constructor
add support for compressed input in FqWeightQuantiser