make opj_codec_t re-usable