Optimizing image processing performance in software by