Skip to content

Commit

Permalink
add description of the fd for surface importing
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Zhang <[email protected]>
  • Loading branch information
XinfengZhang committed Feb 16, 2022
1 parent 63c6378 commit 5d5db2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions va/va_drmcommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ struct drm_state {
* support NV12 surfaces when they are contained within a single DRM
* object, and therefore fail to create such surfaces if the two
* planes are in different DRM objects.
* Note that backend driver will retrieve the resource represent by fd,
* and a valid surface ID is generated. Backend driver will not close
* the file descriptor. Application should handle the release of the fd.
* releasing the fd will not impact the existence of the surface.
*/
typedef struct _VADRMPRIMESurfaceDescriptor {
/** Pixel format fourcc of the whole surface (VA_FOURCC_*). */
Expand Down

0 comments on commit 5d5db2e

Please sign in to comment.