Skip to content

[enhance] Adding timeout for vaSyncSurface #397

@dgurulev

Description

@dgurulev

Current vaSyncSurface interface pushes application to use a separate thread for synchronization, since app. can't afford to block main thread for unknown time.

My suggestion is to a new function add a vaSyncSurface2 w/ timeout parameter -

VAStatus vaSyncSurface2(
    VADisplay dpy,
    VASurfaceID render_target
    unsigned int timeout
);

Either VA_STATUS_ERROR_SURFACE_BUSY\ VA_STATUS_ERROR_HW_BUSY statuses could be re-used to indicate the timeout is expired or a new one status VA_STATUS_ERROR_TIMEOUT could be introduced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions