diff options
author | xsang <oliver.sang@intel.com> | 2015-12-03 14:35:21 +0800 |
---|---|---|
committer | Yuan <shengquan.yuan@intel.com> | 2015-12-10 15:02:38 +0800 |
commit | 41bdf80b0206c08fbecd240755f5d33bcd82fa83 (patch) | |
tree | 12da0be5a44cd727ddcb2f2ff15854856c803af3 | |
parent | d8ea07db7eccc65b4fee8733983f4dc55cbd197b (diff) | |
download | libva-41bdf80b0206c08fbecd240755f5d33bcd82fa83.tar.gz |
Add flags to report encoder errors
VA_CODED_BUF_STATUS_HW_TEAR_DOWN indicates that GPU goes into
abnormal status in encoding, e.g. GPU hang.
VA_CODED_BUF_STATUS_BAD_BITSTREAM indicates that HW encoder meets
some issues that the content in the bitstreasm buffer is corrupted.
Driver will report this flag to inform upper layer stack to restart
the encoder.
-rwxr-xr-x[-rw-r--r--] | va/va.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -2779,6 +2779,24 @@ VAStatus vaBufferSetNumElements ( #define VA_CODED_BUF_STATUS_CODEC_SPECIFIC 0x2000 /** + * \brief For encode abnormal status reporting. + * + * This flag indicates that GPU goes into abnormal status in + * encoding, e.g. GPU hang. + */ +#define VA_CODED_BUF_STATUS_HW_TEAR_DOWN 0x4000 + +/** + * \brief For encode bad bitstream status reporting. + * + * This flag indicates that HW encoder meets some issues that + * the content in the bitstreasm buffer is corrupted. Driver + * will report this flag to inform upper layer stack to restart + * the encoder. + */ +#define VA_CODED_BUF_STATUS_BAD_BITSTREAM 0x8000 + +/** * \brief The coded buffer segment contains a single NAL unit. * * This flag indicates that the coded buffer segment contains a |