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 5dd9a4b88b)
This commit is contained in:
Mark Thompson 2017-02-11 15:13:12 +00:00
parent 6ff3da4f6a
commit 81b7deab82
3 changed files with 116 additions and 20 deletions

View file

@ -69,6 +69,9 @@ typedef struct VAAPIDecodeContext {
AVHWFramesContext *frames;
AVVAAPIFramesContext *hwfc;
enum AVPixelFormat surface_format;
int surface_count;
} VAAPIDecodeContext;