File DlEnums.h

Parent directory (DlSystem)

Definition (DlSystem/DlEnums.h)

Includes

Full File Listing

Typedefs

typedef bool Snpe_DspPerf_DcvsEnable_t
typedef uint32_t Snpe_DspPerf_SleepLatency_t
typedef uint32_t Snpe_DspPerf_SleepDisable_t
typedef uint32_t Snpe_DspPerf_RpcPollingTime_t
typedef uint32_t Snpe_DspPerf_AdaptivePollingTime_t
typedef uint32_t Snpe_DspPerf_HysteresisTime_t
typedef bool Snpe_DspPerf_AsyncVoteEnable_t
typedef bool Snpe_HighPerformanceModeEnabled_t
typedef bool Snpe_FastInitModeEnabled_t

Enums

enum Snpe_Runtime_t

Enumeration of supported target runtimes.

Values:

enumerator SNPE_RUNTIME_UNSET = -1

Special value indicating the property is unset.

enumerator SNPE_RUNTIME_CPU_FLOAT32 = 0

Run the processing on Snapdragon CPU. Data: float 32bit Math: float 32bit

enumerator SNPE_RUNTIME_CPU = SNPE_RUNTIME_CPU_FLOAT32

Default legacy enum to retain backward compatibility. CPU = CPU_FLOAT32

enumerator SNPE_RUNTIME_GPU_FLOAT32_16_HYBRID = 1

Run the processing on the Adreno GPU. Data: float 16bit Math: float 32bit

enumerator SNPE_RUNTIME_GPU = SNPE_RUNTIME_GPU_FLOAT32_16_HYBRID

Default legacy enum to retain backward compatibility. GPU = GPU_FLOAT32_16_HYBRID

enumerator SNPE_RUNTIME_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 SNPE_RUNTIME_DSP = SNPE_RUNTIME_DSP_FIXED8_TF

Default legacy enum to retain backward compatibility. DSP = DSP_FIXED8_TF

enumerator SNPE_RUNTIME_GPU_FLOAT16 = 3

Run the processing on the Adreno GPU. Data: float 16bit Math: float 16bit

enumerator SNPE_RUNTIME_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 SNPE_RUNTIME_AIP_FIXED_TF = SNPE_RUNTIME_AIP_FIXED8_TF
enum Snpe_RuntimeCheckOption_t

Enumeration of runtime available check options.

Values:

enumerator SNPE_RUNTIME_CHECK_OPTION_DEFAULT = 2

Perform standard runtime available check.

enumerator SNPE_RUNTIME_CHECK_OPTION_NORMAL_CHECK = 0

Perform standard runtime available check.

enumerator SNPE_RUNTIME_CHECK_OPTION_BASIC_CHECK = 1

Perform basic runtime available check, may be runtime specific.

enumerator SNPE_RUNTIME_CHECK_OPTION_UNSIGNEDPD_CHECK = 2

Perform unsignedPD runtime available check.

enum Snpe_PerformanceProfile_t

Enumeration of various performance profiles that can be requested.

Values:

enumerator SNPE_PERFORMANCE_PROFILE_DEFAULT = 0

Run in a standard mode. This mode will be deprecated in the future and replaced with BALANCED.

enumerator SNPE_PERFORMANCE_PROFILE_BALANCED = 0

Run in a balanced mode.

enumerator SNPE_PERFORMANCE_PROFILE_HIGH_PERFORMANCE = 1

Run in high performance mode.

enumerator SNPE_PERFORMANCE_PROFILE_POWER_SAVER = 2

Run in a power sensitive mode, at the expense of performance.

enumerator SNPE_PERFORMANCE_PROFILE_SYSTEM_SETTINGS = 3

Use system settings. SNPE makes no calls to any performance related APIs.

enumerator SNPE_PERFORMANCE_PROFILE_SUSTAINED_HIGH_PERFORMANCE = 4

Run in sustained high performance mode.

enumerator SNPE_PERFORMANCE_PROFILE_BURST = 5

Run in burst mode.

enumerator SNPE_PERFORMANCE_PROFILE_LOW_POWER_SAVER = 6

Run in lower clock than POWER_SAVER, at the expense of performance.

enumerator SNPE_PERFORMANCE_PROFILE_HIGH_POWER_SAVER = 7

Run in higher clock and provides better performance than POWER_SAVER.

enumerator SNPE_PERFORMANCE_PROFILE_LOW_BALANCED = 8

Run in lower balanced mode.

enumerator SNPE_PERFORMANCE_PROFILE_EXTREME_POWER_SAVER = 9

Run in lowest clock at the expense of performance.

enum Snpe_DspHmx_ExpVoltageCorner_t

Values:

