[−][src]Enum k4a_sys_temp::k4a_image_format_t
Image format type.
\remarks The image format indicates how the \ref k4a_image_t buffer data is interpreted.
\xmlonly
Variants
Color image type MJPG.
\details The buffer for each image is encoded as a JPEG and can be decoded by a JPEG decoder.
\details Because the image is compressed, the stride parameter for the \ref k4a_image_t is not applicable.
\details Each MJPG encoded image in a stream may be of differing size depending on the compression efficiency.
Color image type NV12.
\details NV12 images separate the luminance and chroma data such that all the luminance is at the beginning of the buffer, and the chroma lines follow immediately after.
\details Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory. Chroma has half as many lines of height and half the width in pixels of the luminance. Each chroma line has the same width in bytes as a luminance line.
Color image type YUY2.
\details YUY2 stores chroma and luminance data in interleaved pixels.
\details Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory.
Color image type BGRA32.
\details Each pixel of BGRA32 data is four bytes. The first three bytes represent Blue, Green, and Red data. The fourth byte is the alpha channel and is unused in the Azure Kinect APIs.
\details Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory.
\details The Azure Kinect device does not natively capture in this format. Requesting images of this format requires additional computation in the API.
Depth image type DEPTH16.
\details Each pixel of DEPTH16 data is two bytes of little endian unsigned depth data. The unit of the data is in millimeters from the origin of the camera.
\details Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory.
Image type IR16.
\details Each pixel of IR16 data is two bytes of little endian unsigned depth data. The value of the data represents brightness.
\details This format represents infrared light and is captured by the depth camera.
\details Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory.
Single channel image type CUSTOM8.
\details Each pixel of CUSTOM8 is a single channel one byte of unsigned data.
\details Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory.
Single channel image type CUSTOM16.
\details Each pixel of CUSTOM16 is a single channel two bytes of little endian unsigned data.
\details Stride indicates the length of each line in bytes and should be used to determine the start location of each line of the image in memory.
Custom image format.
\details Used in conjunction with user created images or images packing non-standard data.
\details See the originator of the custom formatted image for information on how to interpret the data.
Trait Implementations
impl Clone for k4a_image_format_t
[src]
pub fn clone(&self) -> k4a_image_format_t
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for k4a_image_format_t
[src]
impl Debug for k4a_image_format_t
[src]
impl Eq for k4a_image_format_t
[src]
impl Hash for k4a_image_format_t
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<k4a_image_format_t> for k4a_image_format_t
[src]
pub fn eq(&self, other: &k4a_image_format_t) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for k4a_image_format_t
[src]
impl StructuralPartialEq for k4a_image_format_t
[src]
Auto Trait Implementations
impl RefUnwindSafe for k4a_image_format_t
[src]
impl Send for k4a_image_format_t
[src]
impl Sync for k4a_image_format_t
[src]
impl Unpin for k4a_image_format_t
[src]
impl UnwindSafe for k4a_image_format_t
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,