Skip to main content

cudaChannelFormatKind

Enum cudaChannelFormatKind 

Source
#[repr(u32)]
pub enum cudaChannelFormatKind {
Show 46 variants cudaChannelFormatKindSigned = 0, cudaChannelFormatKindUnsigned = 1, cudaChannelFormatKindFloat = 2, cudaChannelFormatKindNone = 3, cudaChannelFormatKindNV12 = 4, cudaChannelFormatKindUnsignedNormalized8X1 = 5, cudaChannelFormatKindUnsignedNormalized8X2 = 6, cudaChannelFormatKindUnsignedNormalized8X4 = 7, cudaChannelFormatKindUnsignedNormalized16X1 = 8, cudaChannelFormatKindUnsignedNormalized16X2 = 9, cudaChannelFormatKindUnsignedNormalized16X4 = 10, cudaChannelFormatKindSignedNormalized8X1 = 11, cudaChannelFormatKindSignedNormalized8X2 = 12, cudaChannelFormatKindSignedNormalized8X4 = 13, cudaChannelFormatKindSignedNormalized16X1 = 14, cudaChannelFormatKindSignedNormalized16X2 = 15, cudaChannelFormatKindSignedNormalized16X4 = 16, cudaChannelFormatKindUnsignedBlockCompressed1 = 17, cudaChannelFormatKindUnsignedBlockCompressed1SRGB = 18, cudaChannelFormatKindUnsignedBlockCompressed2 = 19, cudaChannelFormatKindUnsignedBlockCompressed2SRGB = 20, cudaChannelFormatKindUnsignedBlockCompressed3 = 21, cudaChannelFormatKindUnsignedBlockCompressed3SRGB = 22, cudaChannelFormatKindUnsignedBlockCompressed4 = 23, cudaChannelFormatKindSignedBlockCompressed4 = 24, cudaChannelFormatKindUnsignedBlockCompressed5 = 25, cudaChannelFormatKindSignedBlockCompressed5 = 26, cudaChannelFormatKindUnsignedBlockCompressed6H = 27, cudaChannelFormatKindSignedBlockCompressed6H = 28, cudaChannelFormatKindUnsignedBlockCompressed7 = 29, cudaChannelFormatKindUnsignedBlockCompressed7SRGB = 30, cudaChannelFormatKindUnsignedNormalized1010102 = 31, cudaChannelFormatKindUnsigned8Packed422 = 32, cudaChannelFormatKindUnsigned8Packed444 = 33, cudaChannelFormatKindUnsigned8SemiPlanar420 = 34, cudaChannelFormatKindUnsigned16SemiPlanar420 = 35, cudaChannelFormatKindUnsigned8SemiPlanar422 = 36, cudaChannelFormatKindUnsigned16SemiPlanar422 = 37, cudaChannelFormatKindUnsigned8SemiPlanar444 = 38, cudaChannelFormatKindUnsigned16SemiPlanar444 = 39, cudaChannelFormatKindUnsigned8Planar420 = 40, cudaChannelFormatKindUnsigned16Planar420 = 41, cudaChannelFormatKindUnsigned8Planar422 = 42, cudaChannelFormatKindUnsigned16Planar422 = 43, cudaChannelFormatKindUnsigned8Planar444 = 44, cudaChannelFormatKindUnsigned16Planar444 = 45,
}
Expand description

Channel format kind.

Variants§

§

cudaChannelFormatKindSigned = 0

Signed channel format.

§

cudaChannelFormatKindUnsigned = 1

Unsigned channel format.

§

cudaChannelFormatKindFloat = 2

Float channel format.

§

cudaChannelFormatKindNone = 3

No channel format.

§

cudaChannelFormatKindNV12 = 4

Unsigned 8-bit integers, planar 4:2:0 YUV format.

§

cudaChannelFormatKindUnsignedNormalized8X1 = 5

1 channel unsigned 8-bit normalized integer.

§

cudaChannelFormatKindUnsignedNormalized8X2 = 6

2 channel unsigned 8-bit normalized integer.

§

cudaChannelFormatKindUnsignedNormalized8X4 = 7

4 channel unsigned 8-bit normalized integer.

§

cudaChannelFormatKindUnsignedNormalized16X1 = 8

1 channel unsigned 16-bit normalized integer.

§

cudaChannelFormatKindUnsignedNormalized16X2 = 9

2 channel unsigned 16-bit normalized integer.

§

cudaChannelFormatKindUnsignedNormalized16X4 = 10

4 channel unsigned 16-bit normalized integer.

§

cudaChannelFormatKindSignedNormalized8X1 = 11

1 channel signed 8-bit normalized integer.

§

cudaChannelFormatKindSignedNormalized8X2 = 12

2 channel signed 8-bit normalized integer.

§

cudaChannelFormatKindSignedNormalized8X4 = 13

4 channel signed 8-bit normalized integer.

§

cudaChannelFormatKindSignedNormalized16X1 = 14

1 channel signed 16-bit normalized integer.

§

cudaChannelFormatKindSignedNormalized16X2 = 15

2 channel signed 16-bit normalized integer.

§

cudaChannelFormatKindSignedNormalized16X4 = 16

4 channel signed 16-bit normalized integer.

§

cudaChannelFormatKindUnsignedBlockCompressed1 = 17

4 channel unsigned normalized block-compressed (BC1 compression) format.

