Add decode input class and its capi wrapper.

Signed-off-by: Tang Xin <xin.t.tang@intel.com>