Skip to content

Commit b86d2c0

Browse files
committed
Report the capability of vaCopy support
1. Extend display attribute to HW(display adaptor) attribute , it could be used to report platform related. it does not need vaConfig(Profile ,Entrypoint, ConfigAttributes), all the capability is combined to the vaDisplay. 2. Report vaCopy support, it is a standalone feature , which is related with vaDisplay. not depend on VPP , vaConfig etc. Signed-off-by: Carl Zhang <[email protected]>
1 parent fb31fe6 commit b86d2c0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

va/va.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4835,7 +4835,17 @@ VAStatus vaDeassociateSubpicture (
48354835
* brightness etc. in the rendering process. The application can query what
48364836
* attributes are supported by the driver, and then set the appropriate attributes
48374837
* before calling vaPutSurface()
4838+
*
4839+
* Display attributes can also be used to query/set platform or display adaptor (vaDisplay)
4840+
* related information. These attributes do not depend on vaConfig, and could not be used
4841+
* for vaPutSurface. Application can use vaQueryDisplayAttributes/vaGetDisplayAttributes
4842+
* at anytime after vaInitialize, but (for settable attributes) vaSetDisplayAttributes should be
4843+
* called after vaInitialize and before any other function call.
4844+
*
4845+
* To distinguish these two types of display attributes, display adaptor related attributes
4846+
* should be marked as "HW attribute" in the description.
48384847
*/
4848+
48394849
/* PowerVR IEP Lite attributes */
48404850
typedef enum
48414851
{
@@ -4957,6 +4967,12 @@ typedef enum
49574967
* specify vaPutSurface render area if there is no drawable on the monitor
49584968
*/
49594969
VADisplayAttribRenderRect = 18,
4970+
/*
4971+
* HW attribute. read only. specify whether vaCopy support on current HW
4972+
* The value of each bit should equal to 1 << VA_EXEC_MODE_XXX to represent
4973+
* modes of vaCopy
4974+
*/
4975+
VADisplayAttribCopy = 19,
49604976
} VADisplayAttribType;
49614977

49624978
/* flags for VADisplayAttribute */

0 commit comments

Comments
 (0)