Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fn BitDepth::pxstride
: Make generic over stride
type and `BitDept…
…h` (#769) This way we don't have to do `BD::pxstride(stride as usize) as isize`, which is verbose and wrong for negative strides. There may still be some places where strides are always positive, though, so it's kept generic. This also lets us fix #636 gradually; this is the first major step in fixing #636. We'll fully fix that later. @fbossen, hopefully this'll help you in your PRs not have to write the hundreds of extra `as usize) as isize` casts.
- Loading branch information