|
|
|
@ -111,6 +111,19 @@ |
|
|
|
|
{ "max_qp_b", "Maximum video quantizer scale for B frame", OFFSET(qsv.max_qp_b), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 51, VE}, \
|
|
|
|
|
{ "min_qp_b", "Minimum video quantizer scale for B frame", OFFSET(qsv.min_qp_b), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 51, VE}, |
|
|
|
|
|
|
|
|
|
#define QSV_OPTION_SCENARIO \ |
|
|
|
|
{ "scenario", "A hint to encoder about the scenario for the encoding session", OFFSET(qsv.scenario), AV_OPT_TYPE_INT, { .i64 = MFX_SCENARIO_UNKNOWN }, \
|
|
|
|
|
MFX_SCENARIO_UNKNOWN, MFX_SCENARIO_REMOTE_GAMING, VE, "scenario" }, \
|
|
|
|
|
{ "unknown", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_SCENARIO_UNKNOWN }, .flags = VE, "scenario" }, \
|
|
|
|
|
{ "displayremoting", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_SCENARIO_DISPLAY_REMOTING }, .flags = VE, "scenario" }, \
|
|
|
|
|
{ "videoconference", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_SCENARIO_VIDEO_CONFERENCE }, .flags = VE, "scenario" }, \
|
|
|
|
|
{ "archive", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_SCENARIO_ARCHIVE }, .flags = VE, "scenario" }, \
|
|
|
|
|
{ "livestreaming", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_SCENARIO_LIVE_STREAMING }, .flags = VE, "scenario" }, \
|
|
|
|
|
{ "cameracapture", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_SCENARIO_CAMERA_CAPTURE }, .flags = VE, "scenario" }, \
|
|
|
|
|
{ "videosurveillance", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_SCENARIO_VIDEO_SURVEILLANCE }, .flags = VE, "scenario" }, \
|
|
|
|
|
{ "gamestreaming", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_SCENARIO_GAME_STREAMING }, .flags = VE, "scenario" }, \
|
|
|
|
|
{ "remotegaming", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_SCENARIO_REMOTE_GAMING }, .flags = VE, "scenario" }, |
|
|
|
|
|
|
|
|
|
extern const AVCodecHWConfigInternal *const ff_qsv_enc_hw_configs[]; |
|
|
|
|
|
|
|
|
|
typedef int SetEncodeCtrlCB (AVCodecContext *avctx, |
|
|
|
@ -179,6 +192,7 @@ typedef struct QSVEncContext { |
|
|
|
|
int max_frame_size_p; |
|
|
|
|
int max_slice_size; |
|
|
|
|
int dblk_idc; |
|
|
|
|
int scenario; |
|
|
|
|
|
|
|
|
|
int tile_cols; |
|
|
|
|
int tile_rows; |
|
|
|
|