§

cudaChannelFormatKindUnsignedBlockCompressed1SRGB = 18

4 channel unsigned normalized block-compressed (BC1 compression) format with sRGB encoding.

§

cudaChannelFormatKindUnsignedBlockCompressed2 = 19

4 channel unsigned normalized block-compressed (BC2 compression) format.

§

cudaChannelFormatKindUnsignedBlockCompressed2SRGB = 20

4 channel unsigned normalized block-compressed (BC2 compression) format with sRGB encoding.

§

cudaChannelFormatKindUnsignedBlockCompressed3 = 21

4 channel unsigned normalized block-compressed (BC3 compression) format.

§

cudaChannelFormatKindUnsignedBlockCompressed3SRGB = 22

4 channel unsigned normalized block-compressed (BC3 compression) format with sRGB encoding.

§

cudaChannelFormatKindUnsignedBlockCompressed4 = 23

1 channel unsigned normalized block-compressed (BC4 compression) format.

§

cudaChannelFormatKindSignedBlockCompressed4 = 24

1 channel signed normalized block-compressed (BC4 compression) format.

§

cudaChannelFormatKindUnsignedBlockCompressed5 = 25

2 channel unsigned normalized block-compressed (BC5 compression) format.

§

cudaChannelFormatKindSignedBlockCompressed5 = 26

2 channel signed normalized block-compressed (BC5 compression) format.

§

cudaChannelFormatKindUnsignedBlockCompressed6H = 27

3 channel unsigned half-float block-compressed (BC6H compression) format.

§

cudaChannelFormatKindSignedBlockCompressed6H = 28

3 channel signed half-float block-compressed (BC6H compression) format.

§

cudaChannelFormatKindUnsignedBlockCompressed7 = 29

4 channel unsigned normalized block-compressed (BC7 compression) format.

§

cudaChannelFormatKindUnsignedBlockCompressed7SRGB = 30

4 channel unsigned normalized block-compressed (BC7 compression) format with sRGB encoding.

§

cudaChannelFormatKindUnsignedNormalized1010102 = 31

4 channel unsigned normalized (10-bit, 10-bit, 10-bit, 2-bit) format.

§

cudaChannelFormatKindUnsigned8Packed422 = 32

4 channel unsigned 8-bit packed format, with 4:2:2 sampling.

§

cudaChannelFormatKindUnsigned8Packed444 = 33

4 channel unsigned 8-bit packed format, with 4:4:4 sampling.

§

cudaChannelFormatKindUnsigned8SemiPlanar420 = 34

3 channel unsigned 8-bit semi-planar format, with 4:2:0 sampling.

§

cudaChannelFormatKindUnsigned16SemiPlanar420 = 35

3 channel unsigned 16-bit semi-planar format, with 4:2:0 sampling.

§

cudaChannelFormatKindUnsigned8SemiPlanar422 = 36

3 channel unsigned 8-bit semi-planar format, with 4:2:2 sampling.

§

cudaChannelFormatKindUnsigned16SemiPlanar422 = 37

3 channel unsigned 16-bit semi-planar format, with 4:2:2 sampling.

§

cudaChannelFormatKindUnsigned8SemiPlanar444 = 38

3 channel unsigned 8-bit semi-planar format, with 4:4:4 sampling.

§

cudaChannelFormatKindUnsigned16SemiPlanar444 = 39

3 channel unsigned 16-bit semi-planar format, with 4:4:4 sampling.

§

cudaChannelFormatKindUnsigned8Planar420 = 40

3 channel unsigned 8-bit planar format, with 4:2:0 sampling.

§

cudaChannelFormatKindUnsigned16Planar420 = 41

3 channel unsigned 16-bit planar format, with 4:2:0 sampling.

§

cudaChannelFormatKindUnsigned8Planar422 = 42

3 channel unsigned 8-bit planar format, with 4:2:2 sampling.

§

cudaChannelFormatKindUnsigned16Planar422 = 43

3 channel unsigned 16-bit planar format, with 4:2:2 sampling.

§

cudaChannelFormatKindUnsigned8Planar444 = 44

3 channel unsigned 8-bit planar format, with 4:4:4 sampling.

§

cudaChannelFormatKindUnsigned16Planar444 = 45

3 channel unsigned 16-bit planar format, with 4:4:4 sampling.

Trait Implementations§

Source§

impl Clone for cudaChannelFormatKind

Source§

fn clone(&self) -> cudaChannelFormatKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for cudaChannelFormatKind

Source§

impl Debug for cudaChannelFormatKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for cudaChannelFormatKind

Source§

impl From<cudaChannelFormatKind> for u32

Source§

fn from(enum_value: cudaChannelFormatKind) -> Self

Converts to this type from the input type.
Source§

impl Hash for cudaChannelFormatKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for cudaChannelFormatKind

Source§

fn cmp(&self, other: &cudaChannelFormatKind) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for cudaChannelFormatKind

Source§

fn eq(&self, other: &cudaChannelFormatKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for cudaChannelFormatKind

Source§

fn partial_cmp(&self, other: &cudaChannelFormatKind) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for cudaChannelFormatKind

Source§

impl TryFrom<u32> for cudaChannelFormatKind

Source§

type Error = TryFromPrimitiveError<cudaChannelFormatKind>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for cudaChannelFormatKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.