Trait crabgrab::feature::metal::MetalVideoFrameExt
source · pub trait MetalVideoFrameExt {
// Required method
fn get_metal_texture(
&self,
plane: MetalVideoFramePlaneTexture
) -> Result<Texture, MacosVideoFrameError>;
}
Expand description
A video frame which can be used to create metal textures
Required Methods§
sourcefn get_metal_texture(
&self,
plane: MetalVideoFramePlaneTexture
) -> Result<Texture, MacosVideoFrameError>
fn get_metal_texture( &self, plane: MetalVideoFramePlaneTexture ) -> Result<Texture, MacosVideoFrameError>
Get the texture for the given plane of the video frame