@ -209,12 +209,18 @@ static av_cold int qsv_enc_close(AVCodecContext *avctx)
returnff_qsv_enc_close(avctx,&q->qsv);
returnff_qsv_enc_close(avctx,&q->qsv);
}
}
#if defined(_WIN32)
#define LOAD_PLUGIN_DEFAULT LOAD_PLUGIN_HEVC_SW
#else
#define LOAD_PLUGIN_DEFAULT LOAD_PLUGIN_HEVC_HW
#endif
#define OFFSET(x) offsetof(QSVHEVCEncContext, x)
#define OFFSET(x) offsetof(QSVHEVCEncContext, x)
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
staticconstAVOptionoptions[]={
staticconstAVOptionoptions[]={
QSV_COMMON_OPTS
QSV_COMMON_OPTS
{"load_plugin","A user plugin to load in an internal session",OFFSET(load_plugin),AV_OPT_TYPE_INT,{.i64=LOAD_PLUGIN_HEVC_SW},LOAD_PLUGIN_NONE,LOAD_PLUGIN_HEVC_HW,VE,"load_plugin"},
{"load_plugin","A user plugin to load in an internal session",OFFSET(load_plugin),AV_OPT_TYPE_INT,{.i64=LOAD_PLUGIN_DEFAULT},LOAD_PLUGIN_NONE,LOAD_PLUGIN_HEVC_HW,VE,"load_plugin"},