Mercurial > mplayer.hg
diff libmpcodecs/ve_lavc.c @ 10963:0db4771a4fca
rd cbp
author | michael |
---|---|
date | Tue, 30 Sep 2003 22:32:13 +0000 |
parents | 6c3555f4c5c3 |
children | 76293091a9c7 |
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c Tue Sep 30 00:53:51 2003 +0000 +++ b/libmpcodecs/ve_lavc.c Tue Sep 30 22:32:13 2003 +0000 @@ -129,6 +129,7 @@ static int lavc_param_context= 0; static char *lavc_param_intra_matrix = NULL; static char *lavc_param_inter_matrix = NULL; +static int lavc_param_cbp= 0; #include "m_option.h" @@ -224,6 +225,9 @@ {"intra_matrix", &lavc_param_intra_matrix, CONF_TYPE_STRING, 0, 0, 0, NULL}, {"inter_matrix", &lavc_param_inter_matrix, CONF_TYPE_STRING, 0, 0, 0, NULL}, #endif +#if LIBAVCODEC_BUILD >= 4681 + {"cbp", &lavc_param_cbp, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CBP_RD, NULL}, +#endif {NULL, NULL, 0, 0, 0, 0, NULL} }; #endif @@ -466,6 +470,7 @@ lavc_venc_context->flags|= lavc_param_umv; lavc_venc_context->flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0; lavc_venc_context->flags|= lavc_param_data_partitioning; + lavc_venc_context->flags|= lavc_param_cbp; if(lavc_param_gray) lavc_venc_context->flags|= CODEC_FLAG_GRAY; if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP;