#[non_exhaustive]pub enum AllocationFormat {
Video(PixelFormat),
AudioPlanarF32,
CompressedVideo(FourCc),
CompressedAudio(FourCc),
}Expand description
The kind of frame an AllocationRequest is for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Video(PixelFormat)
Uncompressed video in this pixel format.
AudioPlanarF32
Uncompressed planar 32-bit floating-point audio.
CompressedVideo(FourCc)
Compressed video with this FourCC.
CompressedAudio(FourCc)
Compressed audio with this FourCC.
Trait Implementations§
Source§impl Clone for AllocationFormat
impl Clone for AllocationFormat
impl Copy for AllocationFormat
Source§impl Debug for AllocationFormat
impl Debug for AllocationFormat
impl Eq for AllocationFormat
Source§impl Hash for AllocationFormat
impl Hash for AllocationFormat
Source§impl PartialEq for AllocationFormat
impl PartialEq for AllocationFormat
impl StructuralPartialEq for AllocationFormat
Auto Trait Implementations§
impl Freeze for AllocationFormat
impl RefUnwindSafe for AllocationFormat
impl Send for AllocationFormat
impl Sync for AllocationFormat
impl Unpin for AllocationFormat
impl UnsafeUnpin for AllocationFormat
impl UnwindSafe for AllocationFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more