kinect/codes/Azure-Kinect-Sensor-SDK/include/k4ainternal/capture.h

64 lines
2.0 KiB
C

/** \file capture.h
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
* Kinect For Azure SDK.
*/
#ifndef CAPTURE_H
#define CAPTURE_H
#include <k4a/k4atypes.h>
#include <k4ainternal/image.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Create a reference counted k4a_capture_t for tracking synchronized images.
*
* \param capture_handle
* The capture handle
*
* /ref k4a_capture_t object this API creates is with a base ref count of 1. It will automatically be deleted when
* its ref count reaches zero. Any k4a_image_t's associated with this capture will also have a reference removed when
* this object is destroyed.
*/
k4a_result_t capture_create(k4a_capture_t *capture_handle);
/** Increase the ref count on \ref k4a_capture_t blob
*
* \param capture_handle
* The k4a_capture_t blob
*
* /ref k4a_capture_t object ref count is increased by one
*/
void capture_inc_ref(k4a_capture_t capture_handle);
/** Decrease the ref count on \ref k4a_capture_t blob
*
* \param capture_handle
* The k4a_capture_t blob
*
* /ref k4a_capture_t object ref count is increased by one
*/
void capture_dec_ref(k4a_capture_t capture_handle);
k4a_image_t capture_get_color_image(k4a_capture_t capture_handle);
k4a_image_t capture_get_depth_image(k4a_capture_t capture_handle);
k4a_image_t capture_get_imu_image(k4a_capture_t capture_handle);
k4a_image_t capture_get_ir_image(k4a_capture_t capture_handle);
void capture_set_color_image(k4a_capture_t capture_handle, k4a_image_t image_handle);
void capture_set_depth_image(k4a_capture_t capture_handle, k4a_image_t image_handle);
void capture_set_imu_image(k4a_capture_t capture_handle, k4a_image_t image_handle);
void capture_set_ir_image(k4a_capture_t capture_handle, k4a_image_t image_handle);
void capture_set_temperature_c(k4a_capture_t capture_handle, float temperature_c);
float capture_get_temperature_c(k4a_capture_t capture_handle);
#ifdef __cplusplus
}
#endif
#endif /* CAPTURE_H */