Function sdl2_sys::SDL_UpdateYUVTexture
source ยท 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
Expand description
Update a rectangle within a planar YV12 or IYUV texture with new pixel data.
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.
\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 \returns 0 on success or -1 if the texture is not valid; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.1.
\sa SDL_UpdateTexture