Nonlinear CODEC in the digital domain