Function sws_receive_slice

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

Request a horizontal slice of the output data to be written into the frame previously provided to sws_frame_start().

@param c The scaling context @param slice_start first row of the slice; must be a multiple of sws_receive_slice_alignment() @param slice_height number of rows in the slice; must be a multiple of sws_receive_slice_alignment(), except for the last slice (i.e. when slice_start+slice_height is equal to output frame height)

@return a non-negative number if the data was successfully written into the output AVERROR(EAGAIN) if more input data needs to be provided before the output can be produced another negative AVERROR code on other kinds of scaling failure