Mercurial > mplayer.hg
comparison libmpcodecs/ve_lavc.c @ 10963:0db4771a4fca
rd cbp
author | michael |
---|---|
date | Tue, 30 Sep 2003 22:32:13 +0000 |
parents | 6c3555f4c5c3 |
children | 76293091a9c7 |
comparison
equal
deleted
inserted
replaced
10962:9af32c77774d | 10963:0db4771a4fca |
---|---|
127 #endif | 127 #endif |
128 static int lavc_param_coder= 0; | 128 static int lavc_param_coder= 0; |
129 static int lavc_param_context= 0; | 129 static int lavc_param_context= 0; |
130 static char *lavc_param_intra_matrix = NULL; | 130 static char *lavc_param_intra_matrix = NULL; |
131 static char *lavc_param_inter_matrix = NULL; | 131 static char *lavc_param_inter_matrix = NULL; |
132 static int lavc_param_cbp= 0; | |
132 | 133 |
133 #include "m_option.h" | 134 #include "m_option.h" |
134 | 135 |
135 #ifdef USE_LIBAVCODEC | 136 #ifdef USE_LIBAVCODEC |
136 m_option_t lavcopts_conf[]={ | 137 m_option_t lavcopts_conf[]={ |
222 #endif | 223 #endif |
223 #if LIBAVCODEC_BUILD >= 4675 | 224 #if LIBAVCODEC_BUILD >= 4675 |
224 {"intra_matrix", &lavc_param_intra_matrix, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 225 {"intra_matrix", &lavc_param_intra_matrix, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
225 {"inter_matrix", &lavc_param_inter_matrix, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 226 {"inter_matrix", &lavc_param_inter_matrix, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
226 #endif | 227 #endif |
228 #if LIBAVCODEC_BUILD >= 4681 | |
229 {"cbp", &lavc_param_cbp, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CBP_RD, NULL}, | |
230 #endif | |
227 {NULL, NULL, 0, 0, 0, 0, NULL} | 231 {NULL, NULL, 0, 0, 0, 0, NULL} |
228 }; | 232 }; |
229 #endif | 233 #endif |
230 | 234 |
231 struct vf_priv_s { | 235 struct vf_priv_s { |
464 #endif | 468 #endif |
465 lavc_venc_context->flags|= lavc_param_aic; | 469 lavc_venc_context->flags|= lavc_param_aic; |
466 lavc_venc_context->flags|= lavc_param_umv; | 470 lavc_venc_context->flags|= lavc_param_umv; |
467 lavc_venc_context->flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0; | 471 lavc_venc_context->flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0; |
468 lavc_venc_context->flags|= lavc_param_data_partitioning; | 472 lavc_venc_context->flags|= lavc_param_data_partitioning; |
473 lavc_venc_context->flags|= lavc_param_cbp; | |
469 if(lavc_param_gray) lavc_venc_context->flags|= CODEC_FLAG_GRAY; | 474 if(lavc_param_gray) lavc_venc_context->flags|= CODEC_FLAG_GRAY; |
470 | 475 |
471 if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP; | 476 if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP; |
472 if(lavc_param_interlaced_dct) lavc_venc_context->flags|= CODEC_FLAG_INTERLACED_DCT; | 477 if(lavc_param_interlaced_dct) lavc_venc_context->flags|= CODEC_FLAG_INTERLACED_DCT; |
473 #if LIBAVCODEC_BUILD >= 4643 | 478 #if LIBAVCODEC_BUILD >= 4643 |