Add description of the return status for vaSyncSurface()
this will indicate APP behavior when meet VA_STATUS_ERROR_DECODING_ERROR from vaSyncSurface
Hi, @XinfengZhang @Jexu, have add more detail description, could you pls help to review this PR again?
I agree with the direction, provide hint to application , then application could handle correlated errors , ignore , or reset the context etc. .
but I suggest to clarify the difference. currently:
VA_STATUS_ERROR_DECODING_ERROR may caused by a bistream corruption. related with syntax
VA_STATUS_ERROR_HW_BUSY is about the HW reset , but looks could not distinguish , media reset or gpu reset. if media reset , it could be ignored directly. it also related with #714?
but operation failed is unclear.
@XinfengZhang Thanks for the comments. and I will refine this PR for below two point:
VA_STATUS_ERROR_HW_BUSY is about the HW reset , but looks could not distinguish , media reset or gpu reset. if media reset , it could be ignored directly. it also related with https://github.com/intel/libva/pull/714?
The VA_STATUS_ERROR_HW_BUSY is only for HW reset, so cannot ignore this error, vaSyncSurface will return success if media reset happended.
but operation failed is unclear.
can see the below comment: https://github.com/intel/libva/pull/774#discussion_r1449800161
Also, please, squash commits. For this change there should be just 1 commit in the PR.
Also, please, squash commits. For this change there should be just 1 commit in the PR.
@dvrogozh Thanks for your review, and have refined this PR, could pls have a look again?
Hi, @dvrogozh @XinfengZhang , Can you take another look at this PR if you have time?
Hi, @XinfengZhang , Could you pls take another look at this PR when you have time?