Function sws_scale_frame

pub unsafe extern "C" fn sws_scale_frame(
    c: *mut SwsContext,
    dst: *mut AVFrame,
    src: *const AVFrame,
) -> i32
Expand description

Scale source data from src and write the output to dst.

This is merely a convenience wrapper around

  • sws_frame_start()
  • sws_send_slice(0, src->height)
  • sws_receive_slice(0, dst->height)
  • sws_frame_end()

@param c The scaling context @param dst The destination frame. See documentation for sws_frame_start() for more details. @param src The source frame.

@return 0 on success, a negative AVERROR code on failure