I'm writing DCT filter.I've some issues to discuss with you.
1. For the base layer, should the input and output be file or memory? Or both?
2. How to get the parameters for encode, e.g. the image size? If in the hash table filter_params, should I add the key name of the parameters in pdf-stm.h?