[−][src]Function sdl2_sys::SDL_UpdateYUVTexture
pub unsafe extern "C" fn SDL_UpdateYUVTexture(
texture: *mut SDL_Texture,
rect: *const SDL_Rect,
Yplane: *const Uint8,
Ypitch: c_int,
Uplane: *const Uint8,
Upitch: c_int,
Vplane: *const Uint8,
Vpitch: c_int
) -> c_int
\brief Update a rectangle within a planar YV12 or IYUV texture with new pixel data.
\param texture The texture to update \param rect A pointer to the rectangle of pixels to update, or NULL to update the entire texture. \param Yplane The raw pixel data for the Y plane. \param Ypitch The number of bytes between rows of pixel data for the Y plane. \param Uplane The raw pixel data for the U plane. \param Upitch The number of bytes between rows of pixel data for the U plane. \param Vplane The raw pixel data for the V plane. \param Vpitch The number of bytes between rows of pixel data for the V plane.
\return 0 on success, or -1 if the texture is not valid.
\note You can use SDL_UpdateTexture() as long as your pixel data is a contiguous block of Y and U/V planes in the proper order, but this function is available if your pixel data is not contiguous.