changeset 17243:67ce2e4206ea

support downscaling frames for dynamic b frame decission
author gpoirier
date Sun, 25 Dec 2005 21:29:18 +0000
parents c38832db3aba
children 70120627f0b9
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Sun Dec 25 20:42:27 2005 +0000
+++ b/libmpcodecs/ve_lavc.c	Sun Dec 25 21:29:18 2005 +0000
@@ -156,6 +156,7 @@
 static int lavc_param_dc_precision = 8;
 static int lavc_param_threads= 1;
 static int lavc_param_turbo = 0;
+static int lavc_param_brd_scale = 0;
 
 
 char *lavc_param_acodec = "mp2";
@@ -310,6 +311,7 @@
         {"nssew", &lavc_param_nssew, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL},
 	{"threads", &lavc_param_threads, CONF_TYPE_INT, CONF_RANGE, 1, 8, NULL},
 	{"turbo", &lavc_param_turbo, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+	{"brd_scale", &lavc_param_brd_scale, CONF_TYPE_INT, CONF_RANGE, 0, 10, NULL},
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 #endif
@@ -622,6 +624,7 @@
     lavc_venc_context->intra_dc_precision = lavc_param_dc_precision - 8;
 #endif
     lavc_venc_context->prediction_method= lavc_param_prediction_method;
+    lavc_venc_context->brd_scale = lavc_param_brd_scale;
     switch(lavc_param_format)
     {
 	case IMGFMT_YV12: