Hardware Implementation Of Post-Compression Rate-Distortion Optimization For Ebcot In Jpeg2000