mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[primitives] add primtives_hint_str
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user