pub fn encode_cpu(
stripes: &mut Vec<StripeState>,
carrying: &mut f32,
raw_pixels: &[u8],
width: i32,
height: i32,
damage_rects: &[Rectangle<i32, Physical>],
settings: &RustCaptureSettings,
frame_counter: u16,
use_gpu: bool,
hash_damage: bool,
force_idr_all: bool,
) -> Vec<EncodedStripe>