Skip to main content

crop_rgb

Function crop_rgb 

Source
fn crop_rgb(
    rgb: Vec<u8>,
    fw: u32,
    fh: u32,
    x: u32,
    y: u32,
    w: u32,
    h: u32,
) -> (u32, u32, Vec<u8>)
Expand description

RGB24 のフレーム(fwxfh)から表示領域(frame_cropping)を切り出す。 領域が不正なら切り出さずに返す。例: 640x360 は 640x368(MB 単位)を復号して下 8 行を落とす。