diff options
Diffstat (limited to 'va')
| -rw-r--r-- | va/va_backend_tpi.h | 7 | ||||
| -rw-r--r-- | va/va_tpi.c | 19 | ||||
| -rw-r--r-- | va/va_tpi.h | 6 |
3 files changed, 32 insertions, 0 deletions
diff --git a/va/va_backend_tpi.h b/va/va_backend_tpi.h index 56998de..172c1af 100644 --- a/va/va_backend_tpi.h +++ b/va/va_backend_tpi.h @@ -102,6 +102,13 @@ struct VADriverVTableTPI unsigned int number_cliprects, /* number of clip rects in the clip list */ unsigned int flags /* de-interlacing flags */ ); + + VAStatus (*vaSetTimestampForSurface)( + VADisplay dpy, + VASurfaceID surface, + long long timestamp + ); + }; diff --git a/va/va_tpi.c b/va/va_tpi.c index e9169fc..5451f70 100644 --- a/va/va_tpi.c +++ b/va/va_tpi.c @@ -202,3 +202,22 @@ VAStatus vaPutSurfaceBuf ( } else return VA_STATUS_ERROR_UNIMPLEMENTED; } + +VAStatus vaSetTimestampForSurface( + VADisplay dpy, + VASurfaceID surface, + long long timestamp +) +{ + VADriverContextP ctx; + struct VADriverVTableTPI *tpi; + CHECK_DISPLAY(dpy); + ctx = CTX(dpy); + + tpi = ( struct VADriverVTableTPI *)ctx->vtable_tpi; + if (tpi && tpi->vaSetTimestampForSurface) { + return tpi->vaSetTimestampForSurface(ctx, surface, timestamp); + } else + return VA_STATUS_ERROR_UNIMPLEMENTED; + +} diff --git a/va/va_tpi.h b/va/va_tpi.h index 921c8fe..060d387 100644 --- a/va/va_tpi.h +++ b/va/va_tpi.h @@ -113,6 +113,12 @@ VAStatus vaCreateSurfaceFromKBuf( unsigned int chroma_v_offset ); +VAStatus vaSetTimestampForSurface( + VADisplay dpy, + VASurfaceID surface, + long long timestamp +); + #ifdef __cplusplus } |
