pub fn partition_rows( rgb_img: &mut RgbImage, ) -> (Vec<(usize, &mut [u8])>, usize)
Partitions an RGB image buffer into mutable row segments for thread-safe parallel processing.