Function vizia_core::vg::gpu::images::texture_from_yuva_textures

pub fn texture_from_yuva_textures(
    context: &mut RCHandle<GrRecordingContext>,
    yuva_textures: &Handle<GrYUVABackendTextures>,
    image_color_space: impl Into<Option<RCHandle<SkColorSpace>>>,
) -> Option<RCHandle<SkImage>>
Expand description

Creates a GPU-backed Image from YUV[A] planar textures. This requires that the textures stay valid for the lifetime of the image. The ReleaseContext can be used to know when it is safe to either delete or overwrite the textures. If ReleaseProc is provided it is also called before return on failure.

  • context - GPU context
  • yuva_textures - A set of textures containing YUVA data and a description of the data and transformation to RGBA.
  • image_color_space - range of colors of the resulting image after conversion to RGB; may be None
  • texture_release_proc - called when the backend textures can be released
  • release_context - state passed to texture_release_proc Returns: created Image, or None