summaryrefslogtreecommitdiff
path: root/va/va.c
diff options
context:
space:
mode:
authorJun Zhao <jun.zhao@intel.com>2017-12-07 14:22:29 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2018-01-03 09:49:36 +0800
commit7ef5e0c759a416dafd6347b096e765c06274ff89 (patch)
treebfbd6983316eafea0e4a4c857198af1b5e6baa1c /va/va.c
parentab0dd0e7e1924d015e6c3331d550f692bf5aec2f (diff)
downloadlibva-7ef5e0c759a416dafd6347b096e765c06274ff89.tar.gz
va: add missing error status/error message map.
when add a new VAStatus type, need to update vaErrorStr. Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Diffstat (limited to 'va/va.c')
-rw-r--r--va/va.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/va/va.c b/va/va.c
index 9b03af3..7df2e90 100644
--- a/va/va.c
+++ b/va/va.c
@@ -579,12 +579,20 @@ const char *vaErrorStr(VAStatus error_status)
return "surface is in displaying (may by overlay)" ;
case VA_STATUS_ERROR_INVALID_IMAGE_FORMAT:
return "invalid VAImageFormat";
+ case VA_STATUS_ERROR_DECODING_ERROR:
+ return "internal decoding error";
+ case VA_STATUS_ERROR_ENCODING_ERROR:
+ return "internal encoding error";
case VA_STATUS_ERROR_INVALID_VALUE:
return "an invalid/unsupported value was supplied";
case VA_STATUS_ERROR_UNSUPPORTED_FILTER:
return "the requested filter is not supported";
case VA_STATUS_ERROR_INVALID_FILTER_CHAIN:
return "an invalid filter chain was supplied";
+ case VA_STATUS_ERROR_HW_BUSY:
+ return "HW busy now";
+ case VA_STATUS_ERROR_UNSUPPORTED_MEMORY_TYPE:
+ return "an unsupported memory type was supplied";
case VA_STATUS_ERROR_UNKNOWN:
return "unknown libva error";
}