28#ifndef __XA_ERROR_STANDARDS_H__
29#define __XA_ERROR_STANDARDS_H__
40#define XA_FATAL_ERROR 0x80000000
53#define XA_CODEC_GENERIC 0
55#define XA_ERROR_CODE(severity, class, codec, index) ((severity << 15) | (class << 11) | (codec << 6) | index)
56#define XA_ERROR_SEVERITY(code) (((code) & XA_FATAL_ERROR) != 0)
57#define XA_ERROR_CLASS(code) (((code) >> 11) & 0x0f)
58#define XA_ERROR_CODEC(code) (((code) >> 6) & 0x1f)
59#define XA_ERROR_SUBCODE(code) (((code) >> 0) & 0x3f)
xa_error_fatal_api_generic
Definition xa_error_standards.h:69
@ XA_API_FATAL_MEM_ALLOC
Definition xa_error_standards.h:70
@ XA_API_FATAL_INVALID_CMD
Definition xa_error_standards.h:72
@ XA_API_FATAL_MEM_ALIGN
Definition xa_error_standards.h:71
@ XA_API_FATAL_INVALID_CMD_TYPE
Definition xa_error_standards.h:73
xa_error_class
Definition xa_error_standards.h:47
@ xa_class_config
Definition xa_error_standards.h:49
@ xa_class_execute
Definition xa_error_standards.h:50
@ xa_class_api
Definition xa_error_standards.h:48
xa_error_severity
Definition xa_error_standards.h:42
@ xa_severity_nonfatal
Definition xa_error_standards.h:43
@ xa_severity_fatal
Definition xa_error_standards.h:44
#define XA_CODEC_GENERIC
Definition xa_error_standards.h:53
#define XA_ERROR_CODE(severity, class, codec, index)
Definition xa_error_standards.h:55