[Mplayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.60,1.61
Richard Felker CVS
rfelker at mplayerhq.hu
Sat Apr 26 18:47:50 CEST 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv4698/libmpcodecs
Modified Files:
ve_lavc.c
Log Message:
optional automatic aspect encoding based on d_width and d_height
Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- ve_lavc.c 7 Apr 2003 13:48:51 -0000 1.60
+++ ve_lavc.c 26 Apr 2003 16:47:25 -0000 1.61
@@ -95,6 +95,7 @@
static int lavc_param_fdct=0;
static int lavc_param_idct=0;
static char* lavc_param_aspect = NULL;
+static int lavc_param_autoaspect = 0;
static float lavc_param_lumi_masking= 0.0;
static float lavc_param_dark_masking= 0.0;
static float lavc_param_temporal_cplx_masking= 0.0;
@@ -171,6 +172,7 @@
{"vrc_init_cplx", &lavc_param_rc_initial_cplx, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 9999999.0, NULL},
{"vfdct", &lavc_param_fdct, CONF_TYPE_INT, CONF_RANGE, 0, 10, NULL},
{"aspect", &lavc_param_aspect, CONF_TYPE_STRING, 0, 0, 0, NULL},
+ {"autoaspect", &lavc_param_autoaspect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"lumi_mask", &lavc_param_lumi_masking, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL},
{"tcplx_mask", &lavc_param_temporal_cplx_masking, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL},
{"scplx_mask", &lavc_param_spatial_cplx_masking, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL},
@@ -365,6 +367,8 @@
return 0;
}
}
+ else if (lavc_param_autoaspect)
+ lavc_venc_context->aspect_ratio = (float)d_width/d_height;
/* keyframe interval */
if (lavc_param_keyint >= 0) /* != -1 */
More information about the MPlayer-cvslog
mailing list