diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-02-11 15:13:12 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-03-22 19:07:32 +0000 |
commit | 81b7deab8296f8446a64e20b9fcaf8eba88b9e29 (patch) | |
tree | d78c1f3f930fe64814d92be65dcf9def1907f8ba /libavcodec/vaapi_decode.h | |
parent | 6ff3da4f6a8e460d77bb65fed4267bf48f513fcf (diff) | |
download | ffmpeg-81b7deab8296f8446a64e20b9fcaf8eba88b9e29.tar.gz |
vaapi: Implement device-only setup
In this case, the user only supplies a device and the frame context
is allocated internally by lavc.
(cherry picked from commit 5dd9a4b88b287bf8c93520afda7becb1ad0d1894)
Diffstat (limited to 'libavcodec/vaapi_decode.h')
-rw-r--r-- | libavcodec/vaapi_decode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vaapi_decode.h b/libavcodec/vaapi_decode.h index 5ac3069ef3..4fe414c504 100644 --- a/libavcodec/vaapi_decode.h +++ b/libavcodec/vaapi_decode.h @@ -69,6 +69,9 @@ typedef struct VAAPIDecodeContext { AVHWFramesContext *frames; AVVAAPIFramesContext *hwfc; + + enum AVPixelFormat surface_format; + int surface_count; } VAAPIDecodeContext; |