lavc/vaapi_encode: Add hardware config metadata

These encoders all accept VAAPI surfaces in a hardware frames context.
This commit is contained in:
Mark Thompson 2020-04-13 16:33:17 +01:00
parent 5a1ff44907
commit 344e6c3ff1
8 changed files with 14 additions and 0 deletions

View file

@ -27,6 +27,11 @@
#include "vaapi_encode.h"
#include "avcodec.h"
const AVCodecHWConfigInternal *ff_vaapi_encode_hw_configs[] = {
HW_CONFIG_ENCODER_FRAMES(VAAPI, VAAPI),
NULL,
};
static const char * const picture_type_name[] = { "IDR", "I", "P", "B" };
static int vaapi_encode_make_packed_header(AVCodecContext *avctx,