pub unsafe extern "C" fn aom_img_set_rect(
    img: *mut aom_image_t,
    x: c_uint,
    y: c_uint,
    w: c_uint,
    h: c_uint,
    border: c_uint
) -> c_int
Expand description

Set the rectangle identifying the displayed portion of the image

Updates the displayed rectangle (aka viewport) on the image surface to match the specified coordinates and size. Specifically, sets img->d_w, img->d_h, and elements of the img->planes[] array.

\param[in] img Image descriptor \param[in] x leftmost column \param[in] y topmost row \param[in] w width \param[in] h height \param[in] border A border that is padded on four sides of the image.

\return 0 if the requested rectangle is valid, nonzero (-1) otherwise.