C++ port: add decode hints system