Commit f7e1e69e authored by Michael Niedermayer's avatar Michael Niedermayer

-qprd

Originally committed as revision 3187 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2a8edc5d
...@@ -144,6 +144,7 @@ static int use_alt_scan = 0; ...@@ -144,6 +144,7 @@ static int use_alt_scan = 0;
static int use_trell = 0; static int use_trell = 0;
static int use_scan_offset = 0; static int use_scan_offset = 0;
static int use_qpel = 0; static int use_qpel = 0;
static int use_qprd = 0;
static int qns = 0; static int qns = 0;
static int closed_gop = 0; static int closed_gop = 0;
static int do_deinterlace = 0; static int do_deinterlace = 0;
...@@ -2865,6 +2866,9 @@ static void opt_output_file(const char *filename) ...@@ -2865,6 +2866,9 @@ static void opt_output_file(const char *filename)
if (use_qpel) { if (use_qpel) {
video_enc->flags |= CODEC_FLAG_QPEL; video_enc->flags |= CODEC_FLAG_QPEL;
} }
if (use_qprd) {
video_enc->flags |= CODEC_FLAG_QP_RD;
}
if (b_frames) { if (b_frames) {
video_enc->max_b_frames = b_frames; video_enc->max_b_frames = b_frames;
video_enc->b_frame_strategy = 0; video_enc->b_frame_strategy = 0;
...@@ -3605,6 +3609,7 @@ const OptionDef options[] = { ...@@ -3605,6 +3609,7 @@ const OptionDef options[] = {
{ "umv", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_umv}, "enable Unlimited Motion Vector (h263+)" }, { "umv", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_umv}, "enable Unlimited Motion Vector (h263+)" },
{ "ssm", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_ss}, "enable Slice Structured mode (h263+)" }, { "ssm", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_ss}, "enable Slice Structured mode (h263+)" },
{ "alt", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_alt_scan}, "enable alternate scantable (MPEG2/MPEG4)" }, { "alt", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_alt_scan}, "enable alternate scantable (MPEG2/MPEG4)" },
{ "qprd", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_qprd}, "" },
{ "trell", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_trell}, "enable trellis quantization" }, { "trell", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_trell}, "enable trellis quantization" },
{ "cgop", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&closed_gop}, "closed gop" }, { "cgop", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&closed_gop}, "closed gop" },
{ "scan_offset", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_scan_offset}, "enable SVCD Scan Offset placeholder" }, { "scan_offset", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&use_scan_offset}, "enable SVCD Scan Offset placeholder" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment