Designing an ASIP for Retinex Image and Video Processing