[][src]Function libaom_sys::aom_img_set_rect

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

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.

\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 otherwise.