[−][src]Struct azure_kinect::image::Image
Implementations
impl<'_> Image<'_>
[src]
pub fn with_format(
factory: &Factory,
format: k4a_image_format_t,
width_pixels: i32,
height_pixels: i32,
stride_bytes: i32
) -> Result<Image, Error>
[src]
factory: &Factory,
format: k4a_image_format_t,
width_pixels: i32,
height_pixels: i32,
stride_bytes: i32
) -> Result<Image, Error>
Create a blank image
pub fn with_buffer(
factory: &Factory,
format: k4a_image_format_t,
width_pixels: i32,
height_pixels: i32,
stride_bytes: i32,
buffer: *mut u8,
buffer_size: usize,
buffer_release_cb: k4a_memory_destroy_cb_t,
buffer_release_cb_context: *mut ()
) -> Result<Image, Error>
[src]
factory: &Factory,
format: k4a_image_format_t,
width_pixels: i32,
height_pixels: i32,
stride_bytes: i32,
buffer: *mut u8,
buffer_size: usize,
buffer_release_cb: k4a_memory_destroy_cb_t,
buffer_release_cb_context: *mut ()
) -> Result<Image, Error>
Create an image from a pre-allocated buffer
pub fn get_buffer(&self) -> *const u8
[src]
Get the image buffer
pub fn get_mut_buffer(&mut self) -> *mut u8
[src]
Get the mutable image buffer
pub fn get_size(&self) -> usize
[src]
Get the image buffer size in bytes
pub fn get_format(&self) -> k4a_image_format_t
[src]
Get the image format of the image
pub fn get_width_pixels(&self) -> i32
[src]
Get the image width in pixels
pub fn get_height_pixels(&self) -> i32
[src]
Get the image height in pixels
pub fn get_stride_bytes(&self) -> i32
[src]
Get the image stride in bytes
pub fn get_device_timestamp_usec(&self) -> u64
[src]
Get the image's device timestamp in microseconds
pub fn get_system_timestamp_nsec(&self) -> u64
[src]
Get the image's system timestamp in nanoseconds
pub fn get_exposure_usec(&self) -> u64
[src]
Get the image exposure time in microseconds
pub fn get_white_balance(&self) -> u32
[src]
Get the image white balance in Kelvin (color images only)
pub fn get_iso_speed(&self) -> u32
[src]
Get the image's ISO speed (color images only)
pub fn set_device_timestamp_usec(&mut self, timestamp: u64)
[src]
Set the image's device timestamp in microseconds
pub fn set_system_timestamp_nsec(&self, timestamp: u64)
[src]
Set the image's system timestamp in nanoseconds
pub fn set_exposure_usec(&mut self, exposure: u64)
[src]
Set the image exposure time in microseconds
pub fn set_white_balance(&mut self, white_balance: u32)
[src]
Set the image white balance in Kelvin (color images only)
pub fn set_iso_speed(&mut self, iso_speed: u32)
[src]
Set the image's ISO speed (color images only)
Trait Implementations
impl<'_> Clone for Image<'_>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'_> Drop for Image<'_>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Image<'a>
impl<'a> !Send for Image<'a>
impl<'a> !Sync for Image<'a>
impl<'a> Unpin for Image<'a>
impl<'a> !UnwindSafe for Image<'a>
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,