|
|
|
@ -650,6 +650,7 @@ typedef struct MpegEncContext { |
|
|
|
|
#define FF_MPV_FLAG_QP_RD 0x0004 |
|
|
|
|
#define FF_MPV_FLAG_CBP_RD 0x0008 |
|
|
|
|
#define FF_MPV_FLAG_NAQ 0x0010 |
|
|
|
|
#define FF_MPV_FLAG_MV0 0x0020 |
|
|
|
|
|
|
|
|
|
#define FF_MPV_OFFSET(x) offsetof(MpegEncContext, x) |
|
|
|
|
#define FF_MPV_OPT_FLAGS (AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM) |
|
|
|
@ -660,6 +661,7 @@ typedef struct MpegEncContext { |
|
|
|
|
{ "qp_rd", "Use rate distortion optimization for qp selection", 0, AV_OPT_TYPE_CONST, { .i64 = FF_MPV_FLAG_QP_RD }, 0, 0, FF_MPV_OPT_FLAGS, "mpv_flags" },\
|
|
|
|
|
{ "cbp_rd", "use rate distortion optimization for CBP", 0, AV_OPT_TYPE_CONST, { .i64 = FF_MPV_FLAG_CBP_RD }, 0, 0, FF_MPV_OPT_FLAGS, "mpv_flags" },\
|
|
|
|
|
{ "naq", "normalize adaptive quantization", 0, AV_OPT_TYPE_CONST, { .i64 = FF_MPV_FLAG_NAQ }, 0, 0, FF_MPV_OPT_FLAGS, "mpv_flags" },\
|
|
|
|
|
{ "mv0", "always try a mb with mv=<0,0>", 0, AV_OPT_TYPE_CONST, { .i64 = FF_MPV_FLAG_MV0 }, 0, 0, FF_MPV_OPT_FLAGS, "mpv_flags" },\
|
|
|
|
|
{ "luma_elim_threshold", "single coefficient elimination threshold for luminance (negative values also consider dc coefficient)",\
|
|
|
|
|
FF_MPV_OFFSET(luma_elim_threshold), AV_OPT_TYPE_INT, { .i64 = 0 }, INT_MIN, INT_MAX, FF_MPV_OPT_FLAGS },\
|
|
|
|
|
{ "chroma_elim_threshold", "single coefficient elimination threshold for chrominance (negative values also consider dc coefficient)",\
|
|
|
|
|