enumerator SNPE_DCVS_EXP_VCORNER_DISABLE = 0
enumerator SNPE_DCVS_EXP_VCORNER_MIN = 0x100
enumerator SNPE_DCVS_EXP_VCORNER_LOW_SVS_D2 = 0x134
enumerator SNPE_DCVS_EXP_VCORNER_LOW_SVS_D1 = 0x138
enumerator SNPE_DCVS_EXP_VCORNER_LOW_SVS = 0x140
enumerator SNPE_DCVS_EXP_VCORNER_SVS = 0x180
enumerator SNPE_DCVS_EXP_VCORNER_SVS_L1 = 0x1C0
enumerator SNPE_DCVS_EXP_VCORNER_NOM = 0x200
enumerator SNPE_DCVS_EXP_VCORNER_NOM_L1 = 0x240
enumerator SNPE_DCVS_EXP_VCORNER_TUR = 0x280
enumerator SNPE_DCVS_EXP_VCORNER_TUR_L1 = 0x2A0
enumerator SNPE_DCVS_EXP_VCORNER_TUR_L2 = 0x2B0
enumerator SNPE_DCVS_EXP_VCORNER_TUR_L3 = 0x2C0
enumerator SNPE_DCVS_EXP_VCORNER_MAX = 0xFFFF
enum Snpe_DspHmx_ClkPerfMode_t

Values:

enumerator SNPE_HMX_CLK_PERF_HIGH = 0
enumerator SNPE_HMX_CLK_PERF_LOW = 1
enum Snpe_DspPerf_VoltageCorner_t

Enumeration of various Perf Voltage Corner that can be requested.

Values:

enumerator SNPE_DCVS_VOLTAGE_CORNER_DISABLE = 0x10

Maps to HAP_DCVS_VCORNER_DISABLE. Disable setting up voltage corner

enumerator SNPE_DCVS_VOLTAGE_VCORNER_MIN_VOLTAGE_CORNER = 0x20

Maps to HAP_DCVS_VCORNER_SVS2. Set voltage corner to minimum value supported on platform

enumerator SNPE_DCVS_VOLTAGE_VCORNER_SVS2 = 0x30

Maps to HAP_DCVS_VCORNER_SVS2. Set voltage corner to SVS2 value for the platform

enumerator SNPE_DCVS_VOLTAGE_VCORNER_SVS = 0x40

Maps to HAP_DCVS_VCORNER_SVS. Set voltage corner to SVS value for the platform

enumerator SNPE_DCVS_VOLTAGE_VCORNER_SVS_PLUS = 0x50

Maps to HAP_DCVS_VCORNER_SVS_PLUS. Set voltage corner to SVS_PLUS value for the platform

enumerator SNPE_DCVS_VOLTAGE_VCORNER_NOM = 0x60

Maps to HAP_DCVS_VCORNER_NOM. Set voltage corner to NOMINAL value for the platform

enumerator SNPE_DCVS_VOLTAGE_VCORNER_NOM_PLUS = 0x70

Maps to HAP_DCVS_VCORNER_NOM_PLUS. Set voltage corner to NOMINAL_PLUS value for the platform

enumerator SNPE_DCVS_VOLTAGE_VCORNER_TURBO = 0x80

Maps to HAP_DCVS_VCORNER_TURBO. Set voltage corner to TURBO value for the platform

enumerator SNPE_DCVS_VOLTAGE_VCORNER_TURBO_PLUS = 0x90

Maps to HAP_DCVS_VCORNER_TURBO_PLUS. Set voltage corner to TURBO_PLUS value for the platform

enumerator SNPE_DCVS_VOLTAGE_VCORNER_TURBO_L1 = 0x92
enumerator SNPE_DCVS_VOLTAGE_VCORNER_TURBO_L2 = SNPE_DCVS_VOLTAGE_VCORNER_TURBO_L1

Set voltage corner to TURBO_L2 value for the platform.

enumerator SNPE_DCVS_VOLTAGE_VCORNER_TURBO_L3 = 0x93

Set voltage corner to TURBO_L3 value for the platform.

enumerator SNPE_DCVS_VOLTAGE_VCORNER_MAX_VOLTAGE_CORNER = 0xA0

Maps to HAP_DCVS_VCORNER_MAX. Set voltage corner to maximum value supported on the platform

enumerator SNPE_DCVS_VOLTAGE_VCORNER_UNKNOWN = 0x7fffffff

UNKNOWN value that must not be used by client.

enum Snpe_DspPerf_PowerMode_t

Enumeration of various PowerMode that can be requested.

Values:

enumerator SNPE_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 SNPE_DSP_PERF_INFRASTRUCTURE_POWERMODE_ADJUST_ONLY_UP = 0x2

Maps to HAP_DCVS_V2_ADJUST_ONLY_UP. Allows for DCVS to adjust up only

enumerator SNPE_DSP_PERF_INFRASTRUCTURE_POWERMODE_POWER_SAVER_MODE = 0x4

