2 ms·
Replying to your update: the reason you write out the invariants is then it becomes perfectly obvious in code review that the method only works for certain imag
by jeffbee 6y ago
Replying to your update: the reason you write out the invariants is then it becomes perfectly obvious in code review that the method only works for certain images and isn't protected against being called with unusable images, at which point the review can say "don't land this".
Truth in advertising. If this had been named "getHistogramOfSRGBBitmapElseOOBE" nobody would have stamped it because that's obviously dumb.