From bdbd6620f8b2b3a6f5f6af2e885d6f2f1664608e Mon Sep 17 00:00:00 2001 From: Austin Yuan Date: Wed, 29 Feb 2012 21:34:31 -0800 Subject: [PATCH] VADisplayAttribDirectSurface: drop it vaPutSurface may use overlay or GPU alternately. App should use vaQuerySurfaceStatus to check if the surface can be used for decoding. If VASurfaceDisplaying is returned, it means the surface is being rendered by overlay and can't be over-writeen. Signed-off-by: Austin Yuan --- va/va.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/va/va.h b/va/va.h index 8a2dae2..0a7143c 100644 --- a/va/va.h +++ b/va/va.h @@ -2250,18 +2250,6 @@ typedef enum * also it will blend with the decoded video color */ VADisplayAttribBackgroundColor = 4, - /* - * this is a gettable only attribute. For some implementations that use the - * hardware overlay, after PutSurface is called, the surface can not be - * re-used until after the subsequent PutSurface call. If this is the case - * then the value for this attribute will be set to 1 so that the client - * will not attempt to re-use the surface right after returning from a call - * to PutSurface. - * - * Don't use it, use flag VASurfaceDisplaying of vaQuerySurfaceStatus since - * driver may use overlay or GPU alternatively - */ - VADisplayAttribDirectSurface = 5, VADisplayAttribRotation = 6, VADisplayAttribOutofLoopDeblock = 7, -- 2.7.4