vaapi_encode: Allocate picture-private data in generic code

This commit is contained in:
Mark Thompson 2018-12-20 20:39:55 +00:00
parent 8ca55a2b9e
commit 26ce3a43a3
2 changed files with 16 additions and 3 deletions

View file

@ -268,6 +268,10 @@ typedef struct VAAPIEncodeType {
// add any necessary global parameters).
int (*configure)(AVCodecContext *avctx);
// The size of any private data structure associated with each
// picture (can be zero if not required).
size_t picture_priv_data_size;
// The size of the parameter structures:
// sizeof(VAEnc{type}ParameterBuffer{codec}).
size_t sequence_params_size;