Skip to content

Commit 35d5b95

Browse files
committed
Add description of decoding error status for vaSyncSurface()
this will indicate APP behavior when meet VA_STATUS_ERROR_DECODING_ERROR from vaSyncSurface Signed-off-by: Pengxin Yuan <[email protected]>
1 parent 0931342 commit 35d5b95

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: va/va.h

+19
Original file line numberDiff line numberDiff line change
@@ -4187,6 +4187,25 @@ Synchronization
41874187
* This function blocks until all pending operations on the render target
41884188
* have been completed. Upon return it is safe to use the render target for a
41894189
* different picture.
4190+
*
4191+
* Possible errors:
4192+
* - \ref VA_STATUS_ERROR_INVALID_CONTEXT: This error occurs when the function is provided with an invalid context.
4193+
* It is typically due to the context not being properly initialized or already being freed.
4194+
* To address this, ensure that the context is correctly initialized and has not been freed.
4195+
* - \ref VA_STATUS_ERROR_INVALID_SURFACE: This error is triggered when the supplied render target is invalid,
4196+
* possibly due to being freed or corrupted. To resolve this, ensure the usage of the correct render target
4197+
* and verify its validity and integrity.
4198+
* - \ref VA_STATUS_ERROR_OPERATION_FAILED: When the attempt to retrieve the status report fails or related work
4199+
* on the current surface fails, this error is generated. In such cases, the client can proceed with subsequent
4200+
* frames by ignore the error, but it may involve incorrect result like corruption.
4201+
* - \ref VA_STATUS_ERROR_HW_BUSY: This error indicates that synchronization is still in progress or GPU hang happens.
4202+
* The client could call the function again within a period of time to wait hw execution completion.
4203+
* If hw execution could not complete successfully, gpu hang and reset may occur, in this case,
4204+
* application could try to recover media context by initialing new one.
4205+
* - \ref VA_STATUS_ERROR_DECODING_ERROR: This error is encountered when macroblock (MB) errors with
4206+
* non-conformance input clips are detected during the decoding process. The application can proceed with
4207+
* subsequent frames, but it is advised to be aware of potential corruption in the output.
4208+
* Call vaQuerySurfaceError could get more details of mb error information.
41904209
*/
41914210
VAStatus vaSyncSurface(
41924211
VADisplay dpy,

0 commit comments

Comments
 (0)