fn rgb_to_alpha(rgb: &[u8]) -> Box<[u8]> {
    assert_eq!(rgb.len() % 3, 0);
    let num_pixels = rgb.len() / 3;
    vec![std::u8::MAX; num_pixels].into_boxed_slice()
}
/// Converts RGB image data into an alpha mask.
Converts RGB image data into an alpha mask.
Converts RGB image data into an alpha mask .
fn rgb_to_alpha(rgb: &[u8]) -> Box<[u8]> {
    assert_eq!(rgb.len() % 3, 0);
    let num_pixels = rgb.len() / 3;
    vec![std::u8::MAX; num_pixels].into_boxed_slice()
}
fn rgb_to_alpha ( rgb : & [ u8 ] ) -> Box < [ u8 ] > { assert_eq ! ( rgb len ( ) 3 0 ) ; let num_pixels = rgb . len ( ) / 3 ; vec ! [ std u8 MAX num_pixels ] . into_boxed_slice ( ) }
Converts RGB image data into an alpha mask.
Converts RGB image data into an alpha mask .
rgb
&[u8]
rgb
&[u8]