Monado OpenXR Runtime
oxr_api_face_tracking.c File Reference

face tracking related API entrypoint functions. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "util/u_trace_marker.h"
#include "oxr_objects.h"
#include "oxr_logger.h"
#include "oxr_api_funcs.h"
#include "oxr_api_verify.h"
#include "oxr_handle.h"
Include dependency graph for oxr_api_face_tracking.c:

Macros

#define OXR_VERIFY_FACE_EXPRESSION_COUNT(fttype)
 

Functions

XRAPI_ATTR XrResult XRAPI_CALL oxr_xrCreateFacialTrackerHTC (XrSession session, const XrFacialTrackerCreateInfoHTC *createInfo, XrFacialTrackerHTC *facialTracker)
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrDestroyFacialTrackerHTC (XrFacialTrackerHTC facialTracker)
 
XRAPI_ATTR XrResult XRAPI_CALL oxr_xrGetFacialExpressionsHTC (XrFacialTrackerHTC facialTracker, XrFacialExpressionsHTC *facialExpressions)
 

Detailed Description

face tracking related API entrypoint functions.

Author
Korcan Hussein korca.nosp@m.n.hu.nosp@m.ssein.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m

Macro Definition Documentation

◆ OXR_VERIFY_FACE_EXPRESSION_COUNT

#define OXR_VERIFY_FACE_EXPRESSION_COUNT (   fttype)
Value:
if (facial_tracker_htc->facial_tracking_type == XRT_FACIAL_TRACKING_TYPE_##fttype##_DEFAULT_HTC && \
facialExpressions->expressionCount < XRT_FACIAL_EXPRESSION_##fttype##_COUNT_HTC) { \
return oxr_error( \
&log, XR_ERROR_SIZE_INSUFFICIENT, \
"\"expressionCount\" (%d) size is less than the minimum size (%d) required for " #fttype \
" expressions.\n", \
facialExpressions->expressionCount, XRT_FACIAL_EXPRESSION_##fttype##_COUNT_HTC); \
}
XrResult oxr_error(struct oxr_logger *logger, XrResult result, const char *fmt,...)
Definition: oxr_logger.c:203