Struct azure_kinect::image::Image [−][src]
pub struct Image<'a> { /* fields omitted */ }
Implementations
pub fn with_format(
factory: &'a Factory,
format: ImageFormat,
width_pixels: i32,
height_pixels: i32,
stride_bytes: i32
) -> Result<Image<'a>, Error>
👎 Deprecated since 0.2: Factory::image_create
pub fn with_format(
factory: &'a Factory,
format: ImageFormat,
width_pixels: i32,
height_pixels: i32,
stride_bytes: i32
) -> Result<Image<'a>, Error>
Factory::image_create
Create a blank image
pub fn with_buffer(
factory: &'a Factory,
format: ImageFormat,
width_pixels: i32,
height_pixels: i32,
stride_bytes: i32,
buffer: *mut u8,
buffer_size: usize,
buffer_release_cb: Option<MemoryDestroyCallback>,
buffer_release_cb_context: *mut ()
) -> Result<Image<'a>, Error>
👎 Deprecated since 0.2: Factory::image_create_from_buffer
pub fn with_buffer(
factory: &'a Factory,
format: ImageFormat,
width_pixels: i32,
height_pixels: i32,
stride_bytes: i32,
buffer: *mut u8,
buffer_size: usize,
buffer_release_cb: Option<MemoryDestroyCallback>,
buffer_release_cb_context: *mut ()
) -> Result<Image<'a>, Error>
Factory::image_create_from_buffer
Create an image from a pre-allocated buffer
Get the image buffer
Get the mutable image buffer
Get the image format of the image
Get the image width in pixels
Get the image height in pixels
Get the image stride in bytes
Get the image’s device timestamp in microseconds
Get the image’s system timestamp in nanoseconds
Get the image exposure time in microseconds
Get the image white balance in Kelvin (color images only)
Get the image’s ISO speed (color images only)
Set the image’s device timestamp in microseconds
Set the image’s system timestamp in nanoseconds
Set the image exposure time in microseconds
Set the image white balance in Kelvin (color images only)
Set the image’s ISO speed (color images only)
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Image<'a>
impl<'a> UnwindSafe for Image<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more