Real time algorithms and architectures for coding images compressed by dwt-basedtechniques