Add encode/decode input class and capi wrapper, add encode and decode te...

...st in C.

Signed-off-by: Tang Xin <xin.t.tang@intel.com>
delete output here.