code for mapping table look-up in 360AVS application