Azure Kinect Sensor SDK  refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK

◆ k4a_playback_set_color_conversion()

k4a_result_t k4a_playback_set_color_conversion ( k4a_playback_t  playback_handle,
k4a_image_format_t  target_format 
)
related

Set the image format that color captures will be converted to.

By default the conversion format will be the same as the image format stored in the recording file, and no conversion will occur.

Parameters
playback_handleHandle obtained by k4a_playback_open().
target_formatThe target image format to be returned in captures.
Returns
K4A_RESULT_SUCCEEDED if the format conversion is supported. K4A_RESULT_FAILED otherwise.
Remarks
After the color conversion format is set, all k4a_capture_t objects returned from the playback handle will have their color images converted to the target_format.
Color format conversion occurs in the user-thread, so setting target_format to anything other than the format stored in the file may significantly increase the latency of k4a_playback_get_next_capture() and k4a_playback_get_previous_capture().