(
&self,
scanline0: *mut u8,
pitch: i32,
src_pitch: usize,
total_height: usize,
)
| 393 | /// Gets the source pointer, handling negative pitch (bottom-up images). |
| 394 | #[inline] |
| 395 | unsafe fn get_src_ptr( |
| 396 | &self, |
| 397 | scanline0: *mut u8, |
| 398 | pitch: i32, |
| 399 | src_pitch: usize, |
| 400 | total_height: usize, |
| 401 | ) -> *const u8 { |
| 402 | if pitch < 0 { |
| 403 | scanline0.sub((total_height - 1) * src_pitch) |
| 404 | } else { |
| 405 | scanline0 |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | /// Copies a single row from source to destination. |
| 410 | #[inline] |
no outgoing calls
no test coverage detected