Maps to HAP_DCVS_V2_POWER_SAVER_MODE. Higher thresholds for power efficiency

enumerator SNPE_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 SNPE_DSP_PERF_INFRASTRUCTURE_POWERMODE_PERFORMANCE_MODE = 0x10

Maps to HAP_DCVS_V2_PERFORMANCE_MODE. Lower thresholds for maximum performance

enumerator SNPE_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 SNPE_DSP_PERF_INFRASTRUCTURE_POWERMODE_UNKNOWN = 0x7fffffff

UNKNOWN value that must not be used by client.

enum Snpe_ProfilingLevel_t

Enumeration of various profilngLevels that can be requested.

Values:

enumerator SNPE_PROFILING_LEVEL_OFF = 0

No profiling. Collects no runtime stats in the DiagLog

enumerator SNPE_PROFILING_LEVEL_BASIC = 1

Basic profiling Collects some runtime stats in the DiagLog

enumerator SNPE_PROFILING_LEVEL_DETAILED = 2

Detailed profiling Collects more runtime stats in the DiagLog, including per-layer statistics Performance may be impacted

enumerator SNPE_PROFILING_LEVEL_MODERATE = 3

Moderate profiling Collects more runtime stats in the DiagLog, no per-layer statistics

enumerator SNPE_PROFILING_LEVEL_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

enum Snpe_ExecutionPriorityHint_t

Enumeration of various execution priority hints.

Values:

enumerator SNPE_EXECUTION_PRIORITY_NORMAL = 0

Normal priority.

enumerator SNPE_EXECUTION_PRIORITY_HIGH = 1

Higher than normal priority SNPE_EXECUTION_PRIORITY_HIGH usage may be restricted and would silently be treated as SNPE_EXECUTION_PRIORITY_NORMAL

enumerator SNPE_EXECUTION_PRIORITY_LOW = 2

Lower priority.

enumerator SNPE_EXECUTION_PRIORITY_NORMAL_HIGH = 3

Between Normal and High priority SNPE_EXECUTION_PRIORITY_NORMAL_HIGH usage may be restricted and would silently be treated as SNPE_EXECUTION_PRIORITY_NORMAL

enum Snpe_ImageEncoding_t

Enumeration that lists the supported image encoding formats.

Values:

enumerator SNPE_IMAGE_ENCODING_UNKNOWN = 0

For unknown image type. Also used as a default value for ImageEncoding_t.

enumerator SNPE_IMAGE_ENCODING_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 SNPE_IMAGE_ENCODING_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 SNPE_IMAGE_ENCODING_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 SNPE_IMAGE_ENCODING_GRAYSCALE = 4

The GRAYSCALE format is for 8-bit grayscale.

enumerator SNPE_IMAGE_ENCODING_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 SNPE_IMAGE_ENCODING_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.

enum Snpe_LogLevel_t

Enumeration that lists the supported LogLevels that can be set by users.

Values:

enumerator SNPE_LOG_LEVEL_FATAL = 0

Enumeration variable to be used by user to set logging level to FATAL.

enumerator SNPE_LOG_LEVEL_ERROR = 1

Enumeration variable to be used by user to set logging level to ERROR.

enumerator SNPE_LOG_LEVEL_WARN = 2

Enumeration variable to be used by user to set logging level to WARN.

enumerator SNPE_LOG_LEVEL_INFO = 3

Enumeration variable to be used by user to set logging level to INFO.

enumerator SNPE_LOG_LEVEL_VERBOSE = 4

Enumeration variable to be used by user to set logging level to VERBOSE.

enum Snpe_IOBufferDataType_t

Enumeration that list the supported data types for buffers

Values:

enumerator SNPE_IO_BUFFER_DATATYPE_UNSPECIFIED = 0

Unspecified.

enumerator SNPE_IO_BUFFER_DATATYPE_FLOATING_POINT_32 = 1

32-bit floating point

enumerator SNPE_IO_BUFFER_DATATYPE_FLOATING_POINT_16 = 2

16-bit floating point

enumerator SNPE_IO_BUFFER_DATATYPE_FIXED_POINT_8 = 3

8-bit fixed point

enumerator SNPE_IO_BUFFER_DATATYPE_FIXED_POINT_16 = 4

16-bit fixed point

enum Snpe_CacheCompatibility_t

Enumeration that list the mode of checking compatibility

Values:

enumerator SNPE_CACHE_COMPATIBILITY_PERMISSIVE = 0

A binary cache is compatible if it could run on the device. This is the default.

enumerator SNPE_CACHE_COMPATIBILITY_STRICT = 1

A binary cache is compatible if it could run on the device and fully utilize hardware capability.

enumerator SNPE_CACHE_COMPATIBILITY_ALWAYS_GENERATE_NEW_CACHE = 2

A binary cache is always incompatible. SNPE will generate new cache.