pub struct CuImageBufferFormat {
pub width: u32,
pub height: u32,
pub stride: u32,
pub pixel_format: [u8; 4],
}Fields§
§width: u32§height: u32§stride: u32§pixel_format: [u8; 4]Implementations§
Source§impl CuImageBufferFormat
impl CuImageBufferFormat
pub fn plane_count(&self) -> usize
pub fn is_packed(&self) -> bool
pub fn packed_row_bytes(&self) -> Option<u32>
pub fn plane(&self, index: usize) -> Option<CuImagePlaneLayout>
pub fn is_valid(&self) -> bool
pub fn required_bytes(&self) -> usize
pub fn byte_size(&self) -> usize
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuImageBufferFormat
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuImageBufferFormat
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for CuImageBufferFormat
impl Clone for CuImageBufferFormat
impl Copy for CuImageBufferFormat
Source§impl Debug for CuImageBufferFormat
impl Debug for CuImageBufferFormat
Source§impl<__Context> Decode<__Context> for CuImageBufferFormat
impl<__Context> Decode<__Context> for CuImageBufferFormat
Source§impl Default for CuImageBufferFormat
impl Default for CuImageBufferFormat
Source§impl<'de> Deserialize<'de> for CuImageBufferFormat
impl<'de> Deserialize<'de> for CuImageBufferFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for CuImageBufferFormat
impl Encode for CuImageBufferFormat
Source§impl Serialize for CuImageBufferFormat
impl Serialize for CuImageBufferFormat
Source§impl TypePath for CuImageBufferFormat
impl TypePath for CuImageBufferFormat
Source§impl ValueDecode for CuImageBufferFormat
impl ValueDecode for CuImageBufferFormat
Source§const DECODE: &'static ValueDecodeSpec
const DECODE: &'static ValueDecodeSpec
Complete wire recipe for this encoding.
Source§const METADATA: &'static [ValueMetadata] = _
const METADATA: &'static [ValueMetadata] = _
Static logical metadata retained alongside the wire recipe. Read more
Auto Trait Implementations§
impl Freeze for CuImageBufferFormat
impl RefUnwindSafe for CuImageBufferFormat
impl Send for CuImageBufferFormat
impl Sync for CuImageBufferFormat
impl Unpin for CuImageBufferFormat
impl UnsafeUnpin for CuImageBufferFormat
impl UnwindSafe for CuImageBufferFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CuMsgPayload for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ElementType for T
impl<T> ElementType for T
impl<T> GetTypeRegistration for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more