summaryrefslogtreecommitdiff
path: root/src/va.h
diff options
context:
space:
mode:
authorWaldo Bastian <waldo.bastian@intel.com>2007-10-25 14:37:43 -0700
committerWaldo Bastian <waldo.bastian@intel.com>2007-10-25 14:37:43 -0700
commit12e8a2285aa804855eb0f5c23074d31b807a7091 (patch)
tree2d05c1fbdee5fae767266bdbc818c5fbdb143496 /src/va.h
parent8f82bf2b75af292172e8f587b61b5f31649c26a3 (diff)
* Improve validation of input parameters & error reporting
Diffstat (limited to 'src/va.h')
-rwxr-xr-xsrc/va.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/va.h b/src/va.h
index 61e356e..c158923 100755
--- a/src/va.h
+++ b/src/va.h
@@ -86,17 +86,19 @@ typedef void* VADisplay; /* window system dependent */
typedef int VAStatus; /* Return status type from functions */
/* Values for the return status */
#define VA_STATUS_SUCCESS 0x00000000
-#define VA_STATUS_ERROR_ALLOCATION_FAILED 0x00000001
-#define VA_STATUS_ERROR_INVALID_CONFIG 0x00000002
-#define VA_STATUS_ERROR_INVALID_CONTEXT 0x00000003
-#define VA_STATUS_ERROR_INVALID_SURFACE 0x00000004
-#define VA_STATUS_ERROR_INVALID_BUFFER 0x00000005
-#define VA_STATUS_ERROR_ATTR_NOT_SUPPORTED 0x00000006
-#define VA_STATUS_ERROR_MAX_NUM_EXCEEDED 0x00000007
-#define VA_STATUS_ERROR_UNSUPPORTED_PROFILE 0x00000008
-#define VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT 0x00000009
-#define VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT 0x0000000a
-#define VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE 0x0000000b
+#define VA_STATUS_ERROR_OPERATION_FAILED 0x00000001
+#define VA_STATUS_ERROR_ALLOCATION_FAILED 0x00000002
+#define VA_STATUS_ERROR_INVALID_DISPLAY 0x00000003
+#define VA_STATUS_ERROR_INVALID_CONFIG 0x00000004
+#define VA_STATUS_ERROR_INVALID_CONTEXT 0x00000005
+#define VA_STATUS_ERROR_INVALID_SURFACE 0x00000006
+#define VA_STATUS_ERROR_INVALID_BUFFER 0x00000007
+#define VA_STATUS_ERROR_ATTR_NOT_SUPPORTED 0x00000008
+#define VA_STATUS_ERROR_MAX_NUM_EXCEEDED 0x00000009
+#define VA_STATUS_ERROR_UNSUPPORTED_PROFILE 0x0000000a
+#define VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT 0x0000000b
+#define VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT 0x0000000c
+#define VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE 0x0000000d
#define VA_STATUS_ERROR_UNKNOWN 0xFFFFFFFF
/*