Group cuvis_session
Public Functions
Detailed Description
The main file format of the SDK
Public Functions Documentation
function cuvis_session_file_copy_handle
Creates an additional session file handle.
SDK_CAPI CUVIS_STATUS SDK_CCALL cuvis_session_file_copy_handle (
CUVIS_SESSION_FILE i_sess,
CUVIS_SESSION_FILE * o_pSess
)
Creates an additional handle that points to the same instance as the supplied handle
Parameters:
i_sessThe handle of the session file to copyo_pSessThe new handle of the session file.
Returns:
status_ok if the session file handle could be doubled
function cuvis_session_file_free
Release a session_info file handle.
SDK_CAPI CUVIS_STATUS SDK_CCALL cuvis_session_file_free (
CUVIS_SESSION_FILE * o_pSess
)
Release a measurement by it's handle. The handle will be overwritten to CUVIS_HANDLE_NULL This will not affect any measurements on disk. Measurements loaded from the session_info file remain valid.
Parameters:
o_pSessThe handle to the measurement to be deleted
Returns:
status_ok if the session_info file was released.
function cuvis_session_file_get_fps
get a session_info file's FPS
SDK_CAPI CUVIS_STATUS SDK_CCALL cuvis_session_file_get_fps (
CUVIS_SESSION_FILE i_sess,
double * o_pFps
)
The session_info file meta-Information will be available only if the mode cuvis_session_file_get_operation_mode returns "Internal"
Parameters:
i_sessthe session_info file handleo_pFpsthe frames per second the session_info was recorded with.
Returns:
status_ok if fps could be retrieved, status_not_available if the session_info file has not FPS property set.
function cuvis_session_file_get_hash
get a session_info file's hash
SDK_CAPI CUVIS_STATUS SDK_CCALL cuvis_session_file_get_hash (
CUVIS_SESSION_FILE i_sess,
CUVIS_CHAR * o_pHash
)
Parameters:
i_sessthe session_info file handleo_pHashthe hash of the sessionfile.
Returns:
status_ok if hash could be retrieved, status_not_available if the sessionfile has no hash property set.
function cuvis_session_file_get_mesu
Load a measurement from the session_info file.
SDK_CAPI CUVIS_STATUS SDK_CCALL cuvis_session_file_get_mesu (
CUVIS_SESSION_FILE i_sess,
CUVIS_INT i_frameNo,
CUVIS_SESSION_ITEM_TYPE i_type,
CUVIS_MESU * o_pMesu
)
Parameters:
i_sessthe session_info file handlei_frameNothe frame no. Counting from 0, must be below value of cuvis_session_file_get_size of it's respectivei_typei_typethe type of listing (size depends on type)o_pMesuthe handle of the measurement.
Returns:
status_ok, if the measurement could be loaded. status_no_measurement if the measurement was dropped. status_error if the frame exeeds the number of frames.
function cuvis_session_file_get_operation_mode
returns the operation mode the session_info file was recorded in
SDK_CAPI CUVIS_STATUS SDK_CCALL cuvis_session_file_get_operation_mode (
CUVIS_SESSION_FILE i_sess,
CUVIS_OPERATION_MODE * o_pMode
)
The operation mode gives indication how the session_info file was recorded.
Parameters:
i_sessthe session_info file handleo_pModethe operation mode of the session_info file.
Returns:
status_ok if no error occurred.
function cuvis_session_file_get_reference_mesu
Load a reference measurement from the session_info file.
SDK_CAPI CUVIS_STATUS SDK_CCALL cuvis_session_file_get_reference_mesu (
CUVIS_SESSION_FILE i_sess,
CUVIS_INT i_frameNo,
CUVIS_REFERENCE_TYPE i_type,
CUVIS_MESU * o_pMesu
)
Parameters:
i_sessthe session_info file handlei_frameNothe reference number. Counting from 0. Ifi_typeis not set, refers to the index of all references and must be below the value of cuvis_session_file_get_size using type session_item_type_references. Ifi_typeis set, must be 0.i_typethe type of reference measurement requestedo_pMesuthe handle of the measurement.
Returns:
status_ok, if the reference could be loaded. status_no_measurement if the reference does not exist. status_error if the i_frameNo exeeds the number of references.
function cuvis_session_file_get_size
Get number of total frames of session_info file.
SDK_CAPI CUVIS_STATUS SDK_CCALL cuvis_session_file_get_size (
CUVIS_SESSION_FILE i_sess,
CUVIS_SESSION_ITEM_TYPE i_type,
CUVIS_INT * o_pSize
)
Parameters:
i_sessthe session_info file handlei_typethe type of listing (size depends on type)o_pSizethe size is written here.
Returns:
status_ok if no error occurred.
function cuvis_session_file_get_thumbnail
Get the thumbnail image of a session file.
SDK_CAPI CUVIS_STATUS SDK_CCALL cuvis_session_file_get_thumbnail (
CUVIS_SESSION_FILE i_sess,
CUVIS_IMBUFFER * o_pThumbnail
)
Return the thumbnail of a session file. The image data is valid as long as the session file handle is not released.
see also: Reserved Keys
Parameters:
i_sessThe session file handleo_pThumbnailThe image buffer to be filled
Returns:
status_ok if the buffer could be filled with the image element. status_not_available if the requested data was empty, or the key could not be found
function cuvis_session_file_load
Load a session_info file from disk.
SDK_CAPI CUVIS_STATUS SDK_CCALL cuvis_session_file_load (
const CUVIS_CHAR * i_path,
CUVIS_SESSION_FILE * o_pSess
)
The session_info file is a cu3s file and consists of binary cu3 measurement data. Call cuvis_session_file_get_mesu to obtain a single measurement frame. SessionFile files can be create with the Cube Exporter (see cuvis_exporter_create_cube)
Note:
Do not read a file currently opened for writing.
Parameters:
i_paththe file path of the session_info fileo_pSessthe handle of the session_info file.
Returns:
status_ok, if the measurement could be loaded.