modify dec API from void to explicit type, and some comments
Merge pull request #883 from huili2/API_dec_modify_v1

Api dec modify v1