k4a_device_start_cameras should use const k4a_device_configuration_t (#393)

This commit is contained in:
Andrew Duan 2019-06-06 10:34:38 -07:00 коммит произвёл GitHub
Родитель d713b65874
Коммит d4b661dce5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -1220,7 +1220,7 @@ K4A_EXPORT void k4a_image_release(k4a_image_t image_handle);
* </requirements>
* \endxmlonly
*/
K4A_EXPORT k4a_result_t k4a_device_start_cameras(k4a_device_t device_handle, k4a_device_configuration_t *config);
K4A_EXPORT k4a_result_t k4a_device_start_cameras(k4a_device_t device_handle, const k4a_device_configuration_t *config);
/** Stops the color and depth camera capture.
*

Просмотреть файл

@ -996,7 +996,7 @@ public:
*
* \sa k4a_device_start_cameras
*/
void start_cameras(k4a_device_configuration_t *configuration)
void start_cameras(const k4a_device_configuration_t *configuration)
{
k4a_result_t result = k4a_device_start_cameras(m_handle, configuration);
if (K4A_RESULT_SUCCEEDED != result)

Просмотреть файл

@ -58,7 +58,7 @@ void capturesync_destroy(capturesync_t capturesync_handle);
* \remarks
* Enables the capturesync to enable its queues and begin synchronizing depth and color frames
*/
k4a_result_t capturesync_start(capturesync_t capturesync_handle, k4a_device_configuration_t *config);
k4a_result_t capturesync_start(capturesync_t capturesync_handle, const k4a_device_configuration_t *config);
/** Prepares the capturesync object to stop synchronizing color and depth captures
*

Просмотреть файл

@ -101,7 +101,7 @@ void colormcu_destroy(colormcu_t colormcu_handle);
*
* \return K4A_RESULT_SUCCEEDED if the call succeeded
*/
k4a_result_t colormcu_set_multi_device_mode(colormcu_t colormcu_handle, k4a_device_configuration_t *config);
k4a_result_t colormcu_set_multi_device_mode(colormcu_t colormcu_handle, const k4a_device_configuration_t *config);
/** Writes the device synchronization settings
*

Просмотреть файл

@ -475,7 +475,7 @@ void capturesync_destroy(capturesync_t capturesync_handle)
capturesync_t_destroy(capturesync_handle);
}
k4a_result_t capturesync_start(capturesync_t capturesync_handle, k4a_device_configuration_t *config)
k4a_result_t capturesync_start(capturesync_t capturesync_handle, const k4a_device_configuration_t *config)
{
RETURN_VALUE_IF_HANDLE_INVALID(K4A_RESULT_FAILED, capturesync_t, capturesync_handle);
RETURN_VALUE_IF_ARG(K4A_RESULT_FAILED, config == NULL);

Просмотреть файл

@ -217,7 +217,7 @@ k4a_result_t colormcu_get_external_sync_jack_state(colormcu_t colormcu_handle,
* K4A_RESULT_FAILED Operation failed
*
*/
k4a_result_t colormcu_set_multi_device_mode(colormcu_t colormcu_handle, k4a_device_configuration_t *config)
k4a_result_t colormcu_set_multi_device_mode(colormcu_t colormcu_handle, const k4a_device_configuration_t *config)
{
RETURN_VALUE_IF_HANDLE_INVALID(K4A_RESULT_FAILED, colormcu_t, colormcu_handle)
colormcu_context_t *colormcu = colormcu_t_get_context(colormcu_handle);

Просмотреть файл

@ -522,7 +522,7 @@ void k4a_image_release(k4a_image_t image_handle)
image_dec_ref(image_handle);
}
static k4a_result_t validate_configuration(k4a_context_t *device, k4a_device_configuration_t *config)
static k4a_result_t validate_configuration(k4a_context_t *device, const k4a_device_configuration_t *config)
{
RETURN_VALUE_IF_ARG(K4A_RESULT_FAILED, config == NULL);
RETURN_VALUE_IF_ARG(K4A_RESULT_FAILED, device == NULL);
@ -686,7 +686,7 @@ static k4a_result_t validate_configuration(k4a_context_t *device, k4a_device_con
return result;
}
k4a_result_t k4a_device_start_cameras(k4a_device_t device_handle, k4a_device_configuration_t *config)
k4a_result_t k4a_device_start_cameras(k4a_device_t device_handle, const k4a_device_configuration_t *config)
{
RETURN_VALUE_IF_ARG(K4A_RESULT_FAILED, config == NULL);
RETURN_VALUE_IF_HANDLE_INVALID(K4A_RESULT_FAILED, k4a_device_t, device_handle);