[primitives] add primtives_hint_str

This commit is contained in:
akallabeth
2025-01-10 12:20:30 +01:00
parent a9d2c5330c
commit cf392cdfe1
2 changed files with 25 additions and 0 deletions

View File

@@ -276,6 +276,14 @@ typedef enum
FREERDP_API const char* primitives_avc444_frame_type_str(avc444_frame_type type);
/** @brief convert a hint to a string
*
* @param hint the hint to stringify
* @return the string representation of the hint
* @since version 3.11.0
*/
FREERDP_API const char* primtives_hint_str(primitive_hints hint);
#ifdef __cplusplus
}
#endif

View File

@@ -425,3 +425,20 @@ const char* primitives_avc444_frame_type_str(avc444_frame_type type)
return "INVALID_FRAME_TYPE";
}
}
const char* primtives_hint_str(primitive_hints hint)
{
switch (hint)
{
case PRIMITIVES_PURE_SOFT:
return "PRIMITIVES_PURE_SOFT";
case PRIMITIVES_ONLY_CPU:
return "PRIMITIVES_ONLY_CPU";
case PRIMITIVES_ONLY_GPU:
return "PRIMITIVES_ONLY_GPU";
case PRIMITIVES_AUTODETECT:
return "PRIMITIVES_AUTODETECT";
default:
return "PRIMITIVES_UNKNOWN";
}
}