Add heic encoder to get_role
am: e78cce548c

Change-Id: I93111489cb53347977e98f644393a7f7d3454a13