Function sws_send_slice

pub unsafe extern "C" fn sws_send_slice(
    c: *mut SwsContext,
    slice_start: u32,
    slice_height: u32,
) -> i32
Expand description

Indicate that a horizontal slice of input data is available in the source frame previously provided to sws_frame_start(). The slices may be provided in any order, but may not overlap. For vertically subsampled pixel formats, the slices must be aligned according to subsampling.

@param c The scaling context @param slice_start first row of the slice @param slice_height number of rows in the slice

@return a non-negative number on success, a negative AVERROR code on failure.