encoding ,decoding can be seen in two ways ..
#one is signal processing or in transmission:
encoder provides single channel output for multiple inputs..for distribution purposes while decoder do just opposite..
#and the other is in format change(compressing decompressing algos.)
for audio or video files..
hope this helps..