File DlEnums.hpp¶
↰ Parent directory (DlSystem)
Contents
Definition (DlSystem/DlEnums.hpp)¶
Includes¶
cstdint
Included By¶
Namespaces¶
Enums¶
Typedefs¶
Full File Listing¶
-
namespace DlSystem¶
Typedefs
-
typedef bool DspPerfDcvsEnable_t¶
-
typedef uint32_t DspPerfSleepLatency_t¶
-
typedef uint32_t DspPerfSleepDisable_t¶
-
typedef uint32_t DspPerfRpcPollingTime_t¶
-
typedef uint32_t DspPerfAdaptivePollingTime_t¶
-
typedef uint32_t DspPerfHysteresisTime_t¶
-
typedef bool DspPerfAsyncVoteEnable_t¶
-
typedef bool HighPerformanceModeEnabled_t¶
-
typedef bool FastInitModeEnabled_t¶
Enums
-
enum class Runtime_t¶
Enumeration of supported target runtimes.
Values:
-
enumerator UNSET = -1¶
Special value indicating the property is unset.
-
enumerator CPU_FLOAT32 = 0¶
Run the processing on Snapdragon CPU. Data: float 32bit Math: float 32bit
-
enumerator CPU = CPU_FLOAT32¶
Default legacy enum to retain backward compatibility. CPU = CPU_FLOAT32
-
enumerator GPU_FLOAT32_16_HYBRID = 1¶
Run the processing on the Adreno GPU. Data: float 16bit Math: float 32bit
-
enumerator GPU = GPU_FLOAT32_16_HYBRID¶
Default legacy enum to retain backward compatibility. GPU = GPU_FLOAT32_16_HYBRID
-
enumerator DSP_FIXED8_TF = 2¶
Run the processing on the Hexagon DSP. Data: 8bit fixed point Tensorflow style format Math: 8bit fixed point Tensorflow style format
-
enumerator DSP = DSP_FIXED8_TF¶
Default legacy enum to retain backward compatibility. DSP = DSP_FIXED8_TF
-
enumerator GPU_FLOAT16 = 3¶
Run the processing on the Adreno GPU. Data: float 16bit Math: float 16bit
-
enumerator AIP_FIXED8_TF = 5¶
Run the processing on Snapdragon AIX+HVX. Data: 8bit fixed point Tensorflow style format Math: 8bit fixed point Tensorflow style format
-
enumerator AIP_FIXED_TF = AIP_FIXED8_TF¶
-
enumerator NUM_RUNTIME_TARGETS¶
Any new enums should be added above this line.
-
enumerator UNSET = -1¶
-
enum class RuntimeCheckOption_t¶
Enumeration of runtime available check options.
Values:
-
enumerator NORMAL_CHECK = 0¶
Perform standard runtime available check.
-
enumerator BASIC_CHECK = 1¶
Perform basic runtime available check, may be runtime specific.
-
enumerator UNSIGNEDPD_CHECK = 2¶
Perform unsignedPD runtime available check.
-
enumerator DEFAULT = 2¶
Perform standard runtime available check.
-
enumerator NUM_RUNTIMECHECK_OPTIONS¶
Any new enums should be added above this line.
-
enumerator NORMAL_CHECK = 0¶
-
enum class PerformanceProfile_t¶
Enumeration of various performance profiles that can be requested.
Values:
-
enumerator DEFAULT = 0¶
Run in a standard mode. This mode will be deprecated in the future and replaced with BALANCED.
-
enumerator BALANCED = 0¶
Run in a balanced mode.
-
enumerator HIGH_PERFORMANCE = 1¶
Run in high performance mode.
-
enumerator POWER_SAVER = 2¶
Run in a power sensitive mode, at the expense of performance.
-
enumerator SYSTEM_SETTINGS = 3¶
Use system settings. SNPE makes no calls to any performance related APIs.
-
enumerator SUSTAINED_HIGH_PERFORMANCE = 4¶
Run in sustained high performance mode.
-
enumerator BURST = 5¶
Run in burst mode.
-
enumerator LOW_POWER_SAVER = 6¶
Run in lower clock than POWER_SAVER, at the expense of performance.
-
enumerator HIGH_POWER_SAVER = 7¶
Run in higher clock and provides better performance than POWER_SAVER.
-
enumerator LOW_BALANCED = 8¶
Run in lower balanced mode.
-
enumerator EXTREME_POWER_SAVER = 9¶
Run in lowest clock at the expense of performance.
-
enumerator NUM_PERF_PROFILES¶
Any new enums should be added above this line.
-
enumerator DEFAULT = 0¶
-
enum class DspPerfVoltageCorner_t¶
Values:
-
enumerator DCVS_VOLTAGE_CORNER_DISABLE = 0x10¶
Maps to HAP_DCVS_VCORNER_DISABLE. Disable setting up voltage corner
-
enumerator DCVS_VOLTAGE_VCORNER_MIN_VOLTAGE_CORNER = 0x20¶
Maps to HAP_DCVS_VCORNER_SVS2. Set voltage corner to minimum value supported on platform
-
enumerator DCVS_VOLTAGE_VCORNER_SVS2 = 0x30¶
Maps to HAP_DCVS_VCORNER_SVS2. Set voltage corner to SVS2 value for the platform
-
enumerator DCVS_VOLTAGE_VCORNER_SVS = 0x40¶
Maps to HAP_DCVS_VCORNER_SVS. Set voltage corner to SVS value for the platform
-
enumerator DCVS_VOLTAGE_VCORNER_SVS_PLUS = 0x50¶
Maps to HAP_DCVS_VCORNER_SVS_PLUS. Set voltage corner to SVS_PLUS value for the platform
-
enumerator DCVS_VOLTAGE_VCORNER_NOM = 0x60¶
Maps to HAP_DCVS_VCORNER_NOM. Set voltage corner to NOMINAL value for the platform
-
enumerator DCVS_VOLTAGE_VCORNER_NOM_PLUS = 0x70¶
Maps to HAP_DCVS_VCORNER_NOM_PLUS. Set voltage corner to NOMINAL_PLUS value for the platform
-
enumerator DCVS_VOLTAGE_VCORNER_TURBO = 0x80¶
Maps to HAP_DCVS_VCORNER_TURBO. Set voltage corner to TURBO value for the platform
-
enumerator DCVS_VOLTAGE_VCORNER_TURBO_PLUS = 0x90¶
Maps to HAP_DCVS_VCORNER_TURBO_PLUS. Set voltage corner to TURBO_PLUS value for the platform
-
enumerator DCVS_VOLTAGE_VCORNER_TURBO_L1 = 0x92¶
-
enumerator DCVS_VOLTAGE_VCORNER_TURBO_L2 = DCVS_VOLTAGE_VCORNER_TURBO_L1¶
Set voltage corner to TURBO_L2 value for the platform.
-
enumerator DCVS_VOLTAGE_VCORNER_TURBO_L3 = 0x93¶
Set voltage corner to TURBO_L3 value for the platform.
-
enumerator DCVS_VOLTAGE_VCORNER_MAX_VOLTAGE_CORNER = 0xA0¶
Maps to HAP_DCVS_VCORNER_MAX. Set voltage corner to maximum value supported on the platform
-
enumerator DCVS_VOLTAGE_VCORNER_UNKNOWN = 0x7fffffff¶
UNKNOWN value that must not be used by client.
-
enumerator DCVS_VOLTAGE_CORNER_DISABLE = 0x10¶
-
enum class DspPerfPowerMode_t¶
Values:
-
enumerator DSP_PERF_INFRASTRUCTURE_POWERMODE_ADJUST_UP_DOWN = 0x1¶
Maps to HAP_DCVS_V2_ADJUST_UP_DOWN. Allows for DCVS to adjust up and down
-
enumerator DSP_PERF_INFRASTRUCTURE_POWERMODE_ADJUST_ONLY_UP = 0x2¶
Maps to HAP_DCVS_V2_ADJUST_ONLY_UP. Allows for DCVS to adjust up only
-
enumerator DSP_PERF_INFRASTRUCTURE_POWERMODE_POWER_SAVER_MODE = 0x4¶
Maps to HAP_DCVS_V2_POWER_SAVER_MODE. Higher thresholds for power efficiency
-
enumerator DSP_PERF_INFRASTRUCTURE_POWERMODE_POWER_SAVER_AGGRESSIVE_MODE = 0x8¶
Maps to HAP_DCVS_V2_POWER_SAVER_AGGRESSIVE_MODE. Higher thresholds for power efficiency with faster ramp down
-
enumerator DSP_PERF_INFRASTRUCTURE_POWERMODE_PERFORMANCE_MODE = 0x10¶
Maps to HAP_DCVS_V2_PERFORMANCE_MODE. Lower thresholds for maximum performance
-
enumerator DSP_PERF_INFRASTRUCTURE_POWERMODE_DUTY_CYCLE_MODE = 0x20¶
Maps to HAP_DCVS_V2_DUTY_CYCLE_MODE. The below value applies only for HVX clients:
For streaming class clients:
detects periodicity based on HVX usage
lowers clocks in the no HVX activity region of each period.
For compute class clients:
Lowers clocks on no HVX activity detects and brings clocks up on detecting HVX activity again.
Latency involved in bringing up the clock will be at max 1 to 2 ms.
-
enumerator DSP_PERF_INFRASTRUCTURE_POWERMODE_UNKNOWN = 0x7fffffff¶
UNKNOWN value that must not be used by client.
-
enumerator DSP_PERF_INFRASTRUCTURE_POWERMODE_ADJUST_UP_DOWN = 0x1¶
-
enum class ProfilingLevel_t¶
Enumeration of various profilngLevels that can be requested.
Values:
-
enumerator DETAILED = 2¶
Detailed profiling Collects more runtime stats in the DiagLog, including per-layer statistics Performance may be impacted
-
enumerator MODERATE = 3¶
Moderate profiling Collects more runtime stats in the DiagLog, no per-layer statistics
-
enumerator LINTING = 4¶
Linting profiling HTP exclusive profiling level that collects in-depth performance metrics for each op in the graph including main thread execution time and time spent on parallel background ops
-
enumerator NUM_PROFILING_LEVELS¶
Any new enums should be added above this line.
-
enumerator DETAILED = 2¶
-
enum class ExecutionPriorityHint_t¶
Enumeration of various execution priority hints.
Values:
-
enumerator NORMAL = 0¶
Normal priority.
-
enumerator HIGH = 1¶
Higher than normal priority HIGH usage may be restricted and would silently be treated as NORMAL
-
enumerator LOW = 2¶
Lower priority.
-
enumerator NORMAL_HIGH = 3¶
Between Normal and High priority NORMAL_HIGH usage may be restricted and would silently be treated as NORMAL
-
enumerator NUM_EXECUTION_PRIORITY_HINTS¶
Any new enums should be added above this line.
-
enumerator NORMAL = 0¶
-
enum class ImageEncoding_t¶
Enumeration that lists the supported image encoding formats.
Values:
-
enumerator UNKNOWN = 0¶
For unknown image type. Also used as a default value for ImageEncoding_t.
-
enumerator RGB = 1¶
The RGB format consists of 3 bytes per pixel: one byte for Red, one for Green, and one for Blue. The byte ordering is endian independent and is always in RGB byte order.
-
enumerator ARGB32 = 2¶
The ARGB32 format consists of 4 bytes per pixel: one byte for Red, one for Green, one for Blue, and one for the alpha channel. The alpha channel is ignored. The byte ordering depends on the underlying CPU. For little endian CPUs, the byte order is BGRA. For big endian CPUs, the byte order is ARGB.
-
enumerator RGBA = 3¶
The RGBA format consists of 4 bytes per pixel: one byte for Red, one for Green, one for Blue, and one for the alpha channel. The alpha channel is ignored. The byte ordering is endian independent and is always in RGBA byte order.
-
enumerator GRAYSCALE = 4¶
The GRAYSCALE format is for 8-bit grayscale.
-
enumerator NV21 = 5¶
NV21 is the Android version of YUV. The Chrominance is down sampled and has a subsampling ratio of 4:2:0. Note that this image format has 3 channels, but the U and V channels are subsampled. For every four Y pixels there is one U and one V pixel.
-
enumerator BGR = 6¶
The BGR format consists of 3 bytes per pixel: one byte for Red, one for Green and one for Blue. The byte ordering is endian independent and is always BGR byte order.
-
enumerator UNKNOWN = 0¶
-
enum class LogLevel_t¶
Enumeration that lists the supported LogLevels that can be set by users.
Values:
-
enumerator LOG_FATAL = 0¶
Enumeration variable to be used by user to set logging level to FATAL.
-
enumerator LOG_ERROR = 1¶
Enumeration variable to be used by user to set logging level to ERROR.
-
enumerator LOG_WARN = 2¶
Enumeration variable to be used by user to set logging level to WARN.
-
enumerator LOG_INFO = 3¶
Enumeration variable to be used by user to set logging level to INFO.
-
enumerator LOG_VERBOSE = 4¶
Enumeration variable to be used by user to set logging level to VERBOSE.
-
enumerator NUM_LOG_LEVELS¶
Any new enums should be added above this line.
-
enumerator LOG_FATAL = 0¶
-
enum class IOBufferDataType_t : int¶
Values:
-
enumerator UNSPECIFIED = 0¶
Unspecified.
-
enumerator FLOATING_POINT_32 = 1¶
32-bit floating point
-
enumerator FLOATING_POINT_16 = 2¶
16-bit floating point
-
enumerator FIXED_POINT_8 = 3¶
8-bit fixed point
-
enumerator FIXED_POINT_16 = 4¶
16-bit fixed point
-
enumerator INT_32 = 5¶
int32
-
enumerator UINT_32 = 6¶
unsigned int32
-
enumerator INT_8 = 7¶
int8
-
enumerator UINT_8 = 8¶
uint8
-
enumerator INT_16 = 9¶
int16
-
enumerator UINT_16 = 10¶
uint16
-
enumerator BOOL_8 = 11¶
boolean
-
enumerator INT_64 = 12¶
int64
-
enumerator UINT_64 = 13¶
uint64
-
enumerator UNSPECIFIED = 0¶
-
enum class CacheCompatibility_t : int¶
Values:
-
enumerator CACHE_COMPATIBILITY_PERMISSIVE = 0¶
A binary cache is compatible if it could run on the device. This is the default.
-
enumerator CACHE_COMPATIBILITY_STRICT = 1¶
A binary cache is compatible if it could run on the device and fully utilize hardware capability.
-
enumerator CACHE_COMPATIBILITY_PERMISSIVE = 0¶
-
enum class DspHmx_ExpVoltageCorner_t¶
Values:
-
enumerator DCVS_EXP_VCORNER_DISABLE = 0¶
-
enumerator DCVS_EXP_VCORNER_MIN = 0x100¶
-
enumerator DCVS_EXP_VCORNER_LOW_SVS_D2 = 0x134¶
-
enumerator DCVS_EXP_VCORNER_LOW_SVS_D1 = 0x138¶
-
enumerator DCVS_EXP_VCORNER_LOW_SVS = 0x140¶
-
enumerator DCVS_EXP_VCORNER_SVS = 0x180¶
-
enumerator DCVS_EXP_VCORNER_SVS_L1 = 0x1C0¶
-
enumerator DCVS_EXP_VCORNER_NOM = 0x200¶
-
enumerator DCVS_EXP_VCORNER_NOM_L1 = 0x240¶
-
enumerator DCVS_EXP_VCORNER_TUR = 0x280¶
-
enumerator DCVS_EXP_VCORNER_TUR_L1 = 0x2A0¶
-
enumerator DCVS_EXP_VCORNER_TUR_L2 = 0x2B0¶
-
enumerator DCVS_EXP_VCORNER_TUR_L3 = 0x2C0¶
-
enumerator DCVS_EXP_VCORNER_MAX = 0xFFFF¶
-
enumerator DCVS_EXP_VCORNER_DISABLE = 0¶
-
typedef bool DspPerfDcvsEnable_t¶