pub type YUVABackendTextureInfo = Handle<GrYUVABackendTextureInfo>;
Expand description
A description of a set BackendTextures that hold the planar data described by a YUVAInfo.
Aliased Type§
struct YUVABackendTextureInfo(/* private fields */);
Implementations§
Source§impl YUVABackendTextureInfo
impl YUVABackendTextureInfo
pub const MAX_PLANES: usize = 4usize
Sourcepub fn new(
info: &YUVAInfo,
formats: &[BackendFormat],
mip_mapped: Mipmapped,
origin: SurfaceOrigin,
) -> Option<Self>
pub fn new( info: &YUVAInfo, formats: &[BackendFormat], mip_mapped: Mipmapped, origin: SurfaceOrigin, ) -> Option<Self>
Initializes a YUVABackendTextureInfo to describe a set of textures that can store the planes indicated by the YUVAInfo. The texture dimensions are taken from the YUVAInfo’s plane dimensions. All the described textures share a common origin. The planar image this describes will be mip mapped if all the textures are individually mip mapped as indicated by Mipmapped. This will return None if the passed formats’ channels don’t agree with YUVAInfo.
pub fn yuva_info(&self) -> &YUVAInfo
pub fn yuv_color_space(&self) -> YUVColorSpace
pub fn mipmapped(&self) -> Mipmapped
pub fn texture_origin(&self) -> SurfaceOrigin
Sourcepub fn num_planes(&self) -> usize
pub fn num_planes(&self) -> usize
The number of crate::Pixmap planes.
Sourcepub fn plane_format(&self, i: usize) -> Option<&BackendFormat>
pub fn plane_format(&self, i: usize) -> Option<&BackendFormat>
Format of the ith plane, or None
if i >= Self::num_planes()
Sourcepub fn plane_formats(&self) -> &[BackendFormat]
pub fn plane_formats(&self) -> &[BackendFormat]
All plane formats.