diff options
author | Jun Zhao <jun.zhao@intel.com> | 2017-12-07 14:22:29 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2018-01-03 09:49:36 +0800 |
commit | 7ef5e0c759a416dafd6347b096e765c06274ff89 (patch) | |
tree | bfbd6983316eafea0e4a4c857198af1b5e6baa1c /va/va.c | |
parent | ab0dd0e7e1924d015e6c3331d550f692bf5aec2f (diff) | |
download | libva-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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"